Fixed cycle delay: Difference between revisions

From NESdev Wiki
Jump to navigationJump to search
(More improvements and more documentation)
(Bugfix)
Line 53: Line 53:
* @rts15 means you know a memory address that contains a <code>JMP</code> that jumps to another location that contains <code>RTS</code>. Alternatively, it means you know a memory address that contains a harmless 3-cycle instruction that fits your constraints (such as <code>LDA $00</code>), followed by <code>RTS</code>.
* @rts15 means you know a memory address that contains a <code>JMP</code> that jumps to another location that contains <code>RTS</code>. Alternatively, it means you know a memory address that contains a harmless 3-cycle instruction that fits your constraints (such as <code>LDA $00</code>), followed by <code>RTS</code>.
* delay_a_25_clocks, delay_256a_16_clocks, delay_256a_x_33_clocks, delay_256a_x_31_clocks, and delay_256x_a_30_clocks are defined at [[Delay code]].
* delay_a_25_clocks, delay_256a_16_clocks, delay_256a_x_33_clocks, delay_256a_x_31_clocks, and delay_256x_a_30_clocks are defined at [[Delay code]].
* @A, @X, @Y are local labels.


{{#css:
{{#css:
Line 373: Line 372:
|-
|-
|<pre>A2 02    LDX #2
|<pre>A2 02    LDX #2
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 02    LDY #2
|<pre>A0 02    LDY #2
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 816: Line 813:
|-
|-
|<pre>A2 03    LDX #3
|<pre>A2 03    LDX #3
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 03    LDY #3
|<pre>A0 03    LDY #3
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 1,108: Line 1,103:
|<pre>EA      NOP
|<pre>EA      NOP
A0 03    LDY #3
A0 03    LDY #3
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A2 03    LDX #3
A2 03    LDX #3
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 1,196: Line 1,189:
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
A0 03    LDY #3
A0 03    LDY #3
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
A2 03    LDX #3
A2 03    LDX #3
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,307: Line 1,298:
|-
|-
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
@A:
18      CLC
18      CLC
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C
30 FC   BMI *-2</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
Line 1,398: Line 1,388:
EA      NOP
EA      NOP
A2 03    LDX #3
A2 03    LDX #3
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A0 03    LDY #3
A0 03    LDY #3
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 1,443: Line 1,431:
|-
|-
|<pre>A2 04    LDX #4
|<pre>A2 04    LDX #4
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 04    LDY #4
|<pre>A0 04    LDY #4
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</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>A9 69    LDA #$69 ;hides 'ADC #$D8'
@A:
D8      CLD ;first loop only
D8      CLD ;first loop only
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, C, V, and D
30 FC   BMI *-2</pre>||Clobbers A, Z&N, C, V, and D
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 1,466: Line 1,451:
|-
|-
|<pre>A9 69    LDA #$69 ;hides 'ADC #$08'
|<pre>A9 69    LDA #$69 ;hides 'ADC #$08'
@A:
08      PHP ;first loop only
08      PHP ;first loop only
30 xx   BMI @A-1</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
30 FC   BMI *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,476: Line 1,460:
|-
|-
|<pre>A9 4B    LDA #$4B ;hides 'ASR #$EA'
|<pre>A9 4B    LDA #$4B ;hides 'ASR #$EA'
@A:
EA      NOP ;first loop only
EA      NOP ;first loop only
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
F0 FC   BEQ *-2</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 1,618: Line 1,601:
|-
|-
|<pre>A0 03    LDY #3
|<pre>A0 03    LDY #3
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 03    LDX #3
|<pre>A2 03    LDX #3
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
@A:
18      CLC
18      CLC
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C
30 FC   BMI *-2</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 1,718: Line 1,698:
|-
|-
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
@A:
48      PHA
48      PHA
30 xx   BMI @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
30 FC   BMI *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 1,731: Line 1,710:
|<pre>EA      NOP
|<pre>EA      NOP
A0 04    LDY #4
A0 04    LDY #4
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A2 04    LDX #4
A2 04    LDX #4
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 69    LDA #$69 ;hides 'ADC #$D8'
A9 69    LDA #$69 ;hides 'ADC #$D8'
@A:
D8      CLD ;first loop only
D8      CLD ;first loop only
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, C, V, and D
30 FC   BMI *-2</pre>||Clobbers A, Z&N, C, V, and D
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,753: Line 1,729:
|-
|-
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
@A:
85 xx    STA @zptemp
85 xx    STA @zptemp
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; and requires @zptemp
30 FB   BMI *-3</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 1,775: Line 1,750:
|-
|-
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
@A:
04 00    NOP $00
04 00    NOP $00
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
30 FB   BMI *-3</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 1,906: Line 1,880:
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
30 FD   BMI *-1</pre>||Clobbers A, Z&N, and C
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|5 bytes
!colspan="2"|5 bytes
Line 1,941: Line 1,914:
|<pre>48      PHA
|<pre>48      PHA
A0 04    LDY #4
A0 04    LDY #4
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</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
|<pre>48      PHA
A2 04    LDX #4
A2 04    LDX #4
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</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
|<pre>48      PHA
Line 1,960: Line 1,931:
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
A2 04    LDX #4
A2 04    LDX #4
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
A0 04    LDY #4
A0 04    LDY #4
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 2,044: Line 2,013:
|-
|-
|<pre>A0 03    LDY #3
|<pre>A0 03    LDY #3
@Y:
48      PHA
48      PHA
88      DEY
88      DEY
D0 xx   BNE @Y</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 03    LDX #3
|<pre>A2 03    LDX #3
@X:
48      PHA
48      PHA
CA      DEX
CA      DEX
D0 xx   BNE @X</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
|<pre>68      PLA
A2 04    LDX #4
A2 04    LDX #4
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A0 04    LDY #4
A0 04    LDY #4
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
@A:
48      PHA
48      PHA
30 xx   BMI @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
30 FC   BMI *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A9 69    LDA #$69 ;hides 'ADC #$D8'
A9 69    LDA #$69 ;hides 'ADC #$D8'
@A:
D8      CLD ;first loop only
D8      CLD ;first loop only
30 xx   BMI @A-1</pre>||Clobbers A, S, Z&N, C, V, and D
30 FC   BMI *-2</pre>||Clobbers A, S, Z&N, C, V, and D
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 2,092: Line 2,055:
|<pre>68      PLA
|<pre>68      PLA
A9 4B    LDA #$4B ;hides 'ASR #$EA'
A9 4B    LDA #$4B ;hides 'ASR #$EA'
@A:
EA      NOP ;first loop only
EA      NOP ;first loop only
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; and requires support for unofficial opcodes
F0 FC   BEQ *-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,104: Line 2,066:
|-
|-
|<pre>A9 09    LDA #$09 ;hides 'ORA #$EA'
|<pre>A9 09    LDA #$09 ;hides 'ORA #$EA'
@A:
EA      NOP ;first loop only
EA      NOP ;first loop only
08      PHP
08      PHP
28      PLP
28      PLP
30 xx   BMI @A-1</pre>||Clobbers A, and Z&N; and writes in stack
30 FA   BMI *-4</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A0 04    LDY #4
A0 04    LDY #4
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A2 04    LDX #4
A2 04    LDX #4
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A9 69    LDA #$69 ;hides 'ADC #$D8'
A9 69    LDA #$69 ;hides 'ADC #$D8'
@A:
D8      CLD ;first loop only
D8      CLD ;first loop only
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, C, V, and D
30 FC   BMI *-2</pre>||Clobbers A, Z&N, C, V, and D
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,139: Line 2,097:
|<pre>EA      NOP
|<pre>EA      NOP
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
@A:
85 xx    STA @zptemp
85 xx    STA @zptemp
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; and requires @zptemp
30 FB   BMI *-3</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,165: Line 2,122:
|<pre>EA      NOP
|<pre>EA      NOP
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
@A:
04 00    NOP $00
04 00    NOP $00
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
30 FB   BMI *-3</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 2,320: Line 2,276:
|-
|-
|<pre>A2 05    LDX #5
|<pre>A2 05    LDX #5
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 05    LDY #5
|<pre>A0 05    LDY #5
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
30 FD   BMI *-1</pre>||Clobbers A, Z&N, and C
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 2,430: Line 2,383:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
@A:
18      CLC
B0 xx    BCS @A-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
20 xx xx JSR @rts14</pre>||Requires dummy interrupt handler, and @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires dummy interrupt handler, and @rts14; and writes in stack
|-
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
30 FD    BMI *-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|<pre>A9      LDA #0
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 2,443: Line 2,398:
|<pre>20 xx xx JSR @rts12
|<pre>20 xx xx JSR @rts12
20 xx xx JSR @rts15</pre>||Requires @rts12, and @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts12, and @rts15; and writes in stack
|-
|<pre>A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
30 FD    BMI *-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 2,463: Line 2,422:
|<pre>08      PHP
|<pre>08      PHP
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
@A:
18      CLC
18      CLC
30 xx   BMI @A-1
30 FC   BMI *-2
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'
A9 2A    LDA #$2A ;hides 'ROL A'
@A:
18      CLC
18      CLC
30 xx   BMI @A-1
30 FC   BMI *-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
|-
|-
Line 2,500: Line 2,457:
|<pre>EA      NOP
|<pre>EA      NOP
A0 03    LDY #3
A0 03    LDY #3
@Y:
48      PHA
48      PHA
88      DEY
88      DEY
D0 xx   BNE @Y</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>EA      NOP
|<pre>EA      NOP
A2 03    LDX #3
A2 03    LDX #3
@X:
48      PHA
48      PHA
CA      DEX
CA      DEX
D0 xx   BNE @X</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>48      PHA
|<pre>48      PHA
Line 2,519: Line 2,474:
|-
|-
|<pre>A0 82    LDY #130 ;hides 'NOP #imm'
|<pre>A0 82    LDY #130 ;hides 'NOP #imm'
@Y = * - 1
04 EA    NOP $EA ;hides 'NOP'
04 EA    NOP $EA ;hides 'NOP'
88      DEY
88      DEY
30 xx   BMI @Y</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'
|<pre>A2 82    LDX #130 ;hides 'NOP #imm'
@X = * - 1
04 EA    NOP $EA ;hides 'NOP'
04 EA    NOP $EA ;hides 'NOP'
CA      DEX
CA      DEX
30 xx   BMI @X</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
30 FA   BMI *-4</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 2,542: Line 2,495:
EA      NOP
EA      NOP
A0 04    LDY #4
A0 04    LDY #4
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,550: Line 2,502:
EA      NOP
EA      NOP
A2 04    LDX #4
A2 04    LDX #4
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
Line 2,725: Line 2,676:
|<pre>68      PLA
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
30 FD   BMI *-1</pre>||Clobbers A, S, Z&N, and C
30 xx   BMI @A-1</pre>||Clobbers A, S, Z&N, and C
|-
|-
|<pre>A9      LDA #1
|<pre>A9      LDA #1
Line 2,735: Line 2,685:
|<pre>EA      NOP
|<pre>EA      NOP
A0 05    LDY #5
A0 05    LDY #5
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A2 05    LDX #5
A2 05    LDX #5
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
30 FD   BMI *-1</pre>||Clobbers A, Z&N, and C
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>20 xx xx JSR @rts14
|<pre>20 xx xx JSR @rts14
Line 2,758: Line 2,705:
|<pre>08      PHP
|<pre>08      PHP
A9 69    LDA #$69 ;hides 'ADC #$D8'
A9 69    LDA #$69 ;hides 'ADC #$D8'
@A:
D8      CLD ;first loop only
D8      CLD ;first loop only
30 xx   BMI @A-1
30 FC   BMI *-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
A2 04    LDX #4
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
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
|<pre>08      PHP
A0 04    LDY #4
A0 04    LDY #4
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 69    LDA #$69 ;hides 'ADC #$D8'
A9 69    LDA #$69 ;hides 'ADC #$D8'
@A:
D8      CLD ;first loop only
D8      CLD ;first loop only
30 xx   BMI @A-1
30 FC   BMI *-2
68      PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
|-
|-
Line 2,800: Line 2,743:
|<pre>48      PHA
|<pre>48      PHA
A9 4B    LDA #$4B ;hides 'ASR #$EA'
A9 4B    LDA #$4B ;hides 'ASR #$EA'
@A:
EA      NOP ;first loop only
EA      NOP ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
|-
|-
Line 2,866: Line 2,808:
|-
|-
!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
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 04   LDX #4
|<pre>A9 69   LDA #$69 ;hides 'ADC #$D8'
@X:
D8      CLD ;first loop only
EA      NOP
EA      NOP
CA      DEX
30 FB   BMI *-3</pre>||Clobbers A, Z&N, C, V, and D
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A9 2A    LDA #$2A ;hides 'ROL A'
@A:
18      CLC
B0 xx    BCS @A-1</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'
30 FD    BMI *-1</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 2,907: Line 2,850:
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
30 FB    BMI *-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
F0 FB    BEQ *-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,919: Line 2,872:
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'
30 FD    BMI *-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,942: Line 2,900:
08      PHP
08      PHP
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
@A:
18      CLC
18      CLC
30 xx   BMI @A-1
30 FC   BMI *-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
A0 03    LDY #3
A0 03    LDY #3
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FA   BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 03    LDX #3
A2 03    LDX #3
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FA   BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 2,966: Line 2,921:
48      PHA
48      PHA
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
@A:
18      CLC
18      CLC
30 xx   BMI @A-1
30 FC   BMI *-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
|-
|-
Line 3,191: Line 3,145:
|<pre>68      PLA
|<pre>68      PLA
A0 05    LDY #5
A0 05    LDY #5
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A2 05    LDX #5
A2 05    LDX #5
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68      PLA
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
30 FD   BMI *-1</pre>||Clobbers A, S, Z&N, and C
30 xx   BMI @A-1</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 3,212: Line 3,163:
EA      NOP
EA      NOP
A2 05    LDX #5
A2 05    LDX #5
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A0 05    LDY #5
A0 05    LDY #5
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A5 00    LDA $00
|<pre>EA      NOP
A9 2A   LDA #$2A ;hides 'ROL A'
EA      NOP
@A:
EA      NOP
18      CLC
A9 0A   LDA #$0A ;hides 'ASL A'
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
30 FD   BMI *-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 3,238: Line 3,187:
08      PHP
08      PHP
A9 69    LDA #$69 ;hides 'ADC #$D8'
A9 69    LDA #$69 ;hides 'ADC #$D8'
@A:
D8      CLD ;first loop only
D8      CLD ;first loop only
30 xx   BMI @A-1
30 FC   BMI *-2
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 3,246: Line 3,194:
08      PHP
08      PHP
A0 04    LDY #4
A0 04    LDY #4
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 3,254: Line 3,201:
08      PHP
08      PHP
A2 04    LDX #4
A2 04    LDX #4
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 3,262: Line 3,208:
48      PHA
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$D8'
A9 69    LDA #$69 ;hides 'ADC #$D8'
@A:
D8      CLD ;first loop only
D8      CLD ;first loop only
30 xx   BMI @A-1
30 FC   BMI *-2
68      PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
@A:
85 xx    STA @zptemp
85 xx    STA @zptemp
30 xx   BMI @A-1
30 FB   BMI *-3
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
|-
|-
Line 3,291: Line 3,235:
48      PHA
48      PHA
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
@A:
18      CLC
18      CLC
30 xx   BMI @A-1
30 FC   BMI *-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>48      PHA
|<pre>48      PHA
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
@A:
04 00    NOP $00
04 00    NOP $00
30 xx   BMI @A-1
30 FB   BMI *-3
68      PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
|-
|-
Line 3,361: Line 3,303:
|-
|-
|<pre>A0 06    LDY #6
|<pre>A0 06    LDY #6
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 06    LDX #6
|<pre>A2 06    LDX #6
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</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>A9 E9    LDA #$E9 ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
10 xx   BPL @A-1</pre>||Clobbers A, Z&N, C, and V
10 FC   BPL *-2</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>A9 4B    LDA #$4B ;hides 'ASR #$7A'
|<pre>A9 4B    LDA #$4B ;hides 'ASR #$7A'
@A:
7A      NOP ;first loop only
7A      NOP ;first loop only
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
F0 FC   BEQ *-2</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 3,384: Line 3,322:
|<pre>08      PHP
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
30 FD   BMI *-1
30 xx   BMI @A-1
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 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
30 FD   BMI *-1
30 xx   BMI @A-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 3,397: Line 3,333:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
30 FD   BMI *-1</pre>||Clobbers A, Z&N, and C
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
Line 3,486: Line 3,421:
08      PHP
08      PHP
A0 04    LDY #4
A0 04    LDY #4
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
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
|-
|-
Line 3,494: Line 3,428:
08      PHP
08      PHP
A2 04    LDX #4
A2 04    LDX #4
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
Line 3,508: Line 3,441:
A4 00    LDY $00
A4 00    LDY $00
A0 04    LDY #4
A0 04    LDY #4
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 3,516: Line 3,448:
A6 00    LDX $00
A6 00    LDX $00
A2 04    LDX #4
A2 04    LDX #4
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 3,695: Line 3,626:
|-
|-
|<pre>A0 05    LDY #5 ;hides 'ORA zp'
|<pre>A0 05    LDY #5 ;hides 'ORA zp'
@Y = * - 1
88      DEY ;first loop only
88      DEY ;first loop only
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, Y, and Z&N
|-
|-
|<pre>A2 05    LDX #5 ;hides 'ORA zp'
|<pre>A2 05    LDX #5 ;hides 'ORA zp'
@X = * - 1
CA      DEX ;first loop only
CA      DEX ;first loop only
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, X, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
68      PLA
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
30 FD   BMI *-1</pre>||Clobbers A, S, Z&N, and C
30 xx   BMI @A-1</pre>||Clobbers A, S, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 3,724: Line 3,652:
|-
|-
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C
30 FA   BMI *-4</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 3,738: Line 3,665:
|<pre>48      PHA
|<pre>48      PHA
A2 04    LDX #4
A2 04    LDX #4
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</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>48      PHA
|<pre>48      PHA
A0 04    LDY #4
A0 04    LDY #4
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</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
|<pre>68      PLA
Line 3,755: Line 3,680:
|-
|-
|<pre>A0 FA    LDY #250 ;hides 'NOP'
|<pre>A0 FA    LDY #250 ;hides 'NOP'
@Y = * - 1
EA      NOP
EA      NOP
C8      INY
C8      INY
C8      INY
C8      INY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>A2 FA    LDX #250 ;hides 'NOP'
|<pre>A2 FA    LDX #250 ;hides 'NOP'
@X = * - 1
EA      NOP
EA      NOP
E8      INX
E8      INX
E8      INX
E8      INX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 3,772: Line 3,695:
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
A0 04    LDY #4
A0 04    LDY #4
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
A2 04    LDX #4
A2 04    LDX #4
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 3,802: Line 3,723:
|<pre>48      PHA
|<pre>48      PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
A9 09    LDA #$09 ;hides 'ORA #$EA'
@A:
EA      NOP ;first loop only
EA      NOP ;first loop only
08      PHP
08      PHP
28      PLP
28      PLP
30 xx   BMI @A-1
30 FA   BMI *-4
68      PLA</pre>||Clobbers Z&N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9 09    LDA #$09 ;hides 'ORA #$EA'
A9 09    LDA #$09 ;hides 'ORA #$EA'
@A:
EA      NOP ;first loop only
EA      NOP ;first loop only
08      PHP
08      PHP
28      PLP
28      PLP
30 xx   BMI @A-1
30 FA   BMI *-4
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 03    LDX #3
A2 03    LDX #3
@X:
24 00    BIT $00
24 00    BIT $00
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 F9   BNE *-5
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 03    LDY #3
A0 03    LDY #3
@Y:
C5 00    CMP $00
C5 00    CMP $00
88      DEY
88      DEY
D0 xx   BNE @Y
D0 F9   BNE *-5
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 3,913: Line 3,830:
|<pre>EA      NOP
|<pre>EA      NOP
A0 06    LDY #6
A0 06    LDY #6
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A2 06    LDX #6
A2 06    LDX #6
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 E9    LDA #$E9 ;hides 'SBC #$18'
A9 E9    LDA #$E9 ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
10 xx   BPL @A-1</pre>||Clobbers A, Z&N, C, and V
10 FC   BPL *-2</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 3,936: Line 3,850:
|<pre>EA      NOP
|<pre>EA      NOP
A9 4B    LDA #$4B ;hides 'ASR #$7A'
A9 4B    LDA #$4B ;hides 'ASR #$7A'
@A:
7A      NOP ;first loop only
7A      NOP ;first loop only
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
F0 FC   BEQ *-2</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 3,945: Line 3,858:
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
30 FD   BMI *-1
30 xx   BMI @A-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 05    LDY #5
A0 05    LDY #5
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 05    LDX #5
A2 05    LDX #5
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 3,966: Line 3,876:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
30 FD   BMI *-1
30 xx   BMI @A-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 3,974: Line 3,883:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
30 FD   BMI *-1</pre>||Clobbers A, Z&N, and C
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 4,213: Line 4,121:
|-
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
|<pre>A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
88      DEY
88      DEY
30 xx   BMI @Y</pre>||Clobbers Y, and Z&N
30 FC   BMI *-2</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C
30 FC   BMI *-2</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 4,226: Line 4,132:
|<pre>48      PHA
|<pre>48      PHA
A2 06    LDX #6
A2 06    LDX #6
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</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>68      PLA
|<pre>68      PLA
Line 4,236: Line 4,141:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>08      PHP
A9 2A    LDA #$2A ;hides 'ROL A'
@A:
18      CLC
B0 xx    BCS @A-1
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
A2 06    LDX #6
A2 06    LDX #6
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>48      PHA
A9 2A    LDA #$2A ;hides 'ROL A'
@A:
18      CLC
B0 xx    BCS @A-1
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 4,261: Line 4,151:
00 00    BRK 0
00 00    BRK 0
20 xx xx JSR @rts14</pre>||Requires dummy interrupt handler, and @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires dummy interrupt handler, and @rts14; and writes in stack
|-
|<pre>48      PHA
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
30 FD    BMI *-1
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|<pre>48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
30 FD    BMI *-1
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 4,267: Line 4,169:
00 00    BRK 0
00 00    BRK 0
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>08      PHP
A9      LDA #0
20 xx xx JSR delay_a_25_clocks
28      PLP</pre>||Clobbers A; requires delay_a_25_clocks; and writes in stack
|-
|<pre>48      PHA
A9      LDA #0
20 xx xx JSR delay_a_25_clocks
68      PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 4,274: Line 4,186:
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|<pre>08      PHP
A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
30 FD    BMI *-1
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>C5 00    CMP $00
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
30 FD    BMI *-1
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 4,292: Line 4,216:
48      PHA
48      PHA
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
@A:
18      CLC
18      CLC
30 xx   BMI @A-1
30 FC   BMI *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 4,364: Line 4,287:
|-
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
|<pre>A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
88      DEY
88      DEY
88      DEY
88      DEY
30 xx   BMI @Y</pre>||Clobbers Y, and Z&N
30 FB   BMI *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
@A:
08       PHP
EA       NOP
28       PLP
18       CLC
30 FB   BMI *-3</pre>||Clobbers A, Z&N, and C; and writes in stack
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>A2 F8    LDX #248 ;hides 'SED'
|<pre>A2 F8    LDX #248 ;hides 'SED'
@X = * - 1
E8      INX
E8      INX
E8      INX
E8      INX
D0 xx   BNE @X</pre>||Clobbers X, Z&N, and D
D0 FB   BNE *-3</pre>||Clobbers X, Z&N, and D
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A2 06    LDX #6
A2 06    LDX #6
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|<pre>68      PLA
A9 E9    LDA #$E9 ;hides 'SBC #$18'
18      CLC ;first loop only
10 FC    BPL *-2</pre>||Clobbers A, S, Z&N, C, and V
|-
|<pre>68      PLA
A9 4B    LDA #$4B ;hides 'ASR #$7A'
7A      NOP ;first loop only
F0 FC    BEQ *-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,392: Line 4,321:
EA      NOP
EA      NOP
A2 06    LDX #6
A2 06    LDX #6
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
EA      NOP
A9 E9    LDA #$E9 ;hides 'SBC #$18'
18      CLC ;first loop only
10 FC    BPL *-2</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 4,405: Line 4,339:
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
30 FD   BMI *-1
30 xx   BMI @A-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>08      PHP
|<pre>68      PLA
68      PLA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
30 FD    BMI *-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
F0 FC    BEQ *-2</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|<pre>08      PHP
A9      LDA #1
A9      LDA #1
20 xx xx JSR delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks
Line 4,425: Line 4,370:
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
30 FD   BMI *-1
30 xx   BMI @A-1
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A2 05    LDX #5
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A0 05    LDY #5
A0 05    LDY #5
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
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 05    LDX #5
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 4,449: Line 4,391:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
30 FD   BMI *-1
30 xx   BMI @A-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
30 F9    BMI *-5</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 4,472: Line 4,419:
48      PHA
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$D8'
A9 69    LDA #$69 ;hides 'ADC #$D8'
@A:
D8      CLD ;first loop only
D8      CLD ;first loop only
30 xx   BMI @A-1
30 FC   BMI *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 4,650: Line 4,596:
|-
|-
|<pre>A2 07    LDX #7
|<pre>A2 07    LDX #7
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 07    LDY #7
|<pre>A0 07    LDY #7
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$2A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$2A'
@A:
2A      ROL A ;first loop only
2A      ROL A ;first loop only
90 xx   BCC @A-1</pre>||Clobbers A, Z&N, C, and V
90 FC   BCC *-2</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 4,668: Line 4,611:
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C
30 FC   BMI *-2</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 4,692: Line 4,634:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
08      PHP
A9 69   LDA #$69 ;hides 'ADC #$D8'
A9 2A   LDA #$2A ;hides 'ROL A'
D8      CLD ;first loop only
@A:
EA       NOP
18       CLC
30 FB   BMI *-3
B0 xx   BCS @A-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
A2 04    LDX #4
A2 04    LDX #4
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
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
|<pre>08      PHP
A0 04    LDY #4
A0 04    LDY #4
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FA   BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>48      PHA
48      PHA
A9 69   LDA #$69 ;hides 'ADC #$D8'
A9 2A   LDA #$2A ;hides 'ROL A'
D8      CLD ;first loop only
@A:
EA       NOP
18       CLC
30 FB   BMI *-3
B0 xx   BCS @A-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>08      PHP
|<pre>08      PHP
Line 4,728: Line 4,666:
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'
30 FD    BMI *-1
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 4,739: Line 4,683:
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'
30 FD    BMI *-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
F0 FB    BEQ *-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,751: Line 4,709:
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack
|-
|<pre>EA      NOP
C5 00    CMP $00
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
30 FD    BMI *-1
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 4,774: Line 4,739:
48      PHA
48      PHA
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
@A:
18      CLC
18      CLC
30 xx   BMI @A-1
30 FC   BMI *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 4,824: Line 4,788:
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
30 FD   BMI *-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A0 88    LDY #136 ;hides 'DEY'
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
88      DEY
88      DEY
30 xx   BMI @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
30 FC   BMI *-2</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>A2 04    LDX #4
|<pre>A2 04    LDX #4
@X:
68      PLA
68      PLA
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 FA   BNE *-4</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>A0 04    LDY #4
|<pre>A0 04    LDY #4
@Y:
68      PLA
68      PLA
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 FA   BNE *-4</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
30 xx   BMI @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
30 FC   BMI *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A2 04    LDX #4
|<pre>A0 04    LDY #4
@X:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
CA       DEX
88       DEY
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 F9   BNE *-5</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A0 04    LDY #4
|<pre>A2 04    LDX #4
@Y:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
88       DEY
CA       DEX
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 F9   BNE *-5</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C
30 FC   BMI *-2</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>A9 09    LDA #$09 ;hides 'ORA #$EA'
|<pre>A9 09    LDA #$09 ;hides 'ORA #$EA'
@A:
EA      NOP ;first loop only
EA      NOP ;first loop only
00 00    BRK 0
00 00    BRK 0
30 xx   BMI @A-1</pre>||Clobbers A, and Z&N; requires dummy interrupt handler; and writes in stack
30 FA   BMI *-4</pre>||Clobbers A, and Z&N; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 4,904: Line 4,859:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
48      PHA
08      PHP
08      PHP
A9 2A   LDA #$2A ;hides 'ROL A'
A9 0A   LDA #$0A ;hides 'ASL A'
@A:
30 FD   BMI *-1
18      CLC
B0 xx   BCS @A-1
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
48      PHA
48      PHA
A9 2A   LDA #$2A ;hides 'ROL A'
48      PHA
@A:
A9 0A   LDA #$0A ;hides 'ASL A'
18      CLC
30 FD   BMI *-1
B0 xx   BCS @A-1
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
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>EA      NOP
A5 00    LDA $00
EA      NOP
A9 2A   LDA #$2A ;hides 'ROL A'
EA      NOP
@A:
08      PHP
18      CLC
A9 0A   LDA #$0A ;hides 'ASL A'
B0 xx   BCS @A-1
30 FD   BMI *-1
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 4,933: Line 4,886:
08      PHP
08      PHP
A2 05    LDX #5
A2 05    LDX #5
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 4,942: Line 4,894:
08      PHP
08      PHP
A0 05    LDY #5
A0 05    LDY #5
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>C5 00    CMP $00
|<pre>EA      NOP
EA      NOP
EA      NOP
48      PHA
48      PHA
A9 2A   LDA #$2A ;hides 'ROL A'
A9 0A   LDA #$0A ;hides 'ASL A'
@A:
30 FD   BMI *-1
18      CLC
B0 xx   BCS @A-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 4,967: Line 4,918:
48      PHA
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$D8'
A9 69    LDA #$69 ;hides 'ADC #$D8'
@A:
D8      CLD ;first loop only
D8      CLD ;first loop only
30 xx   BMI @A-1
30 FC   BMI *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 5,155: Line 5,105:
|<pre>EA      NOP
|<pre>EA      NOP
A0 07    LDY #7
A0 07    LDY #7
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A2 07    LDX #7
A2 07    LDX #7
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
@A:
2A      ROL A ;first loop only
2A      ROL A ;first loop only
90 xx   BCC @A-1</pre>||Clobbers A, Z&N, C, and V
90 FC   BCC *-2</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
30 xx   BMI @A-1</pre>||Clobbers A, S, Z&N, and C
30 FC   BMI *-2</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 5,181: Line 5,127:
|<pre>08      PHP
|<pre>08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$18'
A9 E9    LDA #$E9 ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
10 xx   BPL @A-1
10 FC   BPL *-2
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 06    LDY #6
A0 06    LDY #6
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 06    LDX #6
A2 06    LDX #6
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 5,203: Line 5,146:
EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C
30 FC   BMI *-2</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$18'
A9 E9    LDA #$E9 ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
10 xx   BPL @A-1
10 FC   BPL *-2
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 5,220: Line 5,161:
|<pre>48      PHA
|<pre>48      PHA
A9 4B    LDA #$4B ;hides 'ASR #$7A'
A9 4B    LDA #$4B ;hides 'ASR #$7A'
@A:
7A      NOP ;first loop only
7A      NOP ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
|-
|-
Line 5,230: Line 5,170:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
30 FD   BMI *-1
30 xx   BMI @A-1
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 5,299: Line 5,238:
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1</pre>||Clobbers A, Z&N, and C
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 5,310: Line 5,248:
|<pre>48      PHA
|<pre>48      PHA
A0 07    LDY #7
A0 07    LDY #7
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</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
|<pre>48      PHA
A2 07    LDX #7
A2 07    LDX #7
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</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
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 5,324: Line 5,260:
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
A0 07    LDY #7
A0 07    LDY #7
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
A2 07    LDX #7
A2 07    LDX #7
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 5,348: Line 5,282:
|<pre>08      PHP
|<pre>08      PHP
A0 05    LDY #5 ;hides 'ORA zp'
A0 05    LDY #5 ;hides 'ORA zp'
@Y = * - 1
88      DEY ;first loop only
88      DEY ;first loop only
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers A, and Y; and writes in stack
28      PLP</pre>||Clobbers A, and Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 05    LDX #5 ;hides 'ORA zp'
A2 05    LDX #5 ;hides 'ORA zp'
@X = * - 1
CA      DEX ;first loop only
CA      DEX ;first loop only
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers A, and X; and writes in stack
28      PLP</pre>||Clobbers A, and X; and writes in stack
|-
|-
|<pre>A9 09    LDA #$09 ;hides 'ORA #$EA'
|<pre>A9 09    LDA #$09 ;hides 'ORA #$EA'
@A:
EA      NOP ;first loop only
EA      NOP ;first loop only
20 xx xx JSR @rts14
20 xx xx JSR @rts14
30 xx   BMI @A-1</pre>||Clobbers A, and Z&N; requires @rts14; and writes in stack
30 F9   BMI *-5</pre>||Clobbers A, and Z&N; requires @rts14; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 5,372: Line 5,303:
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
30 FD   BMI *-1
30 xx   BMI @A-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
|-
|-
Line 5,386: Line 5,316:
|<pre>08      PHP
|<pre>08      PHP
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
30 xx   BMI @A-1
30 FA   BMI *-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'
A9 2A    LDA #$2A ;hides 'ROL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
30 xx   BMI @A-1
30 FA   BMI *-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 5,405: Line 5,333:
08      PHP
08      PHP
A2 04    LDX #4
A2 04    LDX #4
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FA   BNE *-4
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
Line 5,414: Line 5,341:
08      PHP
08      PHP
A0 04    LDY #4
A0 04    LDY #4
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FA   BNE *-4
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 FA    LDY #250 ;hides 'NOP'
A0 FA    LDY #250 ;hides 'NOP'
@Y = * - 1
EA      NOP
EA      NOP
C8      INY
C8      INY
C8      INY
C8      INY
D0 xx   BNE @Y
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>08      PHP
|<pre>08      PHP
A2 FA    LDX #250 ;hides 'NOP'
A2 FA    LDX #250 ;hides 'NOP'
@X = * - 1
EA      NOP
EA      NOP
E8      INX
E8      INX
E8      INX
E8      INX
D0 xx   BNE @X
D0 FA   BNE *-4
28      PLP</pre>||Clobbers X; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers X; requires support for unofficial opcodes; and writes in stack
|-
|-
Line 5,443: Line 5,367:
A6 00    LDX $00
A6 00    LDX $00
A2 04    LDX #4
A2 04    LDX #4
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FA   BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 5,452: Line 5,375:
A4 00    LDY $00
A4 00    LDY $00
A0 04    LDY #4
A0 04    LDY #4
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FA   BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 5,486: Line 5,408:
48      PHA
48      PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
A9 09    LDA #$09 ;hides 'ORA #$EA'
@A:
EA      NOP ;first loop only
EA      NOP ;first loop only
08      PHP
08      PHP
28      PLP
28      PLP
30 xx   BMI @A-1
30 FA   BMI *-4
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 5,670: Line 5,591:
|-
|-
|<pre>A2 05    LDX #5 ;hides 'ORA zp'
|<pre>A2 05    LDX #5 ;hides 'ORA zp'
@X = * - 1
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, X, and Z&N
|-
|-
|<pre>A0 05    LDY #5 ;hides 'ORA zp'
|<pre>A0 05    LDY #5 ;hides 'ORA zp'
@Y = * - 1
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, Y, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
@A:
2A      ROL A ;first loop only
2A      ROL A ;first loop only
90 xx   BCC @A-1</pre>||Clobbers A, S, Z&N, C, and V
90 FC   BCC *-2</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 5,692: Line 5,610:
EA      NOP
EA      NOP
A0 07    LDY #7
A0 07    LDY #7
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A2 07    LDX #7
A2 07    LDX #7
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
@A:
2A      ROL A ;first loop only
2A      ROL A ;first loop only
90 xx   BCC @A-1</pre>||Clobbers A, Z&N, C, and V
90 FC   BCC *-2</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>00 00    BRK 0
A9 2A    LDA #$2A ;hides 'ROL A'
@A:
18      CLC
B0 xx    BCS @A-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
Line 5,723: Line 5,632:
68      PLA
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
30 xx   BMI @A-1</pre>||Clobbers A, S, Z&N, and C
30 FC   BMI *-2</pre>||Clobbers A, S, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 5,742: Line 5,650:
08      PHP
08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$18'
A9 E9    LDA #$E9 ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
10 xx   BPL @A-1
10 FC   BPL *-2
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A0 06    LDY #6
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A2 06    LDX #6
A2 06    LDX #6
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
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
08      PHP
A0 06    LDY #6
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 5,767: Line 5,672:
EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C
30 FC   BMI *-2</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$18'
A9 E9    LDA #$E9 ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
10 xx   BPL @A-1
10 FC   BPL *-2
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 5,789: Line 5,692:
48      PHA
48      PHA
A9 4B    LDA #$4B ;hides 'ASR #$7A'
A9 4B    LDA #$4B ;hides 'ASR #$7A'
@A:
7A      NOP ;first loop only
7A      NOP ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
|-
|-
Line 5,800: Line 5,702:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
30 FD   BMI *-1
30 xx   BMI @A-1
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 5,871: Line 5,772:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A0 08    LDY #8
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 08    LDX #8
|<pre>A2 08    LDX #8
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 08    LDY #8
|<pre>EA       NOP
@Y:
A9 0A    LDA #$0A ;hides 'ASL A'
88       DEY
F0 FD   BEQ *-1</pre>||Clobbers A, Z&N, and C
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 5,891: Line 5,789:
|<pre>08      PHP
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
30 xx   BMI @A-1
30 FC   BMI *-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
A0 88    LDY #136 ;hides 'DEY'
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
88      DEY
88      DEY
30 xx   BMI @Y
30 FC   BMI *-2
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
30 xx   BMI @A-1
30 FC   BMI *-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
|-
|-
Line 5,920: Line 5,815:
08      PHP
08      PHP
A2 06    LDX #6
A2 06    LDX #6
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
Line 5,928: Line 5,822:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A6 00    LDX $00
A2 06    LDX #6
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>20 xx xx JSR @rts12
20 xx xx JSR @rts14
20 xx xx JSR @rts15</pre>||Requires @rts12, @rts14, and @rts15; and writes in stack
|-
|<pre>48      PHA
08      PHP
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
30 FD    BMI *-1
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9      LDA #0
20 xx xx JSR delay_a_25_clocks
68      PLA
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
!colspan="2"|10 bytes
|-
|<pre>08      PHP
C5 00    CMP $00
48      PHA
48      PHA
A9 2A   LDA #$2A ;hides 'ROL A'
A9 0A   LDA #$0A ;hides 'ASL A'
@A:
30 FD   BMI *-1
18      CLC
B0 xx   BCS @A-1
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 6,134: Line 6,055:
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>A9      LDA #15
|<pre>A9      LDA #15
Line 6,144: Line 6,064:
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1</pre>||Clobbers A, Z&N, and C
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 6,151: Line 6,070:
|<pre>EA      NOP
|<pre>EA      NOP
A2 05    LDX #5 ;hides 'ORA zp'
A2 05    LDX #5 ;hides 'ORA zp'
@X = * - 1
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A0 05    LDY #5 ;hides 'ORA zp'
A0 05    LDY #5 ;hides 'ORA zp'
@Y = * - 1
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, Y, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
48      PHA
48      PHA
A2 07    LDX #7
A2 07    LDX #7
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</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
|<pre>48      PHA
48      PHA
48      PHA
A0 07    LDY #7
A0 07    LDY #7
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</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
|<pre>48      PHA
Line 6,196: Line 6,111:
|<pre>08      PHP
|<pre>08      PHP
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
@A:
08       PHP
EA       NOP
28       PLP
18       CLC
30 FB   BMI *-3
B0 xx   BCS @A-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
A2 F8    LDX #248 ;hides 'SED'
A2 F8    LDX #248 ;hides 'SED'
@X = * - 1
E8      INX
E8      INX
E8      INX
E8      INX
D0 xx   BNE @X
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
|<pre>08      PHP
A0 88    LDY #136 ;hides 'DEY'
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
88      DEY
88      DEY
88      DEY
88      DEY
30 xx   BMI @Y
30 FB   BMI *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 6,222: Line 6,134:
EA      NOP
EA      NOP
A2 07    LDX #7
A2 07    LDX #7
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 6,230: Line 6,141:
EA      NOP
EA      NOP
A0 07    LDY #7
A0 07    LDY #7
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
@A:
08       PHP
EA       NOP
28       PLP
18       CLC
30 FB   BMI *-3
B0 xx   BCS @A-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 6,294: Line 6,203:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
30 FD   BMI *-1
30 xx   BMI @A-1
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 6,373: Line 6,281:
|<pre>68      PLA
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1</pre>||Clobbers A, S, Z&N, and C
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C
|-
|-
|<pre>A9      LDA #16
|<pre>A9      LDA #16
Line 6,380: Line 6,287:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A0 06    LDY #6
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 06    LDX #6
|<pre>A2 06    LDX #6
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 06    LDY #6
|<pre>EA      NOP
@Y:
EA      NOP
EA      NOP
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1</pre>||Clobbers A, Z&N, and C
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 6,403: Line 6,307:
|<pre>08      PHP
|<pre>08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
@A:
2A      ROL A ;first loop only
2A      ROL A ;first loop only
90 xx   BCC @A-1
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
A0 07    LDY #7
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 07    LDX #7
A2 07    LDX #7
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
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 07    LDY #7
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
@A:
2A      ROL A ;first loop only
2A      ROL A ;first loop only
90 xx   BCC @A-1
90 FC   BCC *-2
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,434: Line 6,334:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
30 xx   BMI @A-1
30 FC   BMI *-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
|-
|-
Line 6,460: Line 6,359:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
08      PHP
48      PHA
48      PHA
A9 2A   LDA #$2A ;hides 'ROL A'
A9 69   LDA #$69 ;hides 'ADC #$D8'
@A:
D8      CLD ;first loop only
18       CLC
EA       NOP
B0 xx   BCS @A-1
30 FB   BMI *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 6,487: Line 6,385:
|-
|-
|<pre>A9 09    LDA #$09 ;hides 'ORA #$EA'
|<pre>A9 09    LDA #$09 ;hides 'ORA #$EA'
@A:
EA      NOP ;first loop only
EA      NOP ;first loop only
EA      NOP
EA      NOP
Line 6,497: Line 6,394:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
30 xx   BMI @A-1</pre>||Clobbers A, and Z&N
30 F4   BMI *-10</pre>||Clobbers A, and Z&N
|-
|-
!colspan="2"|15 bytes
!colspan="2"|15 bytes
Line 6,681: Line 6,578:
|-
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
|<pre>A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
EA      NOP
EA      NOP
88      DEY
88      DEY
30 xx   BMI @Y</pre>||Clobbers Y, and Z&N
30 FB   BMI *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
18      CLC
18      CLC
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C
30 FB   BMI *-3</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A2 08    LDX #8
A2 08    LDX #8
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</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
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 6,702: Line 6,596:
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
A2 08    LDX #8
A2 08    LDX #8
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 6,721: Line 6,614:
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
30 FD   BMI *-1
30 xx   BMI @A-1
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
|-
|-
Line 6,728: Line 6,620:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
30 FD   BMI *-1
30 xx   BMI @A-1
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
|-
|-
Line 6,740: Line 6,631:
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
30 xx   BMI @A-1
30 FC   BMI *-2
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
Line 6,748: Line 6,638:
08      PHP
08      PHP
A0 88    LDY #136 ;hides 'DEY'
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
88      DEY
88      DEY
30 xx   BMI @Y
30 FC   BMI *-2
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
Line 6,756: Line 6,645:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
30 xx   BMI @A-1
30 FC   BMI *-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
|-
|-
Line 6,772: Line 6,660:
A5 00    LDA $00
A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
30 xx   BMI @A-1
30 FC   BMI *-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
A0 04    LDY #4
A0 04    LDY #4
@Y:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y
D0 F9   BNE *-5
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 04    LDX #4
A2 04    LDX #4
@X:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 F9   BNE *-5
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 6,798: Line 6,683:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
30 xx   BMI @A-1
30 FC   BMI *-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
|-
|-
Line 6,809: Line 6,693:
|<pre>48      PHA
|<pre>48      PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
A9 09    LDA #$09 ;hides 'ORA #$EA'
@A:
EA      NOP ;first loop only
EA      NOP ;first loop only
00 00    BRK 0
00 00    BRK 0
30 xx   BMI @A-1
30 FA   BMI *-4
68      PLA</pre>||Clobbers Z&N; requires dummy interrupt handler; and writes in stack
68      PLA</pre>||Clobbers Z&N; requires dummy interrupt handler; and writes in stack
|-
|-
Line 6,876: Line 6,759:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
48      PHA
08      PHP
08      PHP
48      PHA
48      PHA
A9 2A   LDA #$2A ;hides 'ROL A'
A9 0A   LDA #$0A ;hides 'ASL A'
@A:
30 FD   BMI *-1
18      CLC
B0 xx   BCS @A-1
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
Line 6,887: Line 6,769:
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>08      PHP
|<pre>EA      NOP
C5 00    CMP $00
EA      NOP
EA      NOP
08      PHP
48      PHA
48      PHA
A9 2A   LDA #$2A ;hides 'ROL A'
A9 0A   LDA #$0A ;hides 'ASL A'
@A:
30 FD   BMI *-1
18      CLC
B0 xx   BCS @A-1
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 6,975: Line 6,857:
|<pre>68      PLA
|<pre>68      PLA
A0 08    LDY #8
A0 08    LDY #8
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A2 08    LDX #8
A2 08    LDX #8
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68      PLA
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1</pre>||Clobbers A, S, Z&N, and C
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C
|-
|-
!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
A2 06    LDX #6
A2 06    LDX #6
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A0 06    LDY #6
@Y:
EA      NOP
EA      NOP
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1</pre>||Clobbers A, Z&N, and C
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 7,029: Line 6,905:
08      PHP
08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
@A:
2A      ROL A ;first loop only
2A      ROL A ;first loop only
90 xx   BCC @A-1
90 FC   BCC *-2
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 7,037: Line 6,912:
08      PHP
08      PHP
A2 07    LDX #7
A2 07    LDX #7
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 7,045: Line 6,919:
08      PHP
08      PHP
A0 07    LDY #7
A0 07    LDY #7
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 7,053: Line 6,926:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
@A:
2A      ROL A ;first loop only
2A      ROL A ;first loop only
90 xx   BCC @A-1
90 FC   BCC *-2
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,069: Line 6,941:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$18'
A9 E9    LDA #$E9 ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
10 xx   BPL @A-1
10 FC   BPL *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 7,290: Line 7,161:
|-
|-
|<pre>A0 09    LDY #9
|<pre>A0 09    LDY #9
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 09    LDX #9
|<pre>A2 09    LDX #9
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #19
|<pre>A9      LDA #19
Line 7,306: Line 7,175:
|<pre>08      PHP
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1
F0 xx   BEQ @A-1
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 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1
F0 xx   BEQ @A-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 7,319: Line 7,186:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1</pre>||Clobbers A, Z&N, and C
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 7,333: Line 7,199:
08      PHP
08      PHP
A0 07    LDY #7
A0 07    LDY #7
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
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
|-
|-
Line 7,341: Line 7,206:
08      PHP
08      PHP
A2 07    LDX #7
A2 07    LDX #7
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
Line 7,351: Line 7,215:
A6 00    LDX $00
A6 00    LDX $00
A2 07    LDX #7
A2 07    LDX #7
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 7,359: Line 7,222:
A4 00    LDY $00
A4 00    LDY $00
A0 07    LDY #7
A0 07    LDY #7
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 7,380: Line 7,242:
|<pre>48      PHA
|<pre>48      PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
A9 09    LDA #$09 ;hides 'ORA #$EA'
@A:
EA      NOP ;first loop only
EA      NOP ;first loop only
20 xx xx JSR @rts14
20 xx xx JSR @rts14
30 xx   BMI @A-1
30 F9   BMI *-5
68      PLA</pre>||Clobbers Z&N; requires @rts14; and writes in stack
68      PLA</pre>||Clobbers Z&N; requires @rts14; and writes in stack
|-
|-
Line 7,391: Line 7,252:
48      PHA
48      PHA
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
30 xx   BMI @A-1
30 FA   BMI *-4
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 7,483: Line 7,343:
68      PLA
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1</pre>||Clobbers A, S, Z&N, and C
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 7,492: Line 7,351:
9A      TXS
9A      TXS
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1</pre>||Clobbers A, X, Z&N, and C
F0 xx   BEQ @A-1</pre>||Clobbers A, X, Z&N, and C
|-
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
@A:
E6 xx    INC @zptemp
18      CLC
B0 xx    BCS @A-1</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
A0 88    LDY #136 ;hides 'DEY'
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
88      DEY
88      DEY
30 xx   BMI @Y</pre>||Clobbers Y, and Z&N; requires dummy interrupt handler; and writes in stack
30 FC   BMI *-2</pre>||Clobbers Y, and Z&N; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
30 FC   BMI *-2</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
48      PHA
48      PHA
A0 08    LDY #8
A0 08    LDY #8
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</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
|<pre>48      PHA
48      PHA
48      PHA
A2 08    LDX #8
A2 08    LDX #8
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</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>EA      NOP
|<pre>EA      NOP
68      PLA
68      PLA
A0 08    LDY #8
A0 08    LDY #8
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68      PLA
68      PLA
A2 08    LDX #8
A2 08    LDX #8
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 7,555: Line 7,401:
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A0 06    LDY #6
A2 06    LDX #6
@Y:
EA      NOP
EA      NOP
88       DEY
CA       DEX
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A2 06    LDX #6
A0 06    LDY #6
@X:
EA      NOP
EA      NOP
CA       DEX
88       DEY
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 05    LDX #5 ;hides 'ORA zp'
A2 05    LDX #5 ;hides 'ORA zp'
@X = * - 1
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers A, and X; and writes in stack
28      PLP</pre>||Clobbers A, and X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 05    LDY #5 ;hides 'ORA zp'
A0 05    LDY #5 ;hides 'ORA zp'
@Y = * - 1
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers A, and Y; and writes in stack
28      PLP</pre>||Clobbers A, and Y; and writes in stack
|-
|-
|<pre>A9 2A   LDA #$2A ;hides 'ROL A'
|<pre>A5 00    LDA $00
@A:
A9 0A   LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
18      CLC
90 00   BCC *+2
30 FB   BMI *-3</pre>||Clobbers A, Z&N, and C
18      CLC
B0 xx    BCS @A-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>68      PLA
|<pre>68      PLA
08      PHP
08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
@A:
2A      ROL A ;first loop only
2A      ROL A ;first loop only
90 xx   BCC @A-1
90 FC   BCC *-2
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
Line 7,606: Line 7,446:
08      PHP
08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
@A:
2A      ROL A ;first loop only
2A      ROL A ;first loop only
90 xx   BCC @A-1
90 FC   BCC *-2
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 7,615: Line 7,454:
08      PHP
08      PHP
A2 07    LDX #7
A2 07    LDX #7
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 7,624: Line 7,462:
08      PHP
08      PHP
A0 07    LDY #7
A0 07    LDY #7
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 7,633: Line 7,470:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
@A:
2A      ROL A ;first loop only
2A      ROL A ;first loop only
90 xx   BCC @A-1
90 FC   BCC *-2
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>00 00    BRK 0
48      PHA
A9 2A    LDA #$2A ;hides 'ROL A'
@A:
18      CLC
B0 xx    BCS @A-1
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 7,656: Line 7,484:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
30 xx   BMI @A-1
30 FC   BMI *-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
|-
|-
Line 7,681: Line 7,508:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$18'
A9 E9    LDA #$E9 ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
10 xx   BPL @A-1
10 FC   BPL *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 7,886: Line 7,712:
|<pre>EA      NOP
|<pre>EA      NOP
A2 09    LDX #9
A2 09    LDX #9
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A0 09    LDY #9
A0 09    LDY #9
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>08      PHP
|<pre>EA      NOP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1
18      CLC
B0 xx   BCS @A-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
A2 08    LDX #8
A2 08    LDX #8
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
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
|<pre>08      PHP
A0 08    LDY #8
A0 08    LDY #8
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>EA      NOP
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1
18      CLC
B0 xx   BCS @A-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 7,930: Line 7,750:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1</pre>||Clobbers A, Z&N, and C
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 7,938: Line 7,757:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
30 xx   BMI @A-1
30 FC   BMI *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 8,023: Line 7,841:
|-
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
|<pre>A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
30 FD    BMI *-1</pre>||Clobbers Y, and Z&N
30 xx    BMI @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|5 bytes
!colspan="2"|5 bytes
Line 8,034: Line 7,851:
|-
|-
|<pre>A2 06    LDX #6
|<pre>A2 06    LDX #6
@X:
48      PHA
48      PHA
CA      DEX
CA      DEX
D0 xx   BNE @X</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>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
18      CLC
18      CLC
30 xx   BMI @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
30 FB   BMI *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 8,049: Line 7,864:
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
A2 09    LDX #9
A2 09    LDX #9
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</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>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
B8      CLV
B8      CLV
50 00    BVC *+2
50 00    BVC *+2
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, C, and V
30 FA   BMI *-4</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
85 xx    STA @zptemp
85 xx    STA @zptemp
18      CLC
18      CLC
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; and requires @zptemp
30 FA   BMI *-4</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1
F0 xx   BEQ @A-1
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
Line 8,075: Line 7,886:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1
F0 xx   BEQ @A-1
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
|-
|-
Line 8,083: Line 7,893:
68      PLA
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1</pre>||Clobbers A, S, Z&N, and C
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
04 00    NOP $00
18      CLC
18      CLC
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
30 FA   BMI *-4</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 8,107: Line 7,915:
A5 00    LDA $00
A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1
F0 xx   BEQ @A-1
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 8,114: Line 7,921:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1
F0 xx   BEQ @A-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,121: Line 7,927:
66 00    ROR $00
66 00    ROR $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1</pre>||Clobbers A, Z&N, and C
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 8,130: Line 7,935:
08      PHP
08      PHP
A2 07    LDX #7
A2 07    LDX #7
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
Line 8,139: Line 7,943:
08      PHP
08      PHP
A0 07    LDY #7
A0 07    LDY #7
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
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
|-
|-
Line 8,163: Line 7,966:
48      PHA
48      PHA
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
@A:
08       PHP
EA       NOP
28       PLP
18       CLC
30 FB   BMI *-3
B0 xx   BCS @A-1
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 8,270: Line 8,072:
|-
|-
|<pre>A2 07    LDX #7
|<pre>A2 07    LDX #7
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 07    LDY #7
|<pre>A0 07    LDY #7
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$2A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$2A'
@A:
2A      ROL A ;first loop only
2A      ROL A ;first loop only
EA      NOP
EA      NOP
90 xx   BCC @A-1</pre>||Clobbers A, Z&N, C, and V
90 FB   BCC *-3</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
@A:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
30 FA   BMI *-4</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1
F0 xx   BEQ @A-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
|-
|-
Line 8,305: Line 8,102:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1</pre>||Clobbers A, S, Z&N, and C
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 8,321: Line 8,117:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1
18      CLC
B0 xx   BCS @A-1
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
A0 06    LDY #6
EA      NOP
88      DEY
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 06    LDX #6
A2 06    LDX #6
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
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
|<pre>EA       NOP
A0 06    LDY #6
@Y:
EA      NOP
EA      NOP
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA      NOP
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1
18      CLC
B0 xx   BCS @A-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,357: Line 8,149:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1</pre>||Clobbers A, Z&N, and C
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 8,365: Line 8,156:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
@A:
2A      ROL A ;first loop only
2A      ROL A ;first loop only
90 xx   BCC @A-1
90 FC   BCC *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 8,392: Line 8,182:
48      PHA
48      PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
A9 09    LDA #$09 ;hides 'ORA #$EA'
@A:
EA      NOP ;first loop only
EA      NOP ;first loop only
EA      NOP
EA      NOP
Line 8,402: Line 8,191:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
30 xx   BMI @A-1</pre>||Clobbers A, and Z&N
30 F4   BMI *-10</pre>||Clobbers A, and Z&N
|-
|-
!colspan="2"|17 bytes
!colspan="2"|17 bytes
Line 8,424: Line 8,213:
|-
|-
|<pre>A0 0A    LDY #10
|<pre>A0 0A    LDY #10
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 0A    LDX #10
|<pre>A2 0A    LDX #10
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
10 xx   BPL @A-1</pre>||Clobbers A, Z&N, C, and V
10 FC   BPL *-2</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 8,442: Line 8,228:
|<pre>20 xx xx JSR @rts12
|<pre>20 xx xx JSR @rts12
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 8,449: Line 8,234:
68      PLA
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1</pre>||Clobbers A, S, Z&N, and C
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 8,466: Line 8,250:
|<pre>08      PHP
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
18      CLC
18      CLC
30 xx   BMI @A-1
30 FB   BMI *-3
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 88    LDY #136 ;hides 'DEY'
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
EA      NOP
EA      NOP
88      DEY
88      DEY
30 xx   BMI @Y
30 FB   BMI *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
18      CLC
18      CLC
30 xx   BMI @A-1
30 FB   BMI *-3
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
Line 8,491: Line 8,272:
76 00    ROR $00,X
76 00    ROR $00,X
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1</pre>||Clobbers A, Z&N, and C
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A2 08    LDX #8
A2 08    LDX #8
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
Line 8,507: Line 8,286:
A6 00    LDX $00
A6 00    LDX $00
A2 08    LDX #8
A2 08    LDX #8
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 8,530: Line 8,308:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
30 FD   BMI *-1
30 xx   BMI @A-1
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 8,539: Line 8,316:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
30 xx   BMI @A-1
30 FC   BMI *-2
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
Line 8,551: Line 8,327:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
30 xx   BMI @A-1
30 FC   BMI *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 8,654: Line 8,429:
|<pre>48      PHA
|<pre>48      PHA
A0 88    LDY #136 ;hides 'DEY'
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
30 FD    BMI *-1</pre>||Clobbers Y, S, and Z&N; and writes in stack
30 xx    BMI @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>A9      LDA #25
|<pre>A9      LDA #25
Line 8,664: Line 8,438:
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
A0 88    LDY #136 ;hides 'DEY'
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
30 FD    BMI *-1</pre>||Clobbers Y, and Z&N
30 xx    BMI @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 8,676: Line 8,448:
|<pre>EA      NOP
|<pre>EA      NOP
A2 07    LDX #7
A2 07    LDX #7
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
@A:
2A      ROL A ;first loop only
2A      ROL A ;first loop only
EA      NOP
EA      NOP
90 xx   BCC @A-1</pre>||Clobbers A, Z&N, C, and V
90 FB   BCC *-3</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
18      CLC
18      CLC
30 xx   BMI @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
30 FB   BMI *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 8,709: Line 8,478:
|<pre>EA      NOP
|<pre>EA      NOP
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
@A:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
30 FA   BMI *-4</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
|-
|-
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
Line 8,722: Line 8,490:
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1
F0 xx   BEQ @A-1
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
Line 8,730: Line 8,497:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1
F0 xx   BEQ @A-1
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
|-
|-
Line 8,739: Line 8,505:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1</pre>||Clobbers A, S, Z&N, and C
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1
18      CLC
B0 xx   BCS @A-1
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A0 06    LDY #6
EA      NOP
88      DEY
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A2 06    LDX #6
A2 06    LDX #6
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
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
|<pre>EA      NOP
08      PHP
A0 06    LDY #6
@Y:
EA      NOP
EA      NOP
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1
18      CLC
B0 xx   BCS @A-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,786: Line 8,547:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1</pre>||Clobbers A, Z&N, and C
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 8,802: Line 8,562:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
@A:
2A      ROL A ;first loop only
2A      ROL A ;first loop only
90 xx   BCC @A-1
90 FC   BCC *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 8,861: Line 8,620:
|<pre>68      PLA
|<pre>68      PLA
A0 88    LDY #136 ;hides 'DEY'
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
30 FD    BMI *-1</pre>||Clobbers A, Y, S, and Z&N
30 xx    BMI @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>A9      LDA #26
|<pre>A9      LDA #26
Line 8,871: Line 8,629:
|<pre>EA      NOP
|<pre>EA      NOP
A0 0A    LDY #10
A0 0A    LDY #10
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A2 0A    LDX #10
A2 0A    LDX #10
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</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>EA      NOP
@A:
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
EA      NOP
0A      ASL A ;first loop only
18      CLC
10 FC    BPL *-2</pre>||Clobbers A, Z&N, C, and V
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
|-
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
00 00    BRK 0
30 FB   BMI *-3</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 8,891: Line 8,650:
|<pre>08      PHP
|<pre>08      PHP
A2 09    LDX #9
A2 09    LDX #9
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
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
|<pre>08      PHP
A0 09    LDY #9
A0 09    LDY #9
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>20 xx xx JSR @rts14
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1</pre>||Clobbers A, Z&N, and C; requires @rts14; and writes in stack
|-
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
18      CLC
30 FB    BMI *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 8,918: Line 8,685:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1
F0 xx   BEQ @A-1
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|<pre>68      PLA
48      PHA
68      PLA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 9,033: Line 8,806:
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
A0 88    LDY #136 ;hides 'DEY'
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
30 FD    BMI *-1</pre>||Clobbers Y, and Z&N; and requires @zptemp
30 xx    BMI @Y</pre>||Clobbers Y, and Z&N; and requires @zptemp
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A0 0A    LDY #10
A0 0A    LDY #10
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</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
|<pre>48      PHA
A2 0A    LDX #10
A2 0A    LDX #10
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</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 88    LDY #136 ;hides 'DEY'
|<pre>A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
68      PLA
68      PLA
88      DEY
88      DEY
30 xx   BMI @Y</pre>||Clobbers A, Y, S, and Z&N
30 FB   BMI *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
48      PHA
48      PHA
30 xx   BMI @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
30 FB   BMI *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A6 00    LDX $00
A2 0A    LDX #10
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
A0 0A    LDY #10
A0 0A    LDY #10
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A6 00    LDX $00
A2 0A    LDX #10
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C
30 FA   BMI *-4</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 9,097: Line 8,862:
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1
F0 xx   BEQ @A-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
|-
|-
Line 9,108: Line 8,872:
9A      TXS
9A      TXS
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1
F0 xx   BEQ @A-1
28      PLP</pre>||Clobbers A, and X; and writes in stack
28      PLP</pre>||Clobbers A, and X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>EA      NOP
A9 2A    LDA #$2A ;hides 'ROL A'
@A:
E6 xx    INC @zptemp
18      CLC
B0 xx    BCS @A-1
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
|-
|<pre>48      PHA
A9 2A    LDA #$2A ;hides 'ROL A'
@A:
E6 xx    INC @zptemp
18      CLC
B0 xx    BCS @A-1
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
|-
|<pre>EA      NOP
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
Line 9,139: Line 8,886:
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1
F0 xx   BEQ @A-1
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
Line 9,147: Line 8,893:
08      PHP
08      PHP
A2 08    LDX #8
A2 08    LDX #8
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
Line 9,156: Line 8,901:
08      PHP
08      PHP
A0 08    LDY #8
A0 08    LDY #8
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
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
|-
|-
Line 9,166: Line 8,910:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1
F0 xx   BEQ @A-1
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
|-
|-
Line 9,180: Line 8,923:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9 2A   LDA #$2A ;hides 'ROL A'
A5 00    LDA $00
@A:
A9 0A   LDA #$0A ;hides 'ASL A'
18       CLC
EA       NOP
90 00    BCC *+2
18      CLC
18      CLC
B0 xx   BCS @A-1
30 FB   BMI *-3
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 9,191: Line 8,933:
EA      NOP
EA      NOP
08      PHP
08      PHP
A0 06    LDY #6
A2 06    LDX #6
@Y:
EA      NOP
EA      NOP
88       DEY
CA       DEX
D0 xx   BNE @Y
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
08      PHP
08      PHP
A2 06    LDX #6
A0 06    LDY #6
@X:
EA      NOP
EA      NOP
CA       DEX
88       DEY
D0 xx   BNE @X
D0 FA   BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>C5 00    CMP $00
A9 2A   LDA #$2A ;hides 'ROL A'
48      PHA
@A:
A9 0A   LDA #$0A ;hides 'ASL A'
18       CLC
EA       NOP
90 00    BCC *+2
18      CLC
18      CLC
B0 xx   BCS @A-1
30 FB   BMI *-3
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
Line 9,224: Line 8,963:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
@A:
2A      ROL A ;first loop only
2A      ROL A ;first loop only
90 xx   BCC @A-1
90 FC   BCC *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 9,286: Line 9,024:
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 FC   BEQ *-2</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>A0 F8    LDY #248 ;hides 'SED'
|<pre>A0 F8    LDY #248 ;hides 'SED'
@Y = * - 1
C8      INY
C8      INY
D0 xx   BNE @Y</pre>||Clobbers Y, Z&N, and D
D0 FC   BNE *-2</pre>||Clobbers Y, Z&N, and D
|-
|-
|<pre>A2 F8    LDX #248 ;hides 'SED'
|<pre>A2 F8    LDX #248 ;hides 'SED'
@X = * - 1
E8      INX
E8      INX
D0 xx   BNE @X</pre>||Clobbers X, Z&N, and D
D0 FC   BNE *-2</pre>||Clobbers X, Z&N, and D
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 9,305: Line 9,040:
48      PHA
48      PHA
A0 88    LDY #136 ;hides 'DEY'
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
30 FD    BMI *-1</pre>||Clobbers Y, S, and Z&N; and writes in stack
30 xx    BMI @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 06    LDY #6
|<pre>A0 06    LDY #6
@Y:
68      PLA
68      PLA
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 FA   BNE *-4</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>A2 06    LDX #6
|<pre>A2 06    LDX #6
@X:
68      PLA
68      PLA
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 FA   BNE *-4</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A0 06    LDY #6
|<pre>A0 06    LDY #6
@Y:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 F9   BNE *-5</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 06    LDX #6
|<pre>A2 06    LDX #6
@X:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 F9   BNE *-5</pre>||Clobbers X, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 9,351: Line 9,081:
08      PHP
08      PHP
A0 09    LDY #9
A0 09    LDY #9
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 9,359: Line 9,088:
08      PHP
08      PHP
A2 09    LDX #9
A2 09    LDX #9
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>EA      NOP
08      PHP
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1
18      CLC
B0 xx   BCS @A-1
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 9,395: Line 9,122:
|-
|-
|<pre>A9 09    LDA #$09 ;hides 'ORA #$EA'
|<pre>A9 09    LDA #$09 ;hides 'ORA #$EA'
@A:
EA      NOP ;first loop only
EA      NOP ;first loop only
EA      NOP
EA      NOP
Line 9,408: Line 9,134:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
30 xx   BMI @A-1</pre>||Clobbers A, and Z&N
30 F1   BMI *-13</pre>||Clobbers A, and Z&N
|-
|-
!colspan="2"|19 bytes
!colspan="2"|19 bytes
Line 9,483: Line 9,209:
|-
|-
|<pre>A2 0B    LDX #11
|<pre>A2 0B    LDX #11
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 0B    LDY #11
|<pre>A0 0B    LDY #11
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9      LDA #29
|<pre>A9      LDA #29
Line 9,499: Line 9,223:
|<pre>08      PHP
|<pre>08      PHP
A0 88    LDY #136 ;hides 'DEY'
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
30 FD    BMI *-1
30 xx    BMI @Y
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 9,506: Line 9,229:
|-
|-
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; requires @rts14; and writes in stack
30 FA   BMI *-4</pre>||Clobbers A, Z&N, and C; requires @rts14; and writes in stack
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
10 xx   BPL @A-1</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
10 FC   BPL *-2</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
48      PHA
48      PHA
30 xx   BMI @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
30 FB   BMI *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 9,535: Line 9,255:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>A5 00    LDA $00
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
30 FA   BMI *-4</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A2 09    LDX #9
A2 09    LDX #9
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
Line 9,554: Line 9,273:
|<pre>08      PHP
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
B8      CLV
B8      CLV
50 00    BVC *+2
50 00    BVC *+2
30 xx   BMI @A-1
30 FA   BMI *-4
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 06    LDX #6
A2 06    LDX #6
@X:
24 00    BIT $00
24 00    BIT $00
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 F9   BNE *-5
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
B8      CLV
B8      CLV
50 00    BVC *+2
50 00    BVC *+2
30 xx   BMI @A-1
30 FA   BMI *-4
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
85 xx    STA @zptemp
85 xx    STA @zptemp
18      CLC
18      CLC
30 xx   BMI @A-1
30 FA   BMI *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
|-
|-
Line 9,588: Line 9,303:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1
F0 xx   BEQ @A-1
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
Line 9,595: Line 9,309:
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
04 00    NOP $00
18      CLC
18      CLC
30 xx   BMI @A-1
30 FA   BMI *-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
|-
|-
Line 9,614: Line 9,327:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1
F0 xx   BEQ @A-1
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 9,681: Line 9,393:
|-
|-
|<pre>A2 08    LDX #8
|<pre>A2 08    LDX #8
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 08    LDY #8
|<pre>A0 08    LDY #8
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 FC   BEQ *-2</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 9,714: Line 9,423:
|<pre>08      PHP
|<pre>08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
@A:
2A      ROL A ;first loop only
2A      ROL A ;first loop only
EA      NOP
EA      NOP
90 xx   BCC @A-1
90 FB   BCC *-3
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 07    LDY #7
A0 07    LDY #7
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FA   BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 07    LDX #7
A2 07    LDX #7
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FA   BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
@A:
2A      ROL A ;first loop only
2A      ROL A ;first loop only
EA      NOP
EA      NOP
90 xx   BCC @A-1
90 FB   BCC *-3
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
Line 9,748: Line 9,453:
|<pre>48      PHA
|<pre>48      PHA
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
@A:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
30 xx   BMI @A-1
30 FA   BMI *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
|-
|-
Line 9,763: Line 9,467:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
08      PHP
08      PHP
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1
18      CLC
B0 xx   BCS @A-1
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 9,794: Line 9,497:
|<pre>EA      NOP
|<pre>EA      NOP
A9 09    LDA #$09 ;hides 'ORA #$EA'
A9 09    LDA #$09 ;hides 'ORA #$EA'
@A:
EA      NOP ;first loop only
EA      NOP ;first loop only
EA      NOP
EA      NOP
Line 9,807: Line 9,509:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
30 xx   BMI @A-1</pre>||Clobbers A, and Z&N
30 F1   BMI *-13</pre>||Clobbers A, and Z&N
|-
|-
!colspan="2"|20 bytes
!colspan="2"|20 bytes
Line 9,893: Line 9,595:
|<pre>EA      NOP
|<pre>EA      NOP
A2 0B    LDX #11
A2 0B    LDX #11
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A0 0B    LDY #11
A0 0B    LDY #11
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
F0 FC   BEQ *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 9,913: Line 9,612:
|<pre>08      PHP
|<pre>08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
10 xx   BPL @A-1
10 FC   BPL *-2
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 0A    LDY #10
A0 0A    LDY #10
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 0A    LDX #10
A2 0A    LDX #10
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 FC   BEQ *-2</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
10 xx   BPL @A-1
10 FC   BPL *-2
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,950: Line 9,644:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1
F0 xx   BEQ @A-1
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
|-
|-
Line 9,966: Line 9,659:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
18      CLC
18      CLC
30 xx   BMI @A-1
30 FB   BMI *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 10,037: Line 9,729:
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; and writes in stack
30 FB   BMI *-3</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A2 0B    LDX #11
A2 0B    LDX #11
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</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
|<pre>48      PHA
A0 0B    LDY #11
A0 0B    LDY #11
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 FB   BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C
F0 FC   BEQ *-2</pre>||Clobbers A, S, Z&N, and C
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A2 F8    LDX #248 ;hides 'SED'
A2 F8    LDX #248 ;hides 'SED'
@X = * - 1
E8      INX
E8      INX
D0 xx   BNE @X</pre>||Clobbers A, X, S, Z&N, and D
D0 FC   BNE *-2</pre>||Clobbers A, X, S, Z&N, and D
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A0 F8    LDY #248 ;hides 'SED'
A0 F8    LDY #248 ;hides 'SED'
@Y = * - 1
C8      INY
C8      INY
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, Z&N, and D
D0 FC   BNE *-2</pre>||Clobbers A, Y, S, Z&N, and D
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 10,076: Line 9,762:
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
A2 0B    LDX #11
A2 0B    LDX #11
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
A0 0B    LDY #11
A0 0B    LDY #11
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>EA      NOP
@A:
EA      NOP
C5 00    CMP $00
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
F0 FC   BEQ *-2</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A0 88    LDY #136 ;hides 'DEY'
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
30 FD    BMI *-1
30 xx    BMI @Y
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
Line 10,114: Line 9,797:
A4 00    LDY $00
A4 00    LDY $00
A0 88    LDY #136 ;hides 'DEY'
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
30 FD    BMI *-1
30 xx    BMI @Y
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 10,121: Line 9,803:
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1
F0 xx   BEQ @A-1
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
|-
|-
Line 10,128: Line 9,809:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1
F0 xx   BEQ @A-1
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
|-
|-
Line 10,137: Line 9,817:
08      PHP
08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
@A:
2A      ROL A ;first loop only
2A      ROL A ;first loop only
EA      NOP
EA      NOP
90 xx   BCC @A-1
90 FB   BCC *-3
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 10,146: Line 9,825:
08      PHP
08      PHP
A2 07    LDX #7
A2 07    LDX #7
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FA   BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 10,155: Line 9,833:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
@A:
2A      ROL A ;first loop only
2A      ROL A ;first loop only
EA      NOP
EA      NOP
90 xx   BCC @A-1
90 FB   BCC *-3
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
Line 10,173: Line 9,850:
48      PHA
48      PHA
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
@A:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
30 xx   BMI @A-1
30 FA   BMI *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
|-
|-
Line 10,190: Line 9,866:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1
F0 xx   BEQ @A-1
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
Line 10,198: Line 9,873:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
08      PHP
08      PHP
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1
18      CLC
B0 xx   BCS @A-1
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 10,229: Line 9,903:
|-
|-
|<pre>A9 09    LDA #$09 ;hides 'ORA #$EA'
|<pre>A9 09    LDA #$09 ;hides 'ORA #$EA'
@A:
EA      NOP ;first loop only
EA      NOP ;first loop only
EA      NOP
EA      NOP
Line 10,243: Line 9,916:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
30 xx   BMI @A-1</pre>||Clobbers A, and Z&N
30 F0   BMI *-14</pre>||Clobbers A, and Z&N
|-
|-
!colspan="2"|21 bytes
!colspan="2"|21 bytes
Line 10,326: Line 9,999:
|<pre>68      PLA
|<pre>68      PLA
A2 0B    LDX #11
A2 0B    LDX #11
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A0 0B    LDY #11
A0 0B    LDY #11
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 10,341: Line 10,012:
EA      NOP
EA      NOP
A0 0B    LDY #11
A0 0B    LDY #11
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A2 0B    LDX #11
A2 0B    LDX #11
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and requires @zptemp
F0 FC   BEQ *-2</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
F0 FC   BEQ *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 10,377: Line 10,044:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>08      PHP
|<pre>EA      NOP
A9 0A   LDA #$0A ;hides 'ASL A'
08      PHP
@A:
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
EA      NOP
0A      ASL A ;first loop only
18      CLC
10 FC   BPL *-2
B0 xx   BCS @A-1
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 10,388: Line 10,054:
08      PHP
08      PHP
A0 0A    LDY #10
A0 0A    LDY #10
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 10,396: Line 10,061:
08      PHP
08      PHP
A2 0A    LDX #10
A2 0A    LDX #10
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>EA       NOP
A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
18      CLC
18      CLC
B0 xx   BCS @A-1
F0 FC   BEQ *-2</pre>||Clobbers A, Z&N, and C
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A5 00   LDA $00
48      PHA
A9 0A   LDA #$0A ;hides 'ASL A'
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
18      CLC
10 FC    BPL *-2
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|<pre>48      PHA
A9 2A   LDA #$2A ;hides 'ROL A'
00 00    BRK 0
30 FB   BMI *-3
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>20 xx xx JSR @rts14
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
68      PLA</pre>||Clobbers Z&N, and C; requires @rts14; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 10,432: Line 10,106:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1
F0 xx   BEQ @A-1
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 10,497: Line 10,170:
|-
|-
|<pre>A0 0C    LDY #12
|<pre>A0 0C    LDY #12
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 0C    LDX #12
|<pre>A2 0C    LDX #12
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #34
|<pre>A9      LDA #34
Line 10,513: Line 10,184:
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; and writes in stack
30 FB   BMI *-3</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$38'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
E6 xx    INC @zptemp
E6 xx    INC @zptemp
90 xx   BCC @A-1</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>EA      NOP
68      PLA
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C
F0 FC   BEQ *-2</pre>||Clobbers A, S, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 10,544: Line 10,212:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
C5 00    CMP $00
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
F0 FC   BEQ *-2</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
E6 xx    INC @zptemp
E6 xx    INC @zptemp
A0 88    LDY #136 ;hides 'DEY'
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
30 FD    BMI *-1
30 xx    BMI @Y
28      PLP</pre>||Clobbers Y; requires @zptemp; and writes in stack
28      PLP</pre>||Clobbers Y; requires @zptemp; and writes in stack
|-
|-
Line 10,560: Line 10,227:
08      PHP
08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
10 xx   BPL @A-1
10 FC   BPL *-2
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
Line 10,568: Line 10,234:
08      PHP
08      PHP
A2 0A    LDX #10
A2 0A    LDX #10
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
Line 10,576: Line 10,241:
08      PHP
08      PHP
A0 0A    LDY #10
A0 0A    LDY #10
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
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
|-
|-
Line 10,584: Line 10,248:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
10 xx   BPL @A-1
10 FC   BPL *-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
|-
|-
Line 10,593: Line 10,256:
|<pre>08      PHP
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
30 xx   BMI @A-1
30 FA   BMI *-4
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
A4 00    LDY $00
A0 0A    LDY #10
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A6 00    LDX $00
A6 00    LDX $00
A2 0A    LDX #10
A2 0A    LDX #10
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
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 0A    LDY #10
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
30 xx   BMI @A-1
30 FA   BMI *-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,634: Line 10,293:
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>08      PHP
|<pre>EA      NOP
48      PHA
08      PHP
A9 2A    LDA #$2A ;hides 'ROL A'
28      PLP
@A:
E6 xx    INC @zptemp
18      CLC
B0 xx    BCS @A-1
68      PLA
28      PLP</pre>||Requires @zptemp; and writes in stack
|-
|<pre>EA      NOP
08      PHP
28      PLP
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
Line 10,658: Line 10,307:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1
F0 xx   BEQ @A-1
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
Line 10,666: Line 10,314:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
C5 00    CMP $00
48      PHA
48      PHA
A9 2A   LDA #$2A ;hides 'ROL A'
A9 0A   LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
18      CLC
18      CLC
90 00   BCC *+2
30 FB   BMI *-3
18      CLC
B0 xx    BCS @A-1
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 10,786: Line 10,433:
|-
|-
|<pre>A2 88    LDX #136 ;hides 'DEY'
|<pre>A2 88    LDX #136 ;hides 'DEY'
@X = * - 1
CA      DEX
CA      DEX
30 xx   BMI @X</pre>||Clobbers X, Y, and Z&N
30 FC   BMI *-2</pre>||Clobbers X, Y, and Z&N
|-
|-
|<pre>A9      LDA #35
|<pre>A9      LDA #35
Line 10,797: Line 10,443:
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
A0 88    LDY #136 ;hides 'DEY'
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
30 FD    BMI *-1</pre>||Clobbers Y, and Z&N; requires dummy interrupt handler; and writes in stack
30 xx    BMI @Y</pre>||Clobbers Y, and Z&N; requires dummy interrupt handler; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 10,804: Line 10,449:
|<pre>08      PHP
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FC   BEQ *-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 F8    LDX #248 ;hides 'SED'
A2 F8    LDX #248 ;hides 'SED'
@X = * - 1
E8      INX
E8      INX
D0 xx   BNE @X
D0 FC   BNE *-2
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 F8    LDY #248 ;hides 'SED'
A0 F8    LDY #248 ;hides 'SED'
@Y = * - 1
C8      INY
C8      INY
D0 xx   BNE @Y
D0 FC   BNE *-2
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FC   BEQ *-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
|-
|-
Line 10,833: Line 10,474:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 FC   BEQ *-2</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>68      PLA
|<pre>68      PLA
48      PHA
48      PHA
A0 F8    LDY #248 ;hides 'SED'
A0 F8    LDY #248 ;hides 'SED'
@Y = * - 1
C8      INY
C8      INY
D0 xx   BNE @Y</pre>||Clobbers A, Y, Z&N, and D
D0 FC   BNE *-2</pre>||Clobbers A, Y, Z&N, and D
|-
|-
|<pre>68      PLA
|<pre>68      PLA
48      PHA
48      PHA
A2 F8    LDX #248 ;hides 'SED'
A2 F8    LDX #248 ;hides 'SED'
@X = * - 1
E8      INX
E8      INX
D0 xx   BNE @X</pre>||Clobbers A, X, Z&N, and D
D0 FC   BNE *-2</pre>||Clobbers A, X, Z&N, and D
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68      PLA
68      PLA
A0 0B    LDY #11
A0 0B    LDY #11
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68      PLA
68      PLA
A2 0B    LDX #11
A2 0B    LDX #11
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 10,871: Line 10,507:
EA      NOP
EA      NOP
A0 0B    LDY #11
A0 0B    LDY #11
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 10,879: Line 10,514:
EA      NOP
EA      NOP
A2 0B    LDX #11
A2 0B    LDX #11
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 10,900: Line 10,534:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1
F0 xx   BEQ @A-1
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 10,929: Line 10,562:
48      PHA
48      PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
A9 09    LDA #$09 ;hides 'ORA #$EA'
@A:
EA      NOP ;first loop only
EA      NOP ;first loop only
EA      NOP
EA      NOP
Line 10,942: Line 10,574:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
30 xx   BMI @A-1</pre>||Clobbers A, and Z&N
30 F1   BMI *-13</pre>||Clobbers A, and Z&N
|-
|-
!colspan="2"|21 bytes
!colspan="2"|21 bytes
Line 10,966: Line 10,598:
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
F0 FC   BEQ *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>A9      LDA #36
|<pre>A9      LDA #36
Line 10,974: Line 10,605:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A2 0C    LDX #12
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A0 0C    LDY #12
A0 0C    LDY #12
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
A2 0C    LDX #12
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
85 xx    STA @zptemp
85 xx    STA @zptemp
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and requires @zptemp
F0 FB   BEQ *-3</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
04 00    NOP $00
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
F0 FB   BEQ *-3</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 11,001: Line 10,628:
|<pre>08      PHP
|<pre>08      PHP
A2 0B    LDX #11
A2 0B    LDX #11
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
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
|<pre>08      PHP
A0 0B    LDY #11
A0 0B    LDY #11
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; 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'
@A:
4C xx xx JMP *+3
4C xx xx JMP *+3
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and not relocatable code
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, and C; and not relocatable code
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 0C    LDA #12
A9 0C    LDA #12
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>68      PLA
|<pre>68      PLA
68      PLA
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C
F0 FC   BEQ *-2</pre>||Clobbers A, S, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 11,044: Line 10,666:
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
30 FD   BMI *-1
30 xx   BMI @A-1
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1</pre>||Clobbers A, Z&N, and C
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 11,054: Line 10,674:
|<pre>08      PHP
|<pre>08      PHP
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
30 xx   BMI @A-1
30 FA   BMI *-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 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
30 xx   BMI @A-1
30 FA   BMI *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @rts14; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts14; and writes in stack
|-
|-
Line 11,069: Line 10,687:
E6 xx    INC @zptemp
E6 xx    INC @zptemp
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
10 xx   BPL @A-1
10 FC   BPL *-2
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
|-
|-
Line 11,077: Line 10,694:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
10 xx   BPL @A-1
10 FC   BPL *-2
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
|-
|-
|<pre>A9 09    LDA #$09 ;hides 'ORA #$EA'
|<pre>A9 09    LDA #$09 ;hides 'ORA #$EA'
@A:
EA      NOP ;first loop only
EA      NOP ;first loop only
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
30 xx   BMI @A-1</pre>||Clobbers A, and Z&N; requires dummy interrupt handler; and writes in stack
30 F8   BMI *-6</pre>||Clobbers A, and Z&N; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>EA      NOP
48      PHA
08      PHP
08      PHP
A9 0A   LDA #$0A ;hides 'ASL A'
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
EA      NOP
10 FC   BPL *-2
18      CLC
B0 xx   BCS @A-1
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|<pre>EA      NOP
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
10 FC    BPL *-2
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
48      PHA
48      PHA
A9 0A   LDA #$0A ;hides 'ASL A'
A9 2A   LDA #$2A ;hides 'ROL A'
@A:
00 00    BRK 0
EA      NOP
30 FB   BMI *-3
18      CLC
68      PLA</pre>||Clobbers S, Z&N, and C; requires dummy interrupt handler; and writes in stack
B0 xx   BCS @A-1
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 11,117: Line 10,737:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A5 00    LDA $00
A9 2A   LDA #$2A ;hides 'ROL A'
A9 0A   LDA #$0A ;hides 'ASL A'
08      PHP
@A:
28      PLP
EA       NOP
08       PHP
18       CLC
28       PLP
B0 xx   BCS @A-1
30 F9   BMI *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>C5 00    CMP $00
|<pre>48      PHA
48      PHA
A9 2A   LDA #$2A ;hides 'ROL A'
A9 0A   LDA #$0A ;hides 'ASL A'
08      PHP
@A:
28      PLP
EA       NOP
08       PHP
18       CLC
28       PLP
B0 xx   BCS @A-1
30 F9   BMI *-5
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
Line 11,139: Line 10,759:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
B8      CLV
B8      CLV
50 00    BVC *+2
50 00    BVC *+2
30 xx   BMI @A-1
30 FA   BMI *-4
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 11,263: Line 10,882:
|-
|-
|<pre>A0 09    LDY #9
|<pre>A0 09    LDY #9
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 09    LDX #9
|<pre>A2 09    LDX #9
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$2A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$2A'
@A:
2A      ROL A ;first loop only
2A      ROL A ;first loop only
EA      NOP
EA      NOP
EA      NOP
EA      NOP
90 xx   BCC @A-1</pre>||Clobbers A, Z&N, C, and V
90 FA   BCC *-4</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
48      PHA
48      PHA
18      CLC
18      CLC
30 xx   BMI @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
30 FA   BMI *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 11,305: Line 10,920:
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FC   BEQ *-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
A0 08    LDY #8
A0 08    LDY #8
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FA   BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 08    LDX #8
A2 08    LDX #8
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FA   BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 11,329: Line 10,941:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C
30 F9   BMI *-5</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 11,356: Line 10,966:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
@A:
2A      ROL A ;first loop only
2A      ROL A ;first loop only
EA      NOP
EA      NOP
90 xx   BCC @A-1
90 FB   BCC *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 11,388: Line 10,997:
48      PHA
48      PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
A9 09    LDA #$09 ;hides 'ORA #$EA'
@A:
EA      NOP ;first loop only
EA      NOP ;first loop only
EA      NOP
EA      NOP
Line 11,401: Line 11,009:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
30 xx   BMI @A-1</pre>||Clobbers A, and Z&N
30 F1   BMI *-13</pre>||Clobbers A, and Z&N
|-
|-
!colspan="2"|22 bytes
!colspan="2"|22 bytes
Line 11,429: Line 11,037:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A0 08    LDY #8
48      PHA
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>A2 08    LDX #8
|<pre>A2 08    LDX #8
@X:
48      PHA
48      PHA
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FA   BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 08   LDY #8
|<pre>68      PLA
@Y:
A0 0C   LDY #12
48      PHA
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A2 0C    LDX #12
A2 0C    LDX #12
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|<pre>68      PLA
A0 0C    LDY #12
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
F0 FC   BEQ *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 11,465: Line 11,068:
EA      NOP
EA      NOP
A0 0C    LDY #12
A0 0C    LDY #12
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A2 0C    LDX #12
A2 0C    LDX #12
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
F0 FB    BEQ *-3</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>EA      NOP
@A:
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
04 00    NOP $00
EA      NOP
F0 FB   BEQ *-3</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 11,498: Line 11,102:
08      PHP
08      PHP
A2 0B    LDX #11
A2 0B    LDX #11
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 11,506: Line 11,109:
08      PHP
08      PHP
A0 0B    LDY #11
A0 0B    LDY #11
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
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
A9 0A    LDA #$0A ;hides 'ASL A'
4C xx xx JMP *+3
F0 FA    BEQ *-4</pre>||Clobbers A, Z&N, and C; and not relocatable code
|-
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts15
18      CLC
30 F9    BMI *-5</pre>||Clobbers A, Z&N, and C; requires @rts15; and writes in stack
|-
|<pre>EA      NOP
38      SEC
A9 0C    LDA #12
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>00 00    BRK 0
00 00    BRK 0
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1</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
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
Line 11,522: Line 11,144:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|<pre>EA      NOP
68      PLA
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
F0 FC    BEQ *-2</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 11,532: Line 11,160:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
10 xx   BPL @A-1
10 FC   BPL *-2
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'
18      CLC
F0 FC    BEQ *-2</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|17 bytes
!colspan="2"|17 bytes
Line 11,658: Line 11,291:
|-
|-
|<pre>A0 0D    LDY #13
|<pre>A0 0D    LDY #13
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 0D    LDX #13
|<pre>A2 0D    LDX #13
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #39
|<pre>A9      LDA #39
Line 11,674: Line 11,305:
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
F0 FC   BEQ *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 11,694: Line 11,324:
|<pre>08      PHP
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
30 xx   BMI @A-1
30 FB   BMI *-3
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 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
30 xx   BMI @A-1
30 FB   BMI *-3
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 09    LDA #9
A9 09    LDA #9
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F8   BNE *-6</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
85 xx    STA @zptemp
85 xx    STA @zptemp
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and requires @zptemp
F0 FB   BEQ *-3</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A2 0B    LDX #11
A2 0B    LDX #11
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
Line 11,732: Line 11,357:
08      PHP
08      PHP
A0 0B    LDY #11
A0 0B    LDY #11
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
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
|-
|-
Line 11,741: Line 11,365:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C
F0 FC   BEQ *-2</pre>||Clobbers A, S, Z&N, and C
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
04 00    NOP $00
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
F0 FB   BEQ *-3</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 11,756: Line 11,378:
A6 00    LDX $00
A6 00    LDX $00
A2 0B    LDX #11
A2 0B    LDX #11
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 11,764: Line 11,385:
A4 00    LDY $00
A4 00    LDY $00
A0 0B    LDY #11
A0 0B    LDY #11
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>68       PLA
|<pre>EA       NOP
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
C5 00    CMP $00
EA      NOP
EA      NOP
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
30 F9   BMI *-5</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 11,790: Line 11,410:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1
F0 xx   BEQ @A-1
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 11,801: Line 11,420:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
@A:
2A      ROL A ;first loop only
2A      ROL A ;first loop only
EA      NOP
EA      NOP
90 xx   BCC @A-1
90 FB   BCC *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 11,833: Line 11,451:
48      PHA
48      PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
A9 09    LDA #$09 ;hides 'ORA #$EA'
@A:
EA      NOP ;first loop only
EA      NOP ;first loop only
EA      NOP
EA      NOP
Line 11,847: Line 11,464:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
30 xx   BMI @A-1</pre>||Clobbers A, and Z&N
30 F0   BMI *-14</pre>||Clobbers A, and Z&N
|-
|-
!colspan="2"|23 bytes
!colspan="2"|23 bytes
Line 11,879: Line 11,496:
|<pre>68      PLA
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
F0 FC   BEQ *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 11,887: Line 11,503:
|<pre>BA      TSX
|<pre>BA      TSX
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
9A      TXS</pre>||Clobbers A, X, Z&N, and C; and writes in stack
9A      TXS</pre>||Clobbers A, X, Z&N, and C; and writes in stack
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
A2 88    LDX #136 ;hides 'DEY'
A2 88    LDX #136 ;hides 'DEY'
@X = * - 1
CA      DEX
CA      DEX
30 xx   BMI @X</pre>||Clobbers X, Y, and Z&N; and requires @zptemp
30 FC   BMI *-2</pre>||Clobbers X, Y, and Z&N; and requires @zptemp
|-
|-
|<pre>A2 06    LDX #6
|<pre>A2 06    LDX #6
@X:
48      PHA
48      PHA
48      PHA
48      PHA
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 F9   BNE *-5</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 06    LDY #6
|<pre>A0 06    LDY #6
@Y:
48      PHA
48      PHA
48      PHA
48      PHA
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 F9   BNE *-5</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>A2 06    LDX #6
|<pre>A2 06    LDX #6
@X:
EA      NOP
EA      NOP
68      PLA
68      PLA
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 F9   BNE *-5</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>A0 06    LDY #6
|<pre>A0 06    LDY #6
@Y:
EA      NOP
EA      NOP
68      PLA
68      PLA
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 F9   BNE *-5</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
85 xx    STA @zptemp
85 xx    STA @zptemp
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; and requires @zptemp
F0 FB   BEQ *-3</pre>||Clobbers A, S, Z&N, and C; and requires @zptemp
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
04 00    NOP $00
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; and requires support for unofficial opcodes
F0 FB   BEQ *-3</pre>||Clobbers A, S, Z&N, and C; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 11,949: Line 11,557:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>A4 00    LDY $00
A0 09    LDY #9
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
A2 09    LDX #9
A2 09    LDX #9
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
|-
|<pre>20 xx xx JSR @rts12
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
F0 FC    BEQ *-2</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
|-
|-
|<pre>A4 00   LDY $00
|<pre>A9 E9   LDA #$E9 ;hides 'SBC #$18'
A0 09    LDY #9
18      CLC ;first loop only
@Y:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
88      DEY
10 F9   BPL *-5</pre>||Clobbers A, Z&N, C, and V
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
F0 FB    BEQ *-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'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
F0 FC    BEQ *-2</pre>||Clobbers A, S, Z&N, and C
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
04 00    NOP $00
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
F0 FB   BEQ *-3</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 11,977: Line 11,606:
48      PHA
48      PHA
A0 0B    LDY #11
A0 0B    LDY #11
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
68      PLA
68      PLA
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
Line 11,987: Line 11,615:
08      PHP
08      PHP
A0 0B    LDY #11
A0 0B    LDY #11
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 11,996: Line 11,623:
08      PHP
08      PHP
A2 0B    LDX #11
A2 0B    LDX #11
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>36 00    ROL $00,X
76 00    ROR $00,X
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
F0 FC    BEQ *-2</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
E6 xx    INC @zptemp
E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
|-
|-
Line 12,012: Line 11,643:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
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
|-
|-
Line 12,021: Line 11,651:
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
Line 12,030: Line 11,659:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FC   BEQ *-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
|-
|-
Line 12,044: Line 11,672:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>08      PHP
|<pre>EA      NOP
08      PHP
48      PHA
48      PHA
A9 0A   LDA #$0A ;hides 'ASL A'
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
EA      NOP
10 FC   BPL *-2
18      CLC
B0 xx   BCS @A-1
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 12,077: Line 11,704:
|-
|-
|<pre>A9 09    LDA #$09 ;hides 'ORA #$EA'
|<pre>A9 09    LDA #$09 ;hides 'ORA #$EA'
@A:
EA      NOP ;first loop only
EA      NOP ;first loop only
EA      NOP
EA      NOP
Line 12,093: Line 11,719:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
30 xx   BMI @A-1</pre>||Clobbers A, and Z&N
30 EE   BMI *-16</pre>||Clobbers A, and Z&N
|-
|-
!colspan="2"|23 bytes
!colspan="2"|23 bytes
Line 12,168: Line 11,794:
|<pre>EA      NOP
|<pre>EA      NOP
A2 0D    LDX #13
A2 0D    LDX #13
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A0 0D    LDY #13
A0 0D    LDY #13
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 12,182: Line 11,806:
|<pre>08      PHP
|<pre>08      PHP
A2 0C    LDX #12
A2 0C    LDX #12
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
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
|<pre>08      PHP
A0 0C    LDY #12
A0 0C    LDY #12
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 0D    LDA #13
A9 0D    LDA #13
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
F0 FC   BEQ *-2</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
F0 FC   BEQ *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 12,227: Line 11,846:
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
85 xx    STA @zptemp
85 xx    STA @zptemp
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and requires @zptemp
F0 FB   BEQ *-3</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 12,236: Line 11,854:
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
30 xx   BMI @A-1
30 FB   BMI *-3
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 12,245: Line 11,862:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
30 xx   BMI @A-1
30 FB   BMI *-3
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>EA      NOP
68      PLA
68      PLA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
F0 FC   BEQ *-2</pre>||Clobbers A, S, Z&N, and C
|-
|<pre>EA      NOP
04 00    NOP $00
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
F0 FB    BEQ *-3</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 12,267: Line 11,889:
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
30 FD    BMI *-1
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
30 FB    BMI *-3</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 12,272: Line 11,901:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
10 xx   BPL @A-1
10 FC   BPL *-2
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
Line 12,283: Line 11,911:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
30 xx   BMI @A-1
30 FA   BMI *-4
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 12,355: Line 11,982:
|-
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
|<pre>A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
EA      NOP
EA      NOP
30 xx   BMI @Y</pre>||Clobbers Y, and Z&N
30 FC   BMI *-2</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 0A    LDX #10 ;hides 'ASL A'
|<pre>A2 0A    LDX #10 ;hides 'ASL A'
@X = * - 1
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, Z&N, and C
D0 FC   BNE *-2</pre>||Clobbers A, X, Z&N, and C
|-
|-
|<pre>A9      LDA #42
|<pre>A9      LDA #42
Line 12,371: Line 11,996:
|<pre>48      PHA
|<pre>48      PHA
A2 0D    LDX #13
A2 0D    LDX #13
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</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
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 12,379: Line 12,003:
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
A2 0D    LDX #13
A2 0D    LDX #13
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 88    LDX #136 ;hides 'DEY'
A2 88    LDX #136 ;hides 'DEY'
@X = * - 1
CA      DEX
CA      DEX
30 xx   BMI @X
30 FC   BMI *-2
28      PLP</pre>||Clobbers X, and Y; and writes in stack
28      PLP</pre>||Clobbers X, and Y; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
18      CLC
18      CLC
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; and writes in stack
30 FA   BMI *-4</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 12,412: Line 12,033:
08      PHP
08      PHP
A0 88    LDY #136 ;hides 'DEY'
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
30 FD    BMI *-1
30 xx    BMI @Y
28      PLP</pre>||Clobbers Y; requires dummy interrupt handler; and writes in stack
28      PLP</pre>||Clobbers Y; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>EA      NOP
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
F0 FB    BEQ *-3</pre>||Clobbers A, S, Z&N, and C; and requires @zptemp
|-
|<pre>EA      NOP
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
EA      NOP
F0 FB   BEQ *-3</pre>||Clobbers A, S, Z&N, and C; and requires support for unofficial opcodes
EA      NOP
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 12,429: Line 12,053:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
18      CLC
18      CLC
90 00    BCC *+2
90 00    BCC *+2
18      CLC
18      CLC
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C
30 F8   BMI *-6</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|18 bytes
!colspan="2"|18 bytes
Line 12,468: Line 12,090:
|<pre>EA      NOP
|<pre>EA      NOP
A9 09    LDA #$09 ;hides 'ORA #$EA'
A9 09    LDA #$09 ;hides 'ORA #$EA'
@A:
EA      NOP ;first loop only
EA      NOP ;first loop only
EA      NOP
EA      NOP
Line 12,484: Line 12,105:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
30 xx   BMI @A-1</pre>||Clobbers A, and Z&N
30 EE   BMI *-16</pre>||Clobbers A, and Z&N
|-
|-
!colspan="2"|24 bytes
!colspan="2"|24 bytes
Line 12,513: Line 12,134:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>68      PLA
A2 0D    LDX #13
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A0 0D    LDY #13
A0 0D    LDY #13
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|<pre>68      PLA
A2 0D    LDX #13
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 12,531: Line 12,150:
EA      NOP
EA      NOP
A0 0D    LDY #13
A0 0D    LDY #13
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A2 0D    LDX #13
A2 0D    LDX #13
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
68      PLA
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
F0 FC   BEQ *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 12,564: Line 12,180:
08      PHP
08      PHP
A0 0C    LDY #12
A0 0C    LDY #12
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 12,572: Line 12,187:
08      PHP
08      PHP
A2 0C    LDX #12
A2 0C    LDX #12
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>20 xx xx JSR @rts15
|<pre>20 xx xx JSR @rts15
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires @rts15; and writes in stack
F0 FC   BEQ *-2</pre>||Clobbers A, Z&N, and C; requires @rts15; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
38      SEC
38      SEC
A9 0D    LDA #13
A9 0D    LDA #13
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</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
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
85 xx    STA @zptemp
85 xx    STA @zptemp
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
85 xx    STA @zptemp
85 xx    STA @zptemp
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
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
|-
|-
Line 12,607: Line 12,217:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
85 xx    STA @zptemp
85 xx    STA @zptemp
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and requires @zptemp
F0 FB   BEQ *-3</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
00 00    BRK 0
00 00    BRK 0
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
F0 FC   BEQ *-2</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
04 00    NOP $00
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
04 00    NOP $00
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
68      PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
|-
|-
Line 12,635: Line 12,241:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
04 00    NOP $00
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
F0 FB   BEQ *-3</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 12,644: Line 12,249:
38      SEC
38      SEC
A9 0C    LDA #12
A9 0C    LDA #12
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
4C xx xx JMP *+3
4C xx xx JMP *+3
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA</pre>||Clobbers Z&N, and C; writes in stack; and not relocatable code
68      PLA</pre>||Clobbers Z&N, and C; writes in stack; and not relocatable code
|-
|-
Line 12,659: Line 12,262:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
4C xx xx JMP *+3
4C xx xx JMP *+3
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and not relocatable code
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, and C; and not relocatable code
|-
|-
|<pre>48      PHA
|<pre>48      PHA
38      SEC
38      SEC
A9 0C    LDA #12
A9 0C    LDA #12
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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 12,676: Line 12,277:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C
F0 FC   BEQ *-2</pre>||Clobbers A, S, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 12,690: Line 12,290:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 2A   LDA #$2A ;hides 'ROL A'
A9 0A   LDA #$0A ;hides 'ASL A'
@A:
30 FD    BMI *-1
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
F0 FD   BEQ *-1
28      PLP
18      CLC
B0 xx   BCS @A-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
|<pre>68       PLA
A5 00   LDA $00
48      PHA
A9 0A   LDA #$0A ;hides 'ASL A'
30 FD    BMI *-1
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1</pre>||Clobbers A, Z&N, and C
EA      NOP
EA      NOP
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 12,713: Line 12,308:
48      PHA
48      PHA
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
30 xx   BMI @A-1
30 FA   BMI *-4
68      PLA
68      PLA
28      PLP</pre>||Requires @rts14; and writes in stack
28      PLP</pre>||Requires @rts14; and writes in stack
Line 12,723: Line 12,317:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
10 xx   BPL @A-1
10 FC   BPL *-2
68      PLA
68      PLA
28      PLP</pre>||Requires @zptemp; and writes in stack
28      PLP</pre>||Requires @zptemp; and writes in stack
Line 12,731: Line 12,324:
|<pre>48      PHA
|<pre>48      PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
A9 09    LDA #$09 ;hides 'ORA #$EA'
@A:
EA      NOP ;first loop only
EA      NOP ;first loop only
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
30 xx   BMI @A-1
30 F8   BMI *-6
68      PLA</pre>||Clobbers Z&N; requires dummy interrupt handler; and writes in stack
68      PLA</pre>||Clobbers Z&N; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>EA      NOP
48      PHA
08      PHP
08      PHP
48      PHA
48      PHA
A9 0A   LDA #$0A ;hides 'ASL A'
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
EA      NOP
10 FC   BPL *-2
18      CLC
B0 xx   BCS @A-1
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
Line 12,752: Line 12,343:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
C5 00    CMP $00
48      PHA
48      PHA
A9 0A   LDA #$0A ;hides 'ASL A'
A9 2A   LDA #$2A ;hides 'ROL A'
@A:
08      PHP
EA       NOP
28      PLP
18       CLC
08       PHP
B0 xx   BCS @A-1
28       PLP
30 F9   BMI *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 12,829: Line 12,420:
|-
|-
|<pre>A0 0E    LDY #14
|<pre>A0 0E    LDY #14
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 0E    LDX #14
|<pre>A2 0E    LDX #14
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #44
|<pre>A9      LDA #44
Line 12,844: Line 12,433:
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 FB   BEQ *-3</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 12,865: Line 12,453:
|<pre>08      PHP
|<pre>08      PHP
A0 09    LDY #9
A0 09    LDY #9
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FA   BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 09    LDX #9
A2 09    LDX #9
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FA   BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 12,883: Line 12,469:
|<pre>08      PHP
|<pre>08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
@A:
2A      ROL A ;first loop only
2A      ROL A ;first loop only
EA      NOP
EA      NOP
EA      NOP
EA      NOP
90 xx   BCC @A-1
90 FA   BCC *-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 E9    LDA #$E9 ;hides 'SBC #$2A'
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
@A:
2A      ROL A ;first loop only
2A      ROL A ;first loop only
EA      NOP
EA      NOP
EA      NOP
EA      NOP
90 xx   BCC @A-1
90 FA   BCC *-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 12,912: Line 12,496:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 12,942: Line 12,525:
|-
|-
|<pre>A9 09    LDA #$09 ;hides 'ORA #$EA'
|<pre>A9 09    LDA #$09 ;hides 'ORA #$EA'
@A:
EA      NOP ;first loop only
EA      NOP ;first loop only
EA      NOP
EA      NOP
Line 12,959: Line 12,541:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
30 xx   BMI @A-1</pre>||Clobbers A, and Z&N
30 ED   BMI *-17</pre>||Clobbers A, and Z&N
|-
|-
|}
|}
Line 12,975: Line 12,557:
|<pre>48      PHA
|<pre>48      PHA
A0 88    LDY #136 ;hides 'DEY'
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
EA      NOP
EA      NOP
30 xx   BMI @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
30 FC   BMI *-2</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A2 0A    LDX #10 ;hides 'ASL A'
A2 0A    LDX #10 ;hides 'ASL A'
@X = * - 1
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, Z&N, and C; and writes in stack
D0 FC   BNE *-2</pre>||Clobbers A, X, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 12,989: Line 12,569:
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
A0 88    LDY #136 ;hides 'DEY'
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
EA      NOP
EA      NOP
30 xx   BMI @Y</pre>||Clobbers Y, and Z&N
30 FC   BMI *-2</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
A2 0A    LDX #10 ;hides 'ASL A'
A2 0A    LDX #10 ;hides 'ASL A'
@X = * - 1
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, Z&N, and C
D0 FC   BNE *-2</pre>||Clobbers A, X, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
48      PHA
48      PHA
A2 0D    LDX #13
A2 0D    LDX #13
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</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>EA      NOP
|<pre>EA      NOP
68      PLA
68      PLA
A2 0D    LDX #13
A2 0D    LDX #13
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 13,029: Line 12,605:
EA      NOP
EA      NOP
A2 0D    LDX #13
A2 0D    LDX #13
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
30 FB   BMI *-3</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 88    LDX #136 ;hides 'DEY'
A2 88    LDX #136 ;hides 'DEY'
@X = * - 1
CA      DEX
CA      DEX
30 xx   BMI @X
30 FC   BMI *-2
28      PLP</pre>||Clobbers X, Y, and S; and writes in stack
28      PLP</pre>||Clobbers X, Y, and S; and writes in stack
|-
|-
Line 13,052: Line 12,625:
68      PLA
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
F0 FC   BEQ *-2</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
38      SEC
38      SEC
A9 0D    LDA #13
A9 0D    LDA #13
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, S, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>8C      TXA
48      PHA
A2 0C    LDX #12
CA      DEX
D0 FB    BNE *-3
68      PLA
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9 0A   LDA #$0A ;hides 'ASL A'
A2 08   LDX #8
@A:
C5 00    CMP $00
EA      NOP
CA       DEX
EA      NOP
D0 F9   BNE *-5
18       CLC
28      PLP</pre>||Clobbers X; and writes in stack
B0 xx   BCS @A-1
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 08    LDY #8
A0 08    LDY #8
@Y:
C5 00    CMP $00
24 00    BIT $00
88      DEY
88      DEY
D0 xx   BNE @Y
D0 F9   BNE *-5
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>EA      NOP
A2 08   LDX #8
EA      NOP
@X:
38      SEC
C5 00   CMP $00
A9 0D    LDA #13
CA       DEX
E9 01    SBC #1
D0 xx    BNE @X
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A9 0A   LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
F0 FB    BEQ *-3
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
|-
|<pre>EA      NOP
48      PHA
A9 0A   LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
F0 FB    BEQ *-3
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
|-
|<pre>EA      NOP
68      PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
F0 FB    BEQ *-3</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|<pre>EA      NOP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
F0 FB    BEQ *-3
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>EA      NOP
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
EA      NOP
F0 FB   BEQ *-3
EA      NOP
68      PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
18      CLC
B0 xx   BCS @A-1
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>EA      NOP
68      PLA
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
EA      NOP
F0 FB   BEQ *-3</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
EA      NOP
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 13,117: Line 12,716:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>48       PHA
|<pre>EA       NOP
08      PHP
08      PHP
38      SEC
A9 0C    LDA #12
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>EA      NOP
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
4C xx xx JMP *+3
18      CLC
F0 FA    BEQ *-4
F0 xx   BEQ @A-1
68      PLA</pre>||Clobbers Z&N, and C; writes in stack; and not relocatable code
68      PLA
|-
28      PLP</pre>||Clobbers S; and writes in stack
|<pre>48      PHA
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts15
18      CLC
30 F9    BMI *-5
68      PLA</pre>||Clobbers Z&N, and C; requires @rts15; and writes in stack
|-
|<pre>EA      NOP
68      PLA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
4C xx xx JMP *+3
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, and C; and not relocatable code
|-
|<pre>EA      NOP
48      PHA
38      SEC
A9 0C    LDA #12
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|<pre>00 00    BRK 0
00 00    BRK 0
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|<pre>48      PHA
08      PHP
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
F0 FC    BEQ *-2
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
|-
|<pre>EA      NOP
68      PLA
68      PLA
68      PLA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
F0 FC    BEQ *-2</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 13,134: Line 12,785:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
10 xx   BPL @A-1
10 FC   BPL *-2
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
30 F8    BMI *-6</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|18 bytes
!colspan="2"|18 bytes
Line 13,214: Line 12,872:
|<pre>EA      NOP
|<pre>EA      NOP
A2 0E    LDX #14
A2 0E    LDX #14
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A0 0E    LDY #14
A0 0E    LDY #14
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 13,228: Line 12,884:
|<pre>08      PHP
|<pre>08      PHP
A0 0D    LDY #13
A0 0D    LDY #13
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 0D    LDX #13
A2 0D    LDX #13
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 FB   BEQ *-3</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 13,262: Line 12,915:
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
85 xx    STA @zptemp
85 xx    STA @zptemp
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
28      PLP</pre>||Clobbers A, and S; requires @zptemp; and writes in stack
28      PLP</pre>||Clobbers A, and S; requires @zptemp; and writes in stack
|-
|-
Line 13,270: Line 12,922:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
85 xx    STA @zptemp
85 xx    STA @zptemp
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
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
|-
|-
Line 13,278: Line 12,929:
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
04 00    NOP $00
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
28      PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
|-
|-
Line 13,286: Line 12,936:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
04 00    NOP $00
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
68      PLA</pre>||Clobbers S, Z&N, and C; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; requires support for unofficial opcodes; and writes in stack
|-
|-
Line 13,303: Line 12,952:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
30 xx   BMI @A-1
30 FB   BMI *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 13,336: Line 12,984:
|<pre>EA      NOP
|<pre>EA      NOP
A9 09    LDA #$09 ;hides 'ORA #$EA'
A9 09    LDA #$09 ;hides 'ORA #$EA'
@A:
EA      NOP ;first loop only
EA      NOP ;first loop only
EA      NOP
EA      NOP
Line 13,353: Line 13,000:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
30 xx   BMI @A-1</pre>||Clobbers A, and Z&N
30 ED   BMI *-17</pre>||Clobbers A, and Z&N
|-
|-
|}
|}
Line 13,369: Line 13,016:
|<pre>48      PHA
|<pre>48      PHA
A2 0E    LDX #14
A2 0E    LDX #14
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</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
|<pre>48      PHA
A0 0E    LDY #14
A0 0E    LDY #14
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</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
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 13,383: Line 13,028:
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
A2 0E    LDX #14
A2 0E    LDX #14
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
A0 0E    LDY #14
A0 0E    LDY #14
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
08      PHP
08      PHP
28      PLP
28      PLP
30 xx   BMI @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
30 FA   BMI *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 13,414: Line 13,056:
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 FB   BEQ *-3</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 13,424: Line 13,065:
BA      TSX
BA      TSX
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
9A      TXS
9A      TXS
28      PLP</pre>||Clobbers A, and X; and writes in stack
28      PLP</pre>||Clobbers A, and X; and writes in stack
Line 13,433: Line 13,073:
E6 xx    INC @zptemp
E6 xx    INC @zptemp
A2 88    LDX #136 ;hides 'DEY'
A2 88    LDX #136 ;hides 'DEY'
@X = * - 1
CA      DEX
CA      DEX
30 xx   BMI @X
30 FC   BMI *-2
28      PLP</pre>||Clobbers X, and Y; requires @zptemp; and writes in stack
28      PLP</pre>||Clobbers X, and Y; requires @zptemp; and writes in stack
|-
|-
Line 13,441: Line 13,080:
08      PHP
08      PHP
A0 09    LDY #9
A0 09    LDY #9
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FA   BNE *-4
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
Line 13,450: Line 13,088:
08      PHP
08      PHP
A2 09    LDX #9
A2 09    LDX #9
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FA   BNE *-4
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
Line 13,459: Line 13,096:
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
85 xx    STA @zptemp
85 xx    STA @zptemp
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
28      PLP</pre>||Clobbers A, S, and Z&N; requires @zptemp; and writes in stack
28      PLP</pre>||Clobbers A, S, and Z&N; requires @zptemp; and writes in stack
|-
|-
Line 13,467: Line 13,103:
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
04 00    NOP $00
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
28      PLP</pre>||Clobbers A, S, and Z&N; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A, S, and Z&N; requires support for unofficial opcodes; and writes in stack
|-
|-
Line 13,481: Line 13,116:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
08      PHP
A9 E9   LDA #$E9 ;hides 'SBC #$18'
A9 0A   LDA #$0A ;hides 'ASL A'
18      CLC ;first loop only
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
10 F9   BPL *-5
B0 xx   BCS @A-1
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A0 08    LDY #8
@Y:
24 00    BIT $00
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A2 08    LDX #8
A2 08    LDX #8
@X:
C5 00    CMP $00
C5 00    CMP $00
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 F9   BNE *-5
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
A0 08    LDY #8
C5 00    CMP $00
88      DEY
D0 F9    BNE *-5
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>20 xx xx JSR @rts12
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
F0 FC    BEQ *-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
10 F9    BPL *-5
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
F0 FB    BEQ *-3
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
18       CLC
48       PHA
B0 xx   BCS @A-1
A9 0A   LDA #$0A ;hides 'ASL A'
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
04 00    NOP $00
F0 FB    BEQ *-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
Line 13,525: Line 13,179:
48      PHA
48      PHA
A0 0B    LDY #11
A0 0B    LDY #11
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
68      PLA
68      PLA
A8      TAY
A8      TAY
Line 13,536: Line 13,189:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA
68      PLA
28      PLP</pre>||Requires @zptemp; and writes in stack
28      PLP</pre>||Requires @zptemp; and writes in stack
Line 13,547: Line 13,199:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
Line 13,556: Line 13,207:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
28      PLP
08      PHP
48      PHA
48      PHA
A9 0A   LDA #$0A ;hides 'ASL A'
98      TYA
@A:
48      PHA
EA       NOP
A0 88   LDY #136 ;hides 'DEY'
18       CLC
30 FD    BMI *-1
B0 xx    BCS @A-1
68       PLA
A8       TAY
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 13,594: Line 13,244:
48      PHA
48      PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
A9 09    LDA #$09 ;hides 'ORA #$EA'
@A:
EA      NOP ;first loop only
EA      NOP ;first loop only
EA      NOP
EA      NOP
Line 13,610: Line 13,259:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
30 xx   BMI @A-1</pre>||Clobbers A, and Z&N
30 EE   BMI *-16</pre>||Clobbers A, and Z&N
|-
|-
|}
|}
Line 13,626: Line 13,275:
|<pre>68      PLA
|<pre>68      PLA
A2 0E    LDX #14
A2 0E    LDX #14
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A0 0E    LDY #14
A0 0E    LDY #14
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 13,641: Line 13,288:
EA      NOP
EA      NOP
A0 0E    LDY #14
A0 0E    LDY #14
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A2 0E    LDX #14
A2 0E    LDX #14
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C
F0 FB   BEQ *-3</pre>||Clobbers A, S, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 13,674: Line 13,318:
08      PHP
08      PHP
A2 0D    LDX #13
A2 0D    LDX #13
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 13,682: Line 13,325:
08      PHP
08      PHP
A0 0D    LDY #13
A0 0D    LDY #13
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 13,690: Line 13,332:
EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 FB   BEQ *-3</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 13,700: Line 13,341:
38      SEC
38      SEC
A9 0D    LDA #13
A9 0D    LDA #13
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 13,708: Line 13,348:
38      SEC
38      SEC
A9 0D    LDA #13
A9 0D    LDA #13
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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 13,716: Line 13,355:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
Line 13,733: Line 13,371:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
85 xx    STA @zptemp
85 xx    STA @zptemp
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
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
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
EA      NOP
F0 FB   BEQ *-3
EA      NOP
68      PLA</pre>||Clobbers S, Z&N, and C; requires support for unofficial opcodes; and writes in stack
18      CLC
B0 xx   BCS @A-1
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 13,754: Line 13,389:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
30 xx   BMI @A-1
30 FB   BMI *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 13,786: Line 13,420:
|-
|-
|<pre>A9 09    LDA #$09 ;hides 'ORA #$EA'
|<pre>A9 09    LDA #$09 ;hides 'ORA #$EA'
@A:
EA      NOP ;first loop only
EA      NOP ;first loop only
EA      NOP
EA      NOP
Line 13,804: Line 13,437:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
30 xx   BMI @A-1</pre>||Clobbers A, and Z&N
30 EC   BMI *-18</pre>||Clobbers A, and Z&N
|-
|-
|}
|}
Line 13,814: Line 13,447:
|-
|-
|<pre>A2 0F    LDX #15
|<pre>A2 0F    LDX #15
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 0F    LDY #15
|<pre>A0 0F    LDY #15
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$08'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$08'
@A:
08      PHP ;first loop only
08      PHP ;first loop only
10 xx   BPL @A-1</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
10 FC   BPL *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>A9      LDA #49
|<pre>A9      LDA #49
Line 13,835: Line 13,465:
|<pre>08      PHP
|<pre>08      PHP
A0 88    LDY #136 ;hides 'DEY'
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
EA      NOP
EA      NOP
30 xx   BMI @Y
30 FC   BMI *-2
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 0A    LDX #10 ;hides 'ASL A'
A2 0A    LDX #10 ;hides 'ASL A'
@X = * - 1
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FC   BNE *-2
28      PLP</pre>||Clobbers A, and X; and writes in stack
28      PLP</pre>||Clobbers A, and X; and writes in stack
|-
|-
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
F0 FC   BEQ *-2</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 13,867: Line 13,494:
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and requires @zptemp
F0 FB   BEQ *-3</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A2 0D    LDX #13
A2 0D    LDX #13
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
08      PHP
08      PHP
28      PLP
28      PLP
30 xx   BMI @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
30 FA   BMI *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
04 00    NOP $00
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
F0 FB   BEQ *-3</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 13,898: Line 13,521:
|<pre>08      PHP
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
18      CLC
18      CLC
30 xx   BMI @A-1
30 FA   BMI *-4
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 13,908: Line 13,530:
A6 00    LDX $00
A6 00    LDX $00
A2 0D    LDX #13
A2 0D    LDX #13
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
18      CLC
18      CLC
30 xx   BMI @A-1
30 FA   BMI *-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 13,925: Line 13,545:
A5 00    LDA $00
A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 FB   BEQ *-3</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 13,944: Line 13,563:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 13,978: Line 13,596:
48      PHA
48      PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
A9 09    LDA #$09 ;hides 'ORA #$EA'
@A:
EA      NOP ;first loop only
EA      NOP ;first loop only
EA      NOP
EA      NOP
Line 13,994: Line 13,611:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
30 xx   BMI @A-1</pre>||Clobbers A, and Z&N
30 EE   BMI *-16</pre>||Clobbers A, and Z&N
|-
|-
|}
|}
Line 14,011: Line 13,628:
48      PHA
48      PHA
A2 0E    LDX #14
A2 0E    LDX #14
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</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
|<pre>48      PHA
48      PHA
48      PHA
A0 0E    LDY #14
A0 0E    LDY #14
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</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
|<pre>EA      NOP
68      PLA
68      PLA
A2 0E    LDX #14
A0 0E    LDY #14
@X:
88       DEY
CA       DEX
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68      PLA
68      PLA
A0 0E    LDY #14
A2 0E    LDX #14
@Y:
CA       DEX
88       DEY
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
18      CLC
B0 xx    BCS @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 14,058: Line 13,664:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
A0 0E    LDY #14
A2 0E    LDX #14
@Y:
CA       DEX
88       DEY
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
A2 0E    LDX #14
A0 0E    LDY #14
@X:
88       DEY
CA       DEX
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
|-
|<pre>A9 69    LDA #$69 ;hides 'ADC #$D8'
D8      CLD ;first loop only
20 xx xx JSR @rts14
30 F9    BMI *-5</pre>||Clobbers A, Z&N, C, V, and D; requires @rts14; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>EA      NOP
@A:
68      PLA
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
B0 xx    BCS @A-1</pre>||Clobbers A, Z&N, and C
F0 FB    BEQ *-3</pre>||Clobbers A, S, Z&N, and C
|-
|<pre>A9 4B    LDA #$4B ;hides 'ASR #$EA'
EA      NOP ;first loop only
20 xx xx JSR @rts14
F0 F9   BEQ *-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 14,084: Line 13,697:
48      PHA
48      PHA
A0 0D    LDY #13
A0 0D    LDY #13
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
68      PLA
68      PLA
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
Line 14,094: Line 13,706:
08      PHP
08      PHP
A0 0D    LDY #13
A0 0D    LDY #13
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 14,103: Line 13,714:
08      PHP
08      PHP
A2 0D    LDX #13
A2 0D    LDX #13
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
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
EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
F0 FB    BEQ *-3</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 14,121: Line 13,739:
38      SEC
38      SEC
A9 0D    LDA #13
A9 0D    LDA #13
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 14,129: Line 13,746:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA</pre>||Clobbers Z&N, and C; requires @rts15; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts15; and writes in stack
|-
|-
Line 14,138: Line 13,754:
38      SEC
38      SEC
A9 0D    LDA #13
A9 0D    LDA #13
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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 14,146: Line 13,761:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
85 xx    STA @zptemp
85 xx    STA @zptemp
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
68      PLA
68      PLA
28      PLP</pre>||Requires @zptemp; and writes in stack
28      PLP</pre>||Requires @zptemp; and writes in stack
Line 14,156: Line 13,770:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
Line 14,164: Line 13,777:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
04 00    NOP $00
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
68      PLA
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
Line 14,176: Line 13,788:
38      SEC
38      SEC
A9 0C    LDA #12
A9 0C    LDA #12
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 14,243: Line 13,854:
|-
|-
|<pre>A0 0B    LDY #11
|<pre>A0 0B    LDY #11
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 0B    LDX #11
|<pre>A2 0B    LDX #11
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 E9    LDA #$E9 ;hides 'SBC #$08'
A9 E9    LDA #$E9 ;hides 'SBC #$08'
@A:
08      PHP ;first loop only
08      PHP ;first loop only
10 xx   BPL @A-1</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
10 FC   BPL *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 14,264: Line 13,872:
|<pre>08      PHP
|<pre>08      PHP
A2 0E    LDX #14
A2 0E    LDX #14
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
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
|<pre>08      PHP
A0 0E    LDY #14
A0 0E    LDY #14
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 0F    LDA #15
A9 0F    LDA #15
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</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 14,296: Line 13,901:
|<pre>08      PHP
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
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 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1</pre>||Clobbers A, Z&N, and C
EA      NOP
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 14,332: Line 13,932:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
@A:
2A      ROL A ;first loop only
2A      ROL A ;first loop only
EA      NOP
EA      NOP
EA      NOP
EA      NOP
90 xx   BCC @A-1
90 FA   BCC *-4
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 14,368: Line 13,967:
48      PHA
48      PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
A9 09    LDA #$09 ;hides 'ORA #$EA'
@A:
EA      NOP ;first loop only
EA      NOP ;first loop only
EA      NOP
EA      NOP
Line 14,385: Line 13,983:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
30 xx   BMI @A-1</pre>||Clobbers A, and Z&N
30 ED   BMI *-17</pre>||Clobbers A, and Z&N
|-
|-
|}
|}
Line 14,395: Line 13,993:
|-
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
|<pre>A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
48      PHA
48      PHA
30 xx   BMI @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
30 FC   BMI *-2</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>A9      LDA #52
|<pre>A9      LDA #52
Line 14,405: Line 14,002:
|-
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
|<pre>A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
A5 00    LDA $00
A5 00    LDA $00
30 xx   BMI @Y</pre>||Clobbers A, Y, and Z&N
30 FB   BMI *-3</pre>||Clobbers A, Y, and Z&N
|-
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
|<pre>A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
A6 00    LDX $00
A6 00    LDX $00
30 xx   BMI @Y</pre>||Clobbers X, Y, and Z&N
30 FB   BMI *-3</pre>||Clobbers X, Y, and Z&N
|-
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
|<pre>A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
C5 00    CMP $00
C5 00    CMP $00
30 xx   BMI @Y</pre>||Clobbers Y, Z&N, and C
30 FB   BMI *-3</pre>||Clobbers Y, Z&N, and C
|-
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
|<pre>A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
24 00    BIT $00
24 00    BIT $00
30 xx   BMI @Y</pre>||Clobbers Y, Z&N, and V
30 FB   BMI *-3</pre>||Clobbers Y, Z&N, and V
|-
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
|<pre>A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
85 xx    STA @zptemp
85 xx    STA @zptemp
30 xx   BMI @Y</pre>||Clobbers Y, and Z&N; and requires @zptemp
30 FB   BMI *-3</pre>||Clobbers Y, and Z&N; and requires @zptemp
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A2 0F    LDX #15
A2 0F    LDX #15
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FB   BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
F0 FB   BEQ *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
|<pre>A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
04 00    NOP $00
04 00    NOP $00
30 xx   BMI @Y</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
30 FB   BMI *-3</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A6 00    LDX $00
A2 0F    LDX #15
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
A0 0F    LDY #15
A0 0F    LDY #15
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A6 00    LDX $00
A2 0F    LDX #15
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
B8      CLV
B8      CLV
50 00    BVC *+2
50 00    BVC *+2
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, C, and V
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
85 xx    STA @zptemp
85 xx    STA @zptemp
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and requires @zptemp
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
@A:
00 00    BRK 0
18      CLC
B0 xx    BCS @A-1</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'
@A:
04 00    NOP $00
04 00    NOP $00
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 14,497: Line 14,075:
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
4C xx xx JMP *+3
4C xx xx JMP *+3
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and not relocatable code
F0 F9   BEQ *-5</pre>||Clobbers A, Z&N, and C; and not relocatable code
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
08      PHP
08      PHP
28      PLP
28      PLP
18      CLC
18      CLC
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; and writes in stack
30 F9   BMI *-5</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A0 88    LDY #136 ;hides 'DEY'
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
EA      NOP
EA      NOP
30 xx   BMI @Y
30 FC   BMI *-2
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
Line 14,521: Line 14,096:
08      PHP
08      PHP
A2 0A    LDX #10 ;hides 'ASL A'
A2 0A    LDX #10 ;hides 'ASL A'
@X = * - 1
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FC   BNE *-2
28      PLP</pre>||Clobbers A, X, and S; and writes in stack
28      PLP</pre>||Clobbers A, X, and S; and writes in stack
|-
|-
Line 14,529: Line 14,103:
68      PLA
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C
F0 FB   BEQ *-3</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 14,539: Line 14,112:
A4 00    LDY $00
A4 00    LDY $00
A0 88    LDY #136 ;hides 'DEY'
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
EA      NOP
EA      NOP
30 xx   BMI @Y
30 FC   BMI *-2
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 14,547: Line 14,119:
A6 00    LDX $00
A6 00    LDX $00
A2 0A    LDX #10 ;hides 'ASL A'
A2 0A    LDX #10 ;hides 'ASL A'
@X = * - 1
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FC   BNE *-2
28      PLP</pre>||Clobbers A, and X; and writes in stack
28      PLP</pre>||Clobbers A, and X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
30 FD    BMI *-1
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
F0 FC   BEQ *-2</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 14,565: Line 14,133:
08      PHP
08      PHP
A2 0D    LDX #13
A2 0D    LDX #13
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
Line 14,583: Line 14,150:
48      PHA
48      PHA
A0 0D    LDY #13
A0 0D    LDY #13
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
68      PLA
68      PLA
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
Line 14,594: Line 14,160:
08      PHP
08      PHP
A2 0D    LDX #13
A2 0D    LDX #13
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 14,602: Line 14,167:
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
30 xx   BMI @A-1
30 FB   BMI *-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
|-
|-
Line 14,611: Line 14,175:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
30 xx   BMI @A-1
30 FB   BMI *-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
|-
|-
Line 14,620: Line 14,183:
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
18      CLC
18      CLC
30 xx   BMI @A-1
30 FA   BMI *-4
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
Line 14,630: Line 14,192:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
18      CLC
18      CLC
30 xx   BMI @A-1
30 FA   BMI *-4
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>08       PHP
|<pre>48       PHA
8C      TXA
48      PHA
48      PHA
A9 0A   LDA #$0A ;hides 'ASL A'
A2 0C   LDX #12
@A:
CA       DEX
EA      NOP
D0 FB   BNE *-3
EA      NOP
18       CLC
B0 xx   BCS @A-1
68      PLA
68      PLA
28       PLP</pre>||Writes in stack
AA       TAX
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
!colspan="2"|20 bytes
|<pre>EA      NOP
EA      NOP
08      PHP
38      SEC
A9 0D    LDA #13
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>EA      NOP
08      PHP
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
F0 FB    BEQ *-3
68      PLA
28      PLP</pre>||Requires @zptemp; and writes in stack
|-
|<pre>EA      NOP
08      PHP
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
F0 FB    BEQ *-3
68      PLA
28      PLP</pre>||Requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>EA      NOP
08      PHP
48      PHA
38      SEC
A9 0C    LDA #12
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Writes in stack
|-
!colspan="2"|20 bytes
|-
|<pre>68      PLA
68      PLA
68      PLA
68      PLA
68      PLA
Line 14,676: Line 14,275:
|-
|-
|<pre>A9 09    LDA #$09 ;hides 'ORA #$EA'
|<pre>A9 09    LDA #$09 ;hides 'ORA #$EA'
@A:
EA      NOP ;first loop only
EA      NOP ;first loop only
EA      NOP
EA      NOP
Line 14,695: Line 14,293:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
30 xx   BMI @A-1</pre>||Clobbers A, and Z&N
30 EB   BMI *-19</pre>||Clobbers A, and Z&N
|-
|-
|}
|}
Line 14,710: Line 14,308:
|-
|-
|<pre>A2 88    LDX #136 ;hides 'DEY'
|<pre>A2 88    LDX #136 ;hides 'DEY'
@X = * - 1
EA      NOP
EA      NOP
CA      DEX
CA      DEX
30 xx   BMI @X</pre>||Clobbers X, Y, and Z&N
30 FB   BMI *-3</pre>||Clobbers X, Y, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A2 0F    LDX #15
A2 0F    LDX #15
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A0 0F    LDY #15
A0 0F    LDY #15
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A9 E9    LDA #$E9 ;hides 'SBC #$08'
A9 E9    LDA #$E9 ;hides 'SBC #$08'
@A:
08      PHP ;first loop only
08      PHP ;first loop only
10 xx   BPL @A-1</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
10 FC   BPL *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 14,737: Line 14,331:
|<pre>EA      NOP
|<pre>EA      NOP
A2 0B    LDX #11
A2 0B    LDX #11
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A0 0B    LDY #11
A0 0B    LDY #11
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 14,764: Line 14,356:
08      PHP
08      PHP
A0 0E    LDY #14
A0 0E    LDY #14
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 14,772: Line 14,363:
08      PHP
08      PHP
A2 0E    LDX #14
A2 0E    LDX #14
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 0B    LDA #11
A9 0B    LDA #11
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F8   BNE *-6</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>48       PHA
|<pre>68       PLA
00 00    BRK 0
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
48      PHA
F0 FC   BEQ *-2</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 14,797: Line 14,384:
38      SEC
38      SEC
A9 0E    LDA #14
A9 0E    LDA #14
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 14,805: Line 14,391:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68      PLA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD    BEQ *-1
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
F0 FD   BEQ *-1</pre>||Clobbers A, Z&N, and C
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 14,833: Line 14,415:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
85 xx    STA @zptemp
85 xx    STA @zptemp
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; requires @zptemp; and writes in stack
28      PLP</pre>||Clobbers S; requires @zptemp; and writes in stack
Line 14,843: Line 14,424:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
04 00    NOP $00
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers S; requires support for unofficial opcodes; and writes in stack
Line 14,856: Line 14,436:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
30 xx   BMI @A-1
30 FB   BMI *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 14,892: Line 14,471:
48      PHA
48      PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
A9 09    LDA #$09 ;hides 'ORA #$EA'
@A:
EA      NOP ;first loop only
EA      NOP ;first loop only
EA      NOP
EA      NOP
Line 14,909: Line 14,487:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
30 xx   BMI @A-1</pre>||Clobbers A, and Z&N
30 ED   BMI *-17</pre>||Clobbers A, and Z&N
|-
|-
|}
|}
Line 14,919: Line 14,497:
|-
|-
|<pre>A2 10    LDX #16
|<pre>A2 10    LDX #16
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 10    LDY #16
|<pre>A0 10    LDY #16
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9      LDA #54
|<pre>A9      LDA #54
Line 14,934: Line 14,510:
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
48      PHA
48      PHA
10 xx   BPL @A-1</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
10 FB   BPL *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A9 69    LDA #$69 ;hides 'ADC #$18'
|<pre>A9 69    LDA #$69 ;hides 'ADC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
E6 xx    INC @zptemp
E6 xx    INC @zptemp
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
B0 FA   BCS *-4</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
F0 FB   BEQ *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00    NOP $00
04 00    NOP $00
10 xx   BPL @A-1</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
10 FA   BPL *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 14,974: Line 14,546:
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
B8      CLV
B8      CLV
50 00    BVC *+2
50 00    BVC *+2
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, C, and V
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
85 xx    STA @zptemp
85 xx    STA @zptemp
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and requires @zptemp
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>EA       NOP
|<pre>48       PHA
A9 2A   LDA #$2A ;hides 'ROL A'
08      PHP
@A:
A2 0E   LDX #14
00 00   BRK 0
CA      DEX
18       CLC
D0 FB   BNE *-3
B0 xx    BCS @A-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; 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
A0 0E    LDY #14
A0 0E    LDY #14
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|<pre>48      PHA
08      PHP
A2 0E    LDX #14
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
04 00    NOP $00
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 15,021: Line 14,581:
A4 00    LDY $00
A4 00    LDY $00
A0 0E    LDY #14
A0 0E    LDY #14
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 15,029: Line 14,588:
A6 00    LDX $00
A6 00    LDX $00
A2 0E    LDX #14
A2 0E    LDX #14
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
4C xx xx JMP *+3
4C xx xx JMP *+3
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and not relocatable code
F0 F9   BEQ *-5</pre>||Clobbers A, Z&N, and C; and not relocatable code
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
08      PHP
08      PHP
28      PLP
28      PLP
18      CLC
18      CLC
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; and writes in stack
30 F9   BMI *-5</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FB   BEQ *-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,062: Line 14,617:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
Line 15,072: Line 14,626:
68      PLA
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C
F0 FB   BEQ *-3</pre>||Clobbers A, S, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 15,088: Line 14,641:
|<pre>08      PHP
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
24 00    BIT $00
24 00    BIT $00
28      PLP
28      PLP
30 xx   BMI @A-1
30 F9   BMI *-5
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 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
24 00    BIT $00
24 00    BIT $00
28      PLP
28      PLP
30 xx   BMI @A-1
30 F9   BMI *-5
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
Line 15,107: Line 14,658:
66 00    ROR $00
66 00    ROR $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 FB   BEQ *-3</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>EA      NOP
|<pre>08      PHP
08      PHP
48      PHA
48      PHA
A9 0A   LDA #$0A ;hides 'ASL A'
A9 E9   LDA #$E9 ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
10 F9   BPL *-5
B0 xx   BCS @A-1
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 15,154: Line 14,703:
|<pre>EA      NOP
|<pre>EA      NOP
A9 09    LDA #$09 ;hides 'ORA #$EA'
A9 09    LDA #$09 ;hides 'ORA #$EA'
@A:
EA      NOP ;first loop only
EA      NOP ;first loop only
EA      NOP
EA      NOP
Line 15,173: Line 14,721:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
30 xx   BMI @A-1</pre>||Clobbers A, and Z&N
30 EB   BMI *-19</pre>||Clobbers A, and Z&N
|-
|-
|}
|}
Line 15,189: Line 14,737:
|<pre>48      PHA
|<pre>48      PHA
A0 88    LDY #136 ;hides 'DEY'
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
48      PHA
48      PHA
30 xx   BMI @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
30 FC   BMI *-2</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>A2 09    LDX #9
|<pre>A2 09    LDX #9
@X:
68      PLA
68      PLA
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 FA   BNE *-4</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>A0 09    LDY #9
|<pre>A0 09    LDY #9
@Y:
68      PLA
68      PLA
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 FA   BNE *-4</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A2 09    LDX #9
|<pre>A2 09    LDX #9
@X:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 F9   BNE *-5</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 09    LDY #9
|<pre>A0 09    LDY #9
@Y:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 F9   BNE *-5</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
F0 FB   BEQ *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 15,243: Line 14,785:
38      SEC
38      SEC
A9 0F    LDA #15
A9 0F    LDA #15
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, S, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 15,252: Line 14,793:
48      PHA
48      PHA
A0 0E    LDY #14
A0 0E    LDY #14
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
68      PLA
68      PLA
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
Line 15,262: Line 14,802:
08      PHP
08      PHP
A0 0E    LDY #14
A0 0E    LDY #14
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 15,271: Line 14,810:
08      PHP
08      PHP
A2 0E    LDX #14
A2 0E    LDX #14
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 15,279: Line 14,817:
38      SEC
38      SEC
A9 0B    LDA #11
A9 0B    LDA #11
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F8   BNE *-6</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
85 xx    STA @zptemp
85 xx    STA @zptemp
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and requires @zptemp
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>68      PLA
|<pre>68      PLA
68      PLA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD    BEQ *-1
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
F0 FD   BEQ *-1</pre>||Clobbers A, S, Z&N, and C
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
04 00    NOP $00
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 15,320: Line 14,852:
38      SEC
38      SEC
A9 0E    LDA #14
A9 0E    LDA #14
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 15,329: Line 14,860:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
68      PLA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD    BEQ *-1
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
F0 FD   BEQ *-1</pre>||Clobbers A, Z&N, and C
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 15,351: Line 14,878:
38      SEC
38      SEC
A9 0D    LDA #13
A9 0D    LDA #13
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 15,386: Line 14,912:
48      PHA
48      PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
A9 09    LDA #$09 ;hides 'ORA #$EA'
@A:
EA      NOP ;first loop only
EA      NOP ;first loop only
EA      NOP
EA      NOP
Line 15,404: Line 14,929:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
30 xx   BMI @A-1</pre>||Clobbers A, and Z&N
30 EC   BMI *-18</pre>||Clobbers A, and Z&N
|-
|-
|}
|}
Line 15,417: Line 14,942:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A0 10    LDY #16
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A2 10    LDX #16
A2 10    LDX #16
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A0 10    LDY #16
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>08      PHP
A2 0F    LDX #15
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 0F    LDY #15
A0 0F    LDY #15
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>08      PHP
@A:
A2 0F    LDX #15
08      PHP
CA       DEX
28      PLP
D0 FB   BNE *-3
18       CLC
28      PLP</pre>||Clobbers X; and writes in stack
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 10    LDA #16
A9 10    LDA #16
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
18      CLC
F0 FB    BEQ *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 15,471: Line 14,990:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>68      PLA
@A:
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
85 xx    STA @zptemp
E6 xx    INC @zptemp
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C; and requires @zptemp
F0 FA   BEQ *-4</pre>||Clobbers A, S, Z&N, and C; and requires @zptemp
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
04 00    NOP $00
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; and requires support for unofficial opcodes
F0 FA   BEQ *-4</pre>||Clobbers A, S, Z&N, and C; and requires support for unofficial opcodes
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>20 xx xx JSR @rts12
@A:
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
18      CLC
18      CLC
90 00   BCC *+2
F0 FB   BEQ *-3</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>08      PHP
|<pre>68      PLA
68      PLA
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
F0 FB    BEQ *-3</pre>||Clobbers A, S, Z&N, and C
|-
|<pre>EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
18      CLC
F0 FA    BEQ *-4</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|<pre>08      PHP
48      PHA
48      PHA
A9      LDA #42
A9      LDA #42
Line 15,503: Line 15,040:
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|<pre>36 00    ROL $00,X
76 00    ROR $00,X
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
F0 FB    BEQ *-3</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
E6 xx    INC @zptemp
E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
|-
|-
Line 15,516: Line 15,059:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
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
|-
|-
Line 15,526: Line 15,068:
38      SEC
38      SEC
A9 0E    LDA #14
A9 0E    LDA #14
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
Line 15,535: Line 15,076:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
Line 15,544: Line 15,084:
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
04 00    NOP $00
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
28      PLP</pre>||Clobbers A; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
|-
|-
Line 15,552: Line 15,091:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
04 00    NOP $00
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
|-
|-
Line 15,562: Line 15,100:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
18      CLC
18      CLC
30 xx   BMI @A-1
30 FA   BMI *-4
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 15,597: Line 15,134:
|-
|-
|<pre>A9 09    LDA #$09 ;hides 'ORA #$EA'
|<pre>A9 09    LDA #$09 ;hides 'ORA #$EA'
@A:
EA      NOP ;first loop only
EA      NOP ;first loop only
EA      NOP
EA      NOP
Line 15,617: Line 15,153:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
30 xx   BMI @A-1</pre>||Clobbers A, and Z&N
30 EA   BMI *-20</pre>||Clobbers A, and Z&N
|-
|-
|}
|}
Line 15,633: Line 15,169:
|<pre>48      PHA
|<pre>48      PHA
A2 10    LDX #16
A2 10    LDX #16
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</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
|<pre>48      PHA
A0 10    LDY #16
A0 10    LDY #16
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</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
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 15,647: Line 15,181:
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
A2 10    LDX #16
A2 10    LDX #16
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
A0 10    LDY #16
A0 10    LDY #16
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
30 FA   BMI *-4</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
68      PLA
68      PLA
A9 E9    LDA #$E9 ;hides 'SBC #$08'
A9 E9    LDA #$E9 ;hides 'SBC #$08'
@A:
08      PHP ;first loop only
08      PHP ;first loop only
10 xx   BPL @A-1</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
10 FC   BPL *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 15,682: Line 15,212:
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
E6 xx    INC @zptemp
E6 xx    INC @zptemp
28      PLP
28      PLP
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; requires @zptemp; and writes in stack
30 F9   BMI *-5</pre>||Clobbers A, Z&N, and C; requires @zptemp; and writes in stack
|-
|-
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
F0 FB   BEQ *-3</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'
@A:
48      PHA
48      PHA
08      PHP
08      PHP
28      PLP
28      PLP
18      CLC
18      CLC
30 xx   BMI @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
30 F9   BMI *-5</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
24 00    BIT $00
24 00    BIT $00
28      PLP
28      PLP
18      CLC
18      CLC
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; and writes in stack
30 F8   BMI *-6</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 09    LDA #9
A9 09    LDA #9
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F7   BNE *-7</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
85 xx    STA @zptemp
85 xx    STA @zptemp
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and requires @zptemp
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 15,732: Line 15,256:
08      PHP
08      PHP
A2 0E    LDX #14
A2 0E    LDX #14
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
Line 15,741: Line 15,264:
08      PHP
08      PHP
A0 0E    LDY #14
A0 0E    LDY #14
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
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
|-
|-
Line 15,755: Line 15,277:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>08      PHP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
98       TYA
@A:
48       PHA
EA      NOP
A0 0E    LDY #14
EA       NOP
88       DEY
EA       NOP
D0 FB   BNE *-3
18       CLC
68      PLA
B0 xx   BCS @A-1
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 15,770: Line 15,291:
08      PHP
08      PHP
A2 0E    LDX #14
A2 0E    LDX #14
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 15,780: Line 15,300:
08      PHP
08      PHP
A0 0E    LDY #14
A0 0E    LDY #14
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
B0 xx    BCS @A-1
30 F7    BMI *-7</pre>||Clobbers A, Z&N, and C
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|<pre>08      PHP
A9 69    LDA #$69 ;hides 'ADC #$D8'
D8      CLD ;first loop only
20 xx xx JSR @rts14
30 F9   BMI *-5
28      PLP</pre>||Clobbers A; requires @rts14; and writes in stack
|-
|<pre>48      PHA
A9 69    LDA #$69 ;hides 'ADC #$D8'
D8      CLD ;first loop only
20 xx xx JSR @rts14
30 F9    BMI *-5
68      PLA</pre>||Clobbers Z&N, C, V, and D; requires @rts14; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>48      PHA
@A:
48      PHA
EA      NOP
08      PHP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
EA      NOP
18      CLC
F0 FB    BEQ *-3
28      PLP</pre>||Clobbers A, and S; 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
30 xx    BMI @A-1</pre>||Clobbers A, Z&N, and C
F0 FB    BEQ *-3
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
20 xx xx JSR @rts14
F0 F9   BEQ *-5
68      PLA</pre>||Clobbers Z&N, and C; requires @rts14, and support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 15,811: Line 15,358:
48      PHA
48      PHA
A0 0D    LDY #13
A0 0D    LDY #13
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
68      PLA
68      PLA
A8      TAY
A8      TAY
68      PLA</pre>||Clobbers Z&N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|<pre>EA      NOP
EA      NOP
08      PHP
38      SEC
A9 0E    LDA #14
E9 01    SBC #1
D0 F9    BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 15,825: Line 15,380:
38      SEC
38      SEC
A9 0D    LDA #13
A9 0D    LDA #13
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 15,895: Line 15,449:
|-
|-
|<pre>A0 0C    LDY #12
|<pre>A0 0C    LDY #12
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 0C    LDX #12
|<pre>A2 0C    LDX #12
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$2A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$2A'
@A:
2A      ROL A ;first loop only
2A      ROL A ;first loop only
08      PHP
08      PHP
28      PLP
28      PLP
90 xx   BCC @A-1</pre>||Clobbers A, Z&N, C, and V; and writes in stack
90 FA   BCC *-4</pre>||Clobbers A, Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 15,929: Line 15,480:
|<pre>08      PHP
|<pre>08      PHP
A2 0B    LDX #11
A2 0B    LDX #11
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
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
|<pre>08      PHP
A0 0B    LDY #11
A0 0B    LDY #11
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FA   BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
38      SEC
A9 10    LDA #16
E9 01    SBC #1
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>EA      NOP
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
18      CLC
F0 FB    BEQ *-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
08      PHP
28      PLP
28      PLP
18      CLC
F0 F9   BEQ *-5</pre>||Clobbers A, Z&N, and C; requires support for unofficial opcodes; and writes in stack
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|<pre>EA      NOP
38      SEC
A9 10    LDA #16
@A:
E9 01    SBC #1
D0 xx    BNE @A</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 15,963: Line 15,517:
38      SEC
38      SEC
A9 0F    LDA #15
A9 0F    LDA #15
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 15,971: Line 15,524:
38      SEC
38      SEC
A9 0F    LDA #15
A9 0F    LDA #15
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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>EA      NOP
|<pre>EA      NOP
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
85 xx    STA @zptemp
EA      NOP
E6 xx    INC @zptemp
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C; and requires @zptemp
F0 FA   BEQ *-4</pre>||Clobbers A, S, Z&N, and C; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68      PLA
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
04 00    NOP $00
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; and requires support for unofficial opcodes
F0 FA   BEQ *-4</pre>||Clobbers A, S, Z&N, and C; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 16,004: Line 15,554:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>EA       NOP
|<pre>68       PLA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1</pre>||Clobbers A, Z&N, and C
EA      NOP
18      CLC
90 00   BCC *+2
18      CLC
B0 xx    BCS @A-1</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|22 bytes
!colspan="2"|22 bytes
Line 16,049: Line 15,596:
|<pre>EA      NOP
|<pre>EA      NOP
A9 09    LDA #$09 ;hides 'ORA #$EA'
A9 09    LDA #$09 ;hides 'ORA #$EA'
@A:
EA      NOP ;first loop only
EA      NOP ;first loop only
EA      NOP
EA      NOP
Line 16,069: Line 15,615:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
30 xx   BMI @A-1</pre>||Clobbers A, and Z&N
30 EA   BMI *-20</pre>||Clobbers A, and Z&N
|-
|-
|}
|}
Line 16,077: Line 15,623:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A2 11    LDX #17
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 11    LDY #17
|<pre>A0 11    LDY #17
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 11    LDX #17
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #59
|<pre>A9      LDA #59
Line 16,107: Line 15,651:
|<pre>08      PHP
|<pre>08      PHP
A0 88    LDY #136 ;hides 'DEY'
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
C5 00    CMP $00
C5 00    CMP $00
30 xx   BMI @Y
30 FB   BMI *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
30 FA   BMI *-4</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A2 0F    LDX #15
A2 0F    LDX #15
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48       PHA
08       PHP
28      PLP
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
F0 FB   BEQ *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 16,138: Line 15,678:
|<pre>08      PHP
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
B8      CLV
B8      CLV
50 00    BVC *+2
50 00    BVC *+2
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 16,147: Line 15,686:
A6 00    LDX $00
A6 00    LDX $00
A2 0F    LDX #15
A2 0F    LDX #15
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
B8      CLV
B8      CLV
50 00    BVC *+2
50 00    BVC *+2
F0 xx   BEQ @A-1
F0 FA   BEQ *-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 16,163: Line 15,700:
38      SEC
38      SEC
A9 10    LDA #16
A9 10    LDA #16
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
85 xx    STA @zptemp
85 xx    STA @zptemp
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
|-
|-
Line 16,178: Line 15,713:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
85 xx    STA @zptemp
85 xx    STA @zptemp
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and requires @zptemp
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|<pre>48      PHA
A9 2A    LDA #$2A ;hides 'ROL A'
@A:
00 00    BRK 0
18      CLC
B0 xx    BCS @A-1
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
04 00    NOP $00
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FA   BEQ *-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
|-
|-
Line 16,202: Line 15,727:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
04 00    NOP $00
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 16,218: Line 15,742:
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
08      PHP
08      PHP
28      PLP
28      PLP
18      CLC
18      CLC
30 xx   BMI @A-1
30 F9   BMI *-5
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
Line 16,229: Line 15,752:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
4C xx xx JMP *+3
4C xx xx JMP *+3
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and not relocatable code
F0 F9   BEQ *-5</pre>||Clobbers A, Z&N, and C; and not relocatable code
|-
|-
|<pre>68      PLA
|<pre>68      PLA
68      PLA
68      PLA
68      PLA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD    BEQ *-1
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
F0 FD   BEQ *-1</pre>||Clobbers A, S, Z&N, and C
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>A5 00   LDA $00
|<pre>68      PLA
48      PHA
A9 0A   LDA #$0A ;hides 'ASL A'
30 FD    BMI *-1
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
18      CLC
18      CLC
90 00   BCC *+2
F0 FC   BEQ *-2</pre>||Clobbers A, Z&N, and C
18      CLC
B0 xx    BCS @A-1</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 16,262: Line 15,780:
48      PHA
48      PHA
A0 0D    LDY #13
A0 0D    LDY #13
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
68      PLA
68      PLA
A8      TAY
A8      TAY
Line 16,273: Line 15,790:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
30 xx   BMI @A-1
30 FB   BMI *-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 16,284: Line 15,800:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
18      CLC
18      CLC
30 xx   BMI @A-1
30 FA   BMI *-4
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
Line 16,300: Line 15,815:
38      SEC
38      SEC
A9 0D    LDA #13
A9 0D    LDA #13
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 16,336: Line 15,850:
48      PHA
48      PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
A9 09    LDA #$09 ;hides 'ORA #$EA'
@A:
EA      NOP ;first loop only
EA      NOP ;first loop only
EA      NOP
EA      NOP
Line 16,355: Line 15,868:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
30 xx   BMI @A-1</pre>||Clobbers A, and Z&N
30 EB   BMI *-19</pre>||Clobbers A, and Z&N
|-
|-
|}
|}
Line 16,370: Line 15,883:
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
48      PHA
48      PHA
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
F0 FB   BEQ *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>A0 F8    LDY #248 ;hides 'SED'
|<pre>A0 F8    LDY #248 ;hides 'SED'
@Y = * - 1
68      PLA
68      PLA
C8      INY
C8      INY
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, Z&N, and D
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, Z&N, and D
|-
|-
|<pre>A2 F8    LDX #248 ;hides 'SED'
|<pre>A2 F8    LDX #248 ;hides 'SED'
@X = * - 1
68      PLA
68      PLA
E8      INX
E8      INX
D0 xx   BNE @X</pre>||Clobbers A, X, S, Z&N, and D
D0 FB   BNE *-3</pre>||Clobbers A, X, S, Z&N, and D
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 16,391: Line 15,901:
|<pre>EA      NOP
|<pre>EA      NOP
A0 0C    LDY #12
A0 0C    LDY #12
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A2 0C    LDX #12
A2 0C    LDX #12
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 16,424: Line 15,931:
|<pre>08      PHP
|<pre>08      PHP
A2 88    LDX #136 ;hides 'DEY'
A2 88    LDX #136 ;hides 'DEY'
@X = * - 1
EA      NOP
EA      NOP
CA      DEX
CA      DEX
30 xx   BMI @X
30 FB   BMI *-3
28      PLP</pre>||Clobbers X, and Y; and writes in stack
28      PLP</pre>||Clobbers X, and Y; and writes in stack
|-
|-
Line 16,435: Line 15,941:
48      PHA
48      PHA
A0 0F    LDY #15
A0 0F    LDY #15
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
68      PLA
68      PLA
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
Line 16,444: Line 15,949:
08      PHP
08      PHP
A0 0B    LDY #11
A0 0B    LDY #11
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FA   BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 16,453: Line 15,957:
08      PHP
08      PHP
A2 0B    LDX #11
A2 0B    LDX #11
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FA   BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 16,471: Line 15,974:
38      SEC
38      SEC
A9 0B    LDA #11
A9 0B    LDA #11
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F8   BNE *-6
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 16,480: Line 15,982:
38      SEC
38      SEC
A9 0B    LDA #11
A9 0B    LDA #11
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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
|-
|-
Line 16,492: Line 15,993:
38      SEC
38      SEC
A9 0E    LDA #14
A9 0E    LDA #14
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 16,526: Line 16,026:
|-
|-
|<pre>A9 09    LDA #$09 ;hides 'ORA #$EA'
|<pre>A9 09    LDA #$09 ;hides 'ORA #$EA'
@A:
EA      NOP ;first loop only
EA      NOP ;first loop only
EA      NOP
EA      NOP
Line 16,547: Line 16,046:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
30 xx   BMI @A-1</pre>||Clobbers A, and Z&N
30 E9   BMI *-21</pre>||Clobbers A, and Z&N
|-
|-
|}
|}
Line 16,563: Line 16,062:
|<pre>EA      NOP
|<pre>EA      NOP
A2 11    LDX #17
A2 11    LDX #17
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A0 11    LDY #17
A0 11    LDY #17
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 16,577: Line 16,074:
|<pre>08      PHP
|<pre>08      PHP
A0 10    LDY #16
A0 10    LDY #16
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 10    LDX #16
A2 10    LDX #16
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 11    LDA #17
A9 11    LDA #17
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</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 16,609: Line 16,103:
|<pre>68      PLA
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
30 xx   BMI @A-1</pre>||Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack
30 FA   BMI *-4</pre>||Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 16,618: Line 16,111:
EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
30 FA   BMI *-4</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9 69    LDA #$69 ;hides 'ADC #$18'
A9 69    LDA #$69 ;hides 'ADC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
E6 xx    INC @zptemp
E6 xx    INC @zptemp
B0 xx   BCS @A-1
B0 FA   BCS *-4
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 69    LDA #$69 ;hides 'ADC #$18'
A9 69    LDA #$69 ;hides 'ADC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
E6 xx    INC @zptemp
E6 xx    INC @zptemp
B0 xx   BCS @A-1
B0 FA   BCS *-4
68      PLA</pre>||Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
48      PHA
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48       PHA
08       PHP
28      PLP
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
F0 FB   BEQ *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00    NOP $00
04 00    NOP $00
10 xx   BPL @A-1
10 FA   BPL *-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>48      PHA
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00    NOP $00
04 00    NOP $00
10 xx   BPL @A-1
10 FA   BPL *-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 16,675: Line 16,162:
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
B8      CLV
B8      CLV
50 00    BVC *+2
50 00    BVC *+2
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 16,684: Line 16,170:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
B8      CLV
B8      CLV
50 00    BVC *+2
50 00    BVC *+2
F0 xx   BEQ @A-1
F0 FA   BEQ *-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 16,693: Line 16,178:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
85 xx    STA @zptemp
85 xx    STA @zptemp
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
|-
|<pre>E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
E6 xx    INC @zptemp
18      CLC
B0 xx    BCS @A-1</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68      PLA
48      PHA
48      PHA
A9 2A   LDA #$2A ;hides 'ROL A'
A9 0A   LDA #$0A ;hides 'ASL A'
@A:
85 xx    STA @zptemp
00 00    BRK 0
18      CLC
18      CLC
B0 xx   BCS @A-1
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, and C; and requires @zptemp
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
04 00    NOP $00
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FA   BEQ *-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
|-
|-
Line 16,729: Line 16,203:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
04 00    NOP $00
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, and C; and requires support for unofficial opcodes
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 16,739: Line 16,212:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
08      PHP
08      PHP
28      PLP
28      PLP
18      CLC
18      CLC
30 xx   BMI @A-1
30 F9   BMI *-5
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
Line 16,751: Line 16,223:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
4C xx xx JMP *+3
4C xx xx JMP *+3
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and not relocatable code
F0 F9   BEQ *-5</pre>||Clobbers A, Z&N, and C; and not relocatable code
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 16,760: Line 16,231:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
Line 16,770: Line 16,240:
68      PLA
68      PLA
68      PLA
68      PLA
68      PLA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD    BEQ *-1
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
F0 FD   BEQ *-1</pre>||Clobbers A, S, Z&N, and C
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 16,783: Line 16,250:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
24 00    BIT $00
24 00    BIT $00
28      PLP
28      PLP
30 xx   BMI @A-1
30 F9   BMI *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>EA      NOP
|<pre>26 00    ROL $00
A5 00    LDA $00
66 00   ROR $00
A9 0A   LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD   BEQ *-1</pre>||Clobbers A, Z&N, and C
EA      NOP
18      CLC
90 00   BCC *+2
18      CLC
B0 xx    BCS @A-1</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|22 bytes
!colspan="2"|22 bytes
Line 16,834: Line 16,297:
|-
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
|<pre>A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
68      PLA
68      PLA
30 xx   BMI @Y</pre>||Clobbers A, Y, S, and Z&N
30 FC   BMI *-2</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>A9      LDA #62
|<pre>A9      LDA #62
Line 16,844: Line 16,306:
|-
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
|<pre>A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
EA      NOP
EA      NOP
EA      NOP
EA      NOP
30 xx   BMI @Y</pre>||Clobbers Y, and Z&N
30 FB   BMI *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 0A    LDX #10 ;hides 'ASL A'
|<pre>A2 0A    LDX #10 ;hides 'ASL A'
@X = * - 1
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, Z&N, and C
D0 FB   BNE *-3</pre>||Clobbers A, X, Z&N, and C
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
30 FB   BMI *-3</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>A2 0B    LDX #11
|<pre>A2 0B    LDX #11
@X:
48      PHA
48      PHA
CA      DEX
CA      DEX
D0 xx   BNE @X</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
!colspan="2"|7 bytes
Line 16,870: Line 16,328:
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
A2 11    LDX #17
A2 11    LDX #17
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
48      PHA
48      PHA
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
F0 FB   BEQ *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 16,895: Line 16,351:
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 16,905: Line 16,360:
|<pre>08      PHP
|<pre>08      PHP
A2 09    LDX #9
A2 09    LDX #9
@X:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 F9   BNE *-5
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 09    LDY #9
A0 09    LDY #9
@Y:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y
D0 F9   BNE *-5
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 16,933: Line 16,386:
48      PHA
48      PHA
A0 0B    LDY #11
A0 0B    LDY #11
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FA   BNE *-4
68      PLA
68      PLA
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
Line 16,943: Line 16,395:
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
B8      CLV
B8      CLV
50 00    BVC *+2
50 00    BVC *+2
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
Line 16,952: Line 16,403:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
B8      CLV
B8      CLV
50 00    BVC *+2
50 00    BVC *+2
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
Line 16,961: Line 16,411:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
85 xx    STA @zptemp
85 xx    STA @zptemp
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA</pre>||Clobbers S, Z&N, and C; requires @zptemp; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; requires @zptemp; and writes in stack
|-
|<pre>48      PHA
48      PHA
A9 2A    LDA #$2A ;hides 'ROL A'
@A:
00 00    BRK 0
18      CLC
B0 xx    BCS @A-1
68      PLA</pre>||Clobbers S, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
04 00    NOP $00
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA</pre>||Clobbers S, Z&N, and C; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; requires support for unofficial opcodes; and writes in stack
|-
|-
Line 16,991: Line 16,430:
48      PHA
48      PHA
A0 0E    LDY #14
A0 0E    LDY #14
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
68      PLA
68      PLA
A8      TAY
A8      TAY
Line 17,002: Line 16,440:
38      SEC
38      SEC
A9 0B    LDA #11
A9 0B    LDA #11
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F8   BNE *-6
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 17,015: Line 16,452:
38      SEC
38      SEC
A9 0E    LDA #14
A9 0E    LDA #14
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 17,061: Line 16,497:
|<pre>68      PLA
|<pre>68      PLA
A2 11    LDX #17
A2 11    LDX #17
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A0 11    LDY #17
A0 11    LDY #17
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 17,076: Line 16,510:
EA      NOP
EA      NOP
A2 11    LDX #17
A2 11    LDX #17
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A0 11    LDY #17
A0 11    LDY #17
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
48      PHA
48      PHA
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
F0 FB   BEQ *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 17,109: Line 16,540:
08      PHP
08      PHP
A0 10    LDY #16
A0 10    LDY #16
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 17,117: Line 16,547:
08      PHP
08      PHP
A2 10    LDX #16
A2 10    LDX #16
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 17,125: Line 16,554:
38      SEC
38      SEC
A9 11    LDA #17
A9 11    LDA #17
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 17,134: Line 16,562:
38      SEC
38      SEC
A9 10    LDA #16
A9 10    LDA #16
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
28      PLP
18      CLC
B0 xx    BCS @A-1
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, and C
|-
|<pre>48      PHA
38      SEC
A9 10    LDA #16
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 17,163: Line 16,587:
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
28      PLP</pre>||Requires delay_a_25_clocks; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>08      PHP
|<pre>20 xx xx JSR @rts12
E6 xx   INC @zptemp
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
68      PLA
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
28      PLP</pre>||Requires @zptemp; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>EA       NOP
08       PHP
EA       NOP
48      PHA
48      PHA
38      SEC
A9 0A   LDA #$0A ;hides 'ASL A'
A9 0E   LDA #14
85 xx    STA @zptemp
@A:
18      CLC
E9 01    SBC #1
F0 FA   BEQ *-4
D0 xx   BNE @A
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
|<pre>00 00    BRK 0
|<pre>EA      NOP
08       PHP
EA       NOP
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
04 00    NOP $00
F0 xx    BEQ @A-1
18      CLC
F0 FA    BEQ *-4
68      PLA</pre>||Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
|-
!colspan="2"|12 bytes
|-
|<pre>36 00    ROL $00,X
76 00    ROR $00,X
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
F0 FB    BEQ *-3
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|<pre>08      PHP
E6 xx   INC @zptemp
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
F0 FB   BEQ *-3
68      PLA
28      PLP</pre>||Requires @zptemp; and writes in stack
|-
|<pre>48      PHA
08      PHP
48      PHA
38      SEC
A9 0E    LDA #14
E9 01    SBC #1
D0 F9    BNE *-5
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
|-
|<pre>00 00    BRK 0
08      PHP
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
F0 FB    BEQ *-3
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
Line 17,203: Line 16,661:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
24 00    BIT $00
24 00    BIT $00
28      PLP
28      PLP
30 xx   BMI @A-1
30 F9   BMI *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 17,245: Line 16,702:
|-
|-
|<pre>A0 12    LDY #18
|<pre>A0 12    LDY #18
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 12    LDX #18
|<pre>A2 12    LDX #18
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #64
|<pre>A9      LDA #64
Line 17,260: Line 16,715:
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
EA      NOP
EA      NOP
10 xx   BPL @A-1</pre>||Clobbers A, Z&N, C, and V
10 FA   BPL *-4</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
30 FB   BMI *-3</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
48      PHA
48      PHA
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
F0 FB   BEQ *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 17,294: Line 16,746:
08      PHP
08      PHP
A0 10    LDY #16
A0 10    LDY #16
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
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
|-
|-
Line 17,302: Line 16,753:
08      PHP
08      PHP
A2 10    LDX #16
A2 10    LDX #16
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C
F0 FA   BEQ *-4</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 17,319: Line 16,768:
|<pre>08      PHP
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
30 xx   BMI @A-1
30 FA   BMI *-4
28      PLP</pre>||Clobbers A; requires @rts12; and writes in stack
28      PLP</pre>||Clobbers A; requires @rts12; and writes in stack
|-
|-
Line 17,327: Line 16,775:
A6 00    LDX $00
A6 00    LDX $00
A2 10    LDX #16
A2 10    LDX #16
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 17,335: Line 16,782:
A4 00    LDY $00
A4 00    LDY $00
A0 10    LDY #16
A0 10    LDY #16
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
30 xx   BMI @A-1
30 FA   BMI *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
|-
|-
Line 17,350: Line 16,795:
EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 17,367: Line 16,811:
|<pre>08      PHP
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
E6 xx    INC @zptemp
E6 xx    INC @zptemp
28      PLP
28      PLP
30 xx   BMI @A-1
30 F9   BMI *-5
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
E6 xx    INC @zptemp
E6 xx    INC @zptemp
28      PLP
28      PLP
30 xx   BMI @A-1
30 F9   BMI *-5
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
|-
|-
Line 17,386: Line 16,828:
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FB   BEQ *-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
|-
|-
Line 17,395: Line 16,836:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FB   BEQ *-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
|-
|-
Line 17,405: Line 16,845:
48      PHA
48      PHA
A0 0F    LDY #15
A0 0F    LDY #15
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
68      PLA
68      PLA
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
Line 17,414: Line 16,853:
08      PHP
08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00    NOP $00
04 00    NOP $00
10 xx   BPL @A-1
10 FA   BPL *-4
28      PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
|-
|-
Line 17,423: Line 16,861:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00    NOP $00
04 00    NOP $00
10 xx   BPL @A-1
10 FA   BPL *-4
68      PLA</pre>||Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
Line 17,434: Line 16,871:
38      SEC
38      SEC
A9 09    LDA #9
A9 09    LDA #9
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F7   BNE *-7
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 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
24 00    BIT $00
24 00    BIT $00
28      PLP
28      PLP
18      CLC
18      CLC
30 xx   BMI @A-1
30 F8   BMI *-6
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|<pre>EA      NOP
48      PHA
98      TYA
48      PHA
A0 0E    LDY #14
88      DEY
D0 FB    BNE *-3
68      PLA
A8      TAY
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$D8'
D8      CLD ;first loop only
20 xx xx JSR @rts14
30 F9    BMI *-5
68      PLA
28      PLP</pre>||Requires @rts14; and writes in stack
|-
|<pre>48      PHA
48      PHA
08      PHP
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
18      CLC
F0 FB    BEQ *-3
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
|-
!colspan="2"|13 bytes
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
EA       NOP
08       PHP
18       CLC
48       PHA
B0 xx   BCS @A-1
38      SEC
A9 0E    LDA #14
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 17,504: Line 16,971:
|-
|-
|<pre>A2 0D    LDX #13
|<pre>A2 0D    LDX #13
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 0D    LDY #13
|<pre>A0 0D    LDY #13
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 17,519: Line 16,984:
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
30 xx   BMI @A-1</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
30 FB   BMI *-3</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 17,537: Line 17,001:
|<pre>08      PHP
|<pre>08      PHP
A0 0C    LDY #12
A0 0C    LDY #12
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FA   BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 0C    LDX #12
A2 0C    LDX #12
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FA   BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
|<pre>A9 2A    LDA #$2A ;hides 'ROL A'
@A:
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
30 F9   BMI *-5</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
48      PHA
48      PHA
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
F0 FB   BEQ *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
38      SEC
38      SEC
A9 11    LDA #17
A9 11    LDA #17
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, S, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 17,576: Line 17,035:
|<pre>08      PHP
|<pre>08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
@A:
2A      ROL A ;first loop only
2A      ROL A ;first loop only
08      PHP
08      PHP
28      PLP
28      PLP
90 xx   BCC @A-1
90 FA   BCC *-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 E9    LDA #$E9 ;hides 'SBC #$2A'
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
@A:
2A      ROL A ;first loop only
2A      ROL A ;first loop only
08      PHP
08      PHP
28      PLP
28      PLP
90 xx   BCC @A-1
90 FA   BCC *-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 17,596: Line 17,053:
38      SEC
38      SEC
A9 11    LDA #17
A9 11    LDA #17
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and requires @zptemp
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 17,616: Line 17,071:
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|<pre>EA      NOP
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
28      PLP
18      CLC
B0 xx    BCS @A-1
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A5 00    LDA $00
A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 FA   BEQ *-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
F0 F9    BEQ *-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,642: Line 17,095:
38      SEC
38      SEC
A9 0F    LDA #15
A9 0F    LDA #15
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 17,688: Line 17,140:
|<pre>EA      NOP
|<pre>EA      NOP
A0 12    LDY #18
A0 12    LDY #18
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A2 12    LDX #18
A2 12    LDX #18
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 17,702: Line 17,152:
|<pre>08      PHP
|<pre>08      PHP
A0 11    LDY #17
A0 11    LDY #17
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 11    LDX #17
A2 11    LDX #17
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 12    LDA #18
A9 12    LDA #18
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
30 xx   BMI @A-1</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
30 FB   BMI *-3</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 17,741: Line 17,187:
EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
30 FB   BMI *-3</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68      PLA
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
48      PHA
48      PHA
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
F0 FB   BEQ *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 17,758: Line 17,202:
68      PLA
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C
F0 FA   BEQ *-4</pre>||Clobbers A, S, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 17,776: Line 17,219:
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
30 xx   BMI @A-1
30 FA   BMI *-4
28      PLP</pre>||Clobbers A; requires @rts12; and writes in stack
28      PLP</pre>||Clobbers A; requires @rts12; and writes in stack
|-
|-
Line 17,784: Line 17,226:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
30 xx   BMI @A-1
30 FA   BMI *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
|-
|-
Line 17,793: Line 17,234:
EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 17,803: Line 17,243:
38      SEC
38      SEC
A9 10    LDA #16
A9 10    LDA #16
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
48      PHA
48      PHA
A9 0A   LDA #$0A ;hides 'ASL A'
38      SEC
@A:
A9 10   LDA #16
08      PHP
E9 01    SBC #1
28      PLP
D0 F9   BNE *-5
18      CLC
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
B0 xx   BCS @A-1
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 17,823: Line 17,260:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
B8      CLV
B8      CLV
50 00    BVC *+2
50 00    BVC *+2
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 17,871: Line 17,307:
|<pre>48      PHA
|<pre>48      PHA
A0 12    LDY #18
A0 12    LDY #18
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</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
|<pre>48      PHA
A2 12    LDX #18
A2 12    LDX #18
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</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
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 17,885: Line 17,319:
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
A2 12    LDX #18
A2 12    LDX #18
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
A0 12    LDY #18
A0 12    LDY #18
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; requires @rts14; and writes in stack
30 FA   BMI *-4</pre>||Clobbers A, Z&N, and C; requires @rts14; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 17,913: Line 17,344:
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
08      PHP
08      PHP
28      PLP
28      PLP
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; and writes in stack
30 F9   BMI *-5</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 0D    LDA #13
A9 0D    LDA #13
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F8   BNE *-6</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 17,931: Line 17,360:
|<pre>08      PHP
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 17,941: Line 17,369:
08      PHP
08      PHP
A2 0C    LDX #12
A2 0C    LDX #12
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FA   BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 17,950: Line 17,377:
08      PHP
08      PHP
A0 0C    LDY #12
A0 0C    LDY #12
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FA   BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 FC   BEQ *-2</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 17,987: Line 17,409:
48      PHA
48      PHA
A0 0F    LDY #15
A0 0F    LDY #15
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
68      PLA
68      PLA
A8      TAY
A8      TAY
Line 18,000: Line 17,421:
38      SEC
38      SEC
A9 0B    LDA #11
A9 0B    LDA #11
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F8   BNE *-6
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 18,047: Line 17,467:
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and writes in stack
F0 FB   BEQ *-3</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A0 12    LDY #18
A0 12    LDY #18
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A2 12    LDX #18
A2 12    LDX #18
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 18,069: Line 17,486:
EA      NOP
EA      NOP
A0 12    LDY #18
A0 12    LDY #18
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A2 12    LDX #18
A2 12    LDX #18
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 18,095: Line 17,510:
08      PHP
08      PHP
A0 11    LDY #17
A0 11    LDY #17
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 18,103: Line 17,517:
08      PHP
08      PHP
A2 11    LDX #17
A2 11    LDX #17
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
90 00    BCC *+2
90 00    BCC *+2
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F9   BEQ *-5</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 18,120: Line 17,532:
38      SEC
38      SEC
A9 11    LDA #17
A9 11    LDA #17
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 18,128: Line 17,539:
38      SEC
38      SEC
A9 11    LDA #17
A9 11    LDA #17
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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 18,146: Line 17,556:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
30 xx   BMI @A-1
30 FA   BMI *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
|-
|-
Line 18,154: Line 17,563:
48      PHA
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$18'
A9 69    LDA #$69 ;hides 'ADC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
E6 xx    INC @zptemp
E6 xx    INC @zptemp
B0 xx   BCS @A-1
B0 FA   BCS *-4
68      PLA
68      PLA
28      PLP</pre>||Requires @zptemp; and writes in stack
28      PLP</pre>||Requires @zptemp; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>08       PHP
48      PHA
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
28      PLP
18      CLC
B0 xx    BCS @A-1
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|<pre>08      PHP
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00    NOP $00
04 00    NOP $00
10 xx   BPL @A-1
10 FA   BPL *-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 18,188: Line 17,584:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
B8      CLV
B8      CLV
50 00    BVC *+2
50 00    BVC *+2
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 18,230: Line 17,625:
|-
|-
|<pre>A0 13    LDY #19
|<pre>A0 13    LDY #19
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 13    LDX #19
|<pre>A2 13    LDX #19
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #69
|<pre>A9      LDA #69
Line 18,258: Line 17,651:
|<pre>08      PHP
|<pre>08      PHP
A0 88    LDY #136 ;hides 'DEY'
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
EA      NOP
EA      NOP
EA      NOP
EA      NOP
30 xx   BMI @Y
30 FB   BMI *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 0A    LDX #10 ;hides 'ASL A'
A2 0A    LDX #10 ;hides 'ASL A'
@X = * - 1
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers A, and X; and writes in stack
28      PLP</pre>||Clobbers A, and X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; requires @rts14; and writes in stack
30 FA   BMI *-4</pre>||Clobbers A, Z&N, and C; requires @rts14; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
30 xx   BMI @A-1
30 FB   BMI *-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 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
30 xx   BMI @A-1
30 FB   BMI *-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
|-
|-
Line 18,295: Line 17,683:
08      PHP
08      PHP
A2 11    LDX #17
A2 11    LDX #17
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
Line 18,303: Line 17,690:
38      SEC
38      SEC
A9 12    LDA #18
A9 12    LDA #18
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</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
!colspan="2"|9 bytes
Line 18,311: Line 17,697:
|<pre>08      PHP
|<pre>08      PHP
A2 0B    LDX #11
A2 0B    LDX #11
@X:
24 00    BIT $00
24 00    BIT $00
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 F9   BNE *-5
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
08      PHP
08      PHP
28      PLP
28      PLP
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; and writes in stack
30 F9   BMI *-5</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
38      SEC
38      SEC
A9 12    LDA #18
A9 12    LDA #18
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</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 18,345: Line 17,728:
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 18,355: Line 17,737:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68      PLA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD    BEQ *-1
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 FC   BEQ *-2</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 18,378: Line 17,756:
48      PHA
48      PHA
A0 0B    LDY #11
A0 0B    LDY #11
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FA   BNE *-4
68      PLA
68      PLA
A8      TAY
A8      TAY
Line 18,390: Line 17,767:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
B8      CLV
B8      CLV
50 00    BVC *+2
50 00    BVC *+2
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
Line 18,404: Line 17,780:
38      SEC
38      SEC
A9 0B    LDA #11
A9 0B    LDA #11
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F8   BNE *-6
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 18,451: Line 17,826:
|-
|-
|<pre>A0 0C    LDY #12
|<pre>A0 0C    LDY #12
@Y:
48      PHA
48      PHA
88      DEY
88      DEY
D0 xx   BNE @Y</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
|<pre>A2 0C    LDX #12
@X:
48      PHA
48      PHA
CA      DEX
CA      DEX
D0 xx   BNE @X</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
!colspan="2"|7 bytes
|-
|-
|<pre>A0 08    LDY #8
|<pre>A0 08    LDY #8
@Y:
08      PHP
08      PHP
28      PLP
28      PLP
88      DEY
88      DEY
D0 xx   BNE @Y</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
|<pre>A2 08    LDX #8
@X:
08      PHP
08      PHP
28      PLP
28      PLP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N; and writes in stack
D0 F9   BNE *-5</pre>||Clobbers X, and Z&N; and writes in stack
|-
|-
|<pre>A2 0C    LDX #12
|<pre>A2 0C    LDX #12
@X:
A5 00    LDA $00
A5 00    LDA $00
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, and Z&N
D0 F9   BNE *-5</pre>||Clobbers A, X, and Z&N
|-
|-
|<pre>A0 0C    LDY #12
|<pre>A0 0C    LDY #12
@Y:
A5 00    LDA $00
A5 00    LDA $00
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, and Z&N
D0 F9   BNE *-5</pre>||Clobbers A, Y, and Z&N
|-
|-
|<pre>A2 0C    LDX #12
|<pre>A2 0C    LDX #12
@X:
A4 00    LDY $00
A4 00    LDY $00
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, Y, and Z&N
D0 F9   BNE *-5</pre>||Clobbers X, Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and writes in stack
F0 FB   BEQ *-3</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>A2 0C    LDX #12
|<pre>A2 0C    LDX #12
@X:
C5 00    CMP $00
C5 00    CMP $00
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, Z&N, and C
D0 F9   BNE *-5</pre>||Clobbers X, Z&N, and C
|-
|-
|<pre>A0 0C    LDY #12
|<pre>A0 0C    LDY #12
@Y:
C5 00    CMP $00
C5 00    CMP $00
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, Z&N, and C
D0 F9   BNE *-5</pre>||Clobbers Y, Z&N, and C
|-
|-
|<pre>A0 0C    LDY #12
|<pre>A0 0C    LDY #12
@Y:
24 00    BIT $00
24 00    BIT $00
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, Z&N, and V
D0 F9   BNE *-5</pre>||Clobbers Y, Z&N, and V
|-
|-
|<pre>A2 0C    LDX #12
|<pre>A2 0C    LDX #12
@X:
24 00    BIT $00
24 00    BIT $00
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, Z&N, and V
D0 F9   BNE *-5</pre>||Clobbers X, Z&N, and V
|-
|-
|<pre>A0 0C    LDY #12
|<pre>A0 0C    LDY #12
@Y:
85 xx    STA @zptemp
85 xx    STA @zptemp
88      DEY
88      DEY
D0 xx   BNE @Y</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
|<pre>A2 0C    LDX #12
@X:
85 xx    STA @zptemp
85 xx    STA @zptemp
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N; and requires @zptemp
D0 F9   BNE *-5</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|-
|<pre>A2 0C    LDX #12
|<pre>A2 0C    LDX #12
@X:
04 00    NOP $00
04 00    NOP $00
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
D0 F9   BNE *-5</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>A0 0C    LDY #12
|<pre>A0 0C    LDY #12
@Y:
04 00    NOP $00
04 00    NOP $00
88      DEY
88      DEY
D0 xx   BNE @Y</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>08      PHP
|<pre>08      PHP
Line 18,567: Line 17,926:
EA      NOP
EA      NOP
A0 12    LDY #18
A0 12    LDY #18
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 18,575: Line 17,933:
EA      NOP
EA      NOP
A2 12    LDX #18
A2 12    LDX #18
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9 69    LDA #$69 ;hides 'ADC #$18'
|<pre>A9 69    LDA #$69 ;hides 'ADC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
EA      NOP
EA      NOP
E6 xx    INC @zptemp
E6 xx    INC @zptemp
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
B0 F9   BCS *-5</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
|-
|-
|<pre>68      PLA
|<pre>68      PLA
38      SEC
38      SEC
A9 12    LDA #18
A9 12    LDA #18
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, S, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 18,598: Line 17,953:
48      PHA
48      PHA
A0 11    LDY #17
A0 11    LDY #17
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
68      PLA
68      PLA
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
Line 18,608: Line 17,962:
08      PHP
08      PHP
A2 11    LDX #17
A2 11    LDX #17
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 18,617: Line 17,970:
08      PHP
08      PHP
A0 11    LDY #17
A0 11    LDY #17
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
90 00    BCC *+2
90 00    BCC *+2
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F9   BEQ *-5</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 18,643: Line 17,994:
38      SEC
38      SEC
A9 11    LDA #17
A9 11    LDA #17
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 18,652: Line 18,002:
38      SEC
38      SEC
A9 11    LDA #17
A9 11    LDA #17
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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 18,660: Line 18,009:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
Line 18,671: Line 18,019:
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9 0A   LDA #$0A ;hides 'ASL A'
38      SEC
@A:
A9 10   LDA #16
08      PHP
E9 01    SBC #1
28      PLP
D0 F9   BNE *-5
18      CLC
B0 xx   BCS @A-1
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 18,694: Line 18,040:
|<pre>EA      NOP
|<pre>EA      NOP
A2 13    LDX #19
A2 13    LDX #19
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A0 13    LDY #19
A0 13    LDY #19
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 18,708: Line 18,052:
|<pre>08      PHP
|<pre>08      PHP
A0 12    LDY #18
A0 12    LDY #18
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 12    LDX #18
A2 12    LDX #18
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 13    LDA #19
A9 13    LDA #19
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
F0 FB   BEQ *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 18,747: Line 18,087:
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and writes in stack
F0 FB   BEQ *-3</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 18,756: Line 18,095:
|<pre>08      PHP
|<pre>08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
EA      NOP
EA      NOP
10 xx   BPL @A-1
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 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
EA      NOP
EA      NOP
10 xx   BPL @A-1
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 18,775: Line 18,112:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
30 xx   BMI @A-1
30 FB   BMI *-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
|-
|-
Line 18,791: Line 18,127:
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
90 00    BCC *+2
90 00    BCC *+2
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F9   BEQ *-5</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 18,802: Line 18,137:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
30 xx   BMI @A-1
30 FA   BMI *-4
68      PLA
68      PLA
28      PLP</pre>||Requires @rts12; and writes in stack
28      PLP</pre>||Requires @rts12; and writes in stack
Line 18,812: Line 18,146:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FA   BEQ *-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,824: Line 18,157:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
E6 xx    INC @zptemp
E6 xx    INC @zptemp
28      PLP
28      PLP
30 xx   BMI @A-1
30 F9   BMI *-5
68      PLA
68      PLA
28      PLP</pre>||Requires @zptemp; and writes in stack
28      PLP</pre>||Requires @zptemp; and writes in stack
Line 18,836: Line 18,168:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FB   BEQ *-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 18,847: Line 18,178:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00    NOP $00
04 00    NOP $00
10 xx   BPL @A-1
10 FA   BPL *-4
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers S; requires support for unofficial opcodes; and writes in stack
Line 18,859: Line 18,189:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
24 00    BIT $00
24 00    BIT $00
28      PLP
28      PLP
18      CLC
18      CLC
30 xx   BMI @A-1
30 F8   BMI *-6
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 18,881: Line 18,210:
|-
|-
|<pre>A2 0E    LDX #14
|<pre>A2 0E    LDX #14
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 0E    LDY #14
|<pre>A0 0E    LDY #14
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts15
20 xx xx JSR @rts15
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; requires @rts15; and writes in stack
30 FA   BMI *-4</pre>||Clobbers A, Z&N, and C; requires @rts15; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
18      CLC
18      CLC
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
30 FA   BMI *-4</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
F0 FB   BEQ *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 18,926: Line 18,250:
|<pre>08      PHP
|<pre>08      PHP
A2 0D    LDX #13
A2 0D    LDX #13
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
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
|<pre>08      PHP
A0 0D    LDY #13
A0 0D    LDY #13
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FA   BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 18,943: Line 18,265:
EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and writes in stack
F0 FB   BEQ *-3</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 18,952: Line 18,273:
|<pre>38      SEC
|<pre>38      SEC
A9 0C    LDA #12
A9 0C    LDA #12
@A:
24 00    BIT $00
24 00    BIT $00
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F7   BNE *-7</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
90 00    BCC *+2
90 00    BCC *+2
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C
F0 F9   BEQ *-5</pre>||Clobbers A, S, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
30 xx   BMI @A-1
30 FB   BMI *-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
|-
|-
Line 18,976: Line 18,294:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
30 xx   BMI @A-1
30 FB   BMI *-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
|-
|-
Line 18,994: Line 18,311:
48      PHA
48      PHA
A0 11    LDY #17
A0 11    LDY #17
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
68      PLA
68      PLA
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
Line 19,003: Line 18,319:
EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
90 00    BCC *+2
90 00    BCC *+2
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F9   BEQ *-5</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
@A:
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
30 xx   BMI @A-1
30 F9   BMI *-5
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 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
@A:
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
30 xx   BMI @A-1
30 F9   BMI *-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
|-
|-
Line 19,030: Line 18,343:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
@A:
2A      ROL A ;first loop only
2A      ROL A ;first loop only
08      PHP
08      PHP
28      PLP
28      PLP
90 xx   BCC @A-1
90 FA   BCC *-4
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 19,051: Line 18,363:
|-
|-
|<pre>A0 0B    LDY #11
|<pre>A0 0B    LDY #11
@Y:
68      PLA
68      PLA
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 FA   BNE *-4</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>A2 0B    LDX #11
|<pre>A2 0B    LDX #11
@X:
68      PLA
68      PLA
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 FA   BNE *-4</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A2 0B    LDX #11
|<pre>A2 0B    LDX #11
@X:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 F9   BNE *-5</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 0B    LDY #11
|<pre>A0 0B    LDY #11
@Y:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 F9   BNE *-5</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 19,093: Line 18,401:
08      PHP
08      PHP
A2 12    LDX #18
A2 12    LDX #18
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 19,101: Line 18,408:
08      PHP
08      PHP
A0 12    LDY #18
A0 12    LDY #18
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 19,109: Line 18,415:
38      SEC
38      SEC
A9 13    LDA #19
A9 13    LDA #19
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires @zptemp; and writes in stack
F0 FB   BEQ *-3</pre>||Clobbers A, Z&N, and C; requires @zptemp; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
F0 FB   BEQ *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 19,133: Line 18,436:
38      SEC
38      SEC
A9 12    LDA #18
A9 12    LDA #18
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 19,141: Line 18,443:
38      SEC
38      SEC
A9 12    LDA #18
A9 12    LDA #18
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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 19,157: Line 18,458:
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
90 00    BCC *+2
90 00    BCC *+2
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and requires @zptemp
F0 F9   BEQ *-5</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 19,167: Line 18,467:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
30 xx   BMI @A-1
30 FB   BMI *-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
|-
|-
Line 19,177: Line 18,476:
A5 00    LDA $00
A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
90 00    BCC *+2
90 00    BCC *+2
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F9   BEQ *-5</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 19,187: Line 18,485:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
Line 19,200: Line 18,497:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
30 xx   BMI @A-1
30 FA   BMI *-4
68      PLA
68      PLA
28      PLP</pre>||Requires @rts12; and writes in stack
28      PLP</pre>||Requires @rts12; and writes in stack
Line 19,211: Line 18,507:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FA   BEQ *-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 19,221: Line 18,516:
08      PHP
08      PHP
48      PHA
48      PHA
A9 0A   LDA #$0A ;hides 'ASL A'
38      SEC
@A:
A9 10   LDA #16
08      PHP
E9 01    SBC #1
28      PLP
D0 F9   BNE *-5
18      CLC
B0 xx   BCS @A-1
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
Line 19,237: Line 18,530:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
B8      CLV
B8      CLV
50 00    BVC *+2
50 00    BVC *+2
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 19,252: Line 18,544:
|-
|-
|<pre>A2 14    LDX #20
|<pre>A2 14    LDX #20
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 14    LDY #20
|<pre>A0 14    LDY #20
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9      LDA #74
|<pre>A9      LDA #74
Line 19,267: Line 18,557:
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
48      PHA
48      PHA
10 xx   BPL @A-1</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
10 FA   BPL *-4</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 19,287: Line 18,576:
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts15
20 xx xx JSR @rts15
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; requires @rts15; and writes in stack
30 FA   BMI *-4</pre>||Clobbers A, Z&N, and C; requires @rts15; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 0E    LDA #14
A9 0E    LDA #14
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F8   BNE *-6</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
18      CLC
18      CLC
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
30 FA   BMI *-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 12    LDX #18
A2 12    LDX #18
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
Line 19,316: Line 18,601:
08      PHP
08      PHP
A0 12    LDY #18
A0 12    LDY #18
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
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>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>EA      NOP
@A:
68      PLA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
28      PLP
28      PLP
18      CLC
F0 FB   BEQ *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
B0 xx   BCS @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 19,334: Line 18,617:
A6 00    LDX $00
A6 00    LDX $00
A2 12    LDX #18
A2 12    LDX #18
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 19,342: Line 18,624:
A4 00    LDY $00
A4 00    LDY $00
A0 12    LDY #18
A0 12    LDY #18
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>EA      NOP
@A:
EA      NOP
26 00    ROL $00
EA      NOP
66 00    ROR $00
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
08      PHP
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
28       PLP
F0 FB   BEQ *-3</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
30 xx   BMI @A-1
30 FA   BMI *-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 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
30 xx   BMI @A-1
30 FA   BMI *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @rts14; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts14; and writes in stack
|-
|-
Line 19,380: Line 18,660:
38      SEC
38      SEC
A9 0D    LDA #13
A9 0D    LDA #13
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F8   BNE *-6
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 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
08      PHP
08      PHP
28      PLP
28      PLP
30 xx   BMI @A-1
30 F9   BMI *-5
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|<pre>EA      NOP
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
90 00    BCC *+2
18      CLC
F0 F9    BEQ *-5</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 19,401: Line 18,687:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
90 00    BCC *+2
18      CLC
F0 F9    BEQ *-5</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 19,423: Line 18,717:
|<pre>48      PHA
|<pre>48      PHA
A0 0E    LDY #14
A0 0E    LDY #14
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</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>48      PHA
|<pre>48      PHA
A2 0E    LDX #14
A2 0E    LDX #14
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</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>EA      NOP
|<pre>EA      NOP
A0 0B    LDY #11
A0 0B    LDY #11
@Y:
68      PLA
68      PLA
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 FA   BNE *-4</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A2 0B    LDX #11
A2 0B    LDX #11
@X:
68      PLA
68      PLA
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 FA   BNE *-4</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 19,463: Line 18,753:
|<pre>08      PHP
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
A2 0E    LDX #14
A2 0E    LDX #14
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
A0 0E    LDY #14
A0 0E    LDY #14
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
Line 19,494: Line 18,780:
38      SEC
38      SEC
A9 13    LDA #19
A9 13    LDA #19
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, S, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 19,504: Line 18,789:
08      PHP
08      PHP
A2 12    LDX #18
A2 12    LDX #18
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 19,513: Line 18,797:
08      PHP
08      PHP
A0 12    LDY #18
A0 12    LDY #18
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 0B    LDA #11
A9 0B    LDA #11
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F7   BNE *-7</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 19,538: Line 18,820:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
18      CLC
18      CLC
90 00    BCC *+2
90 00    BCC *+2
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F9   BEQ *-5</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 19,550: Line 18,831:
38      SEC
38      SEC
A9 11    LDA #17
A9 11    LDA #17
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 19,570: Line 18,850:
|<pre>EA      NOP
|<pre>EA      NOP
A2 14    LDX #20
A2 14    LDX #20
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A0 14    LDY #20
A0 14    LDY #20
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 19,584: Line 18,862:
|<pre>08      PHP
|<pre>08      PHP
A0 13    LDY #19
A0 13    LDY #19
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 13    LDX #19
A2 13    LDX #19
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 14    LDA #20
A9 14    LDA #20
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
48      PHA
48      PHA
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
F0 FA   BEQ *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 19,622: Line 18,896:
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F9   BEQ *-5</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 19,643: Line 18,916:
48      PHA
48      PHA
A0 0D    LDY #13
A0 0D    LDY #13
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FA   BNE *-4
68      PLA
68      PLA
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
Line 19,653: Line 18,925:
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
30 xx   BMI @A-1
30 FA   BMI *-4
28      PLP</pre>||Clobbers A; requires @rts14; and writes in stack
28      PLP</pre>||Clobbers A; requires @rts14; and writes in stack
|-
|-
Line 19,661: Line 18,932:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
30 xx   BMI @A-1
30 FA   BMI *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @rts14; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts14; and writes in stack
|-
|-
Line 19,669: Line 18,939:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
30 xx   BMI @A-1
30 FB   BMI *-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 19,679: Line 18,948:
38      SEC
38      SEC
A9 12    LDA #18
A9 12    LDA #18
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
Line 19,688: Line 18,956:
38      SEC
38      SEC
A9 12    LDA #18
A9 12    LDA #18
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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
|-
|-
Line 19,699: Line 18,966:
38      SEC
38      SEC
A9 12    LDA #18
A9 12    LDA #18
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 19,707: Line 18,973:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
08      PHP
08      PHP
28      PLP
28      PLP
30 xx   BMI @A-1
30 F9   BMI *-5
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
Line 19,721: Line 18,986:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 19,743: Line 19,007:
|<pre>48      PHA
|<pre>48      PHA
A2 14    LDX #20
A2 14    LDX #20
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</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
|<pre>48      PHA
A0 14    LDY #20
A0 14    LDY #20
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</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
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 19,757: Line 19,019:
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
A2 14    LDX #20
A2 14    LDX #20
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
A0 14    LDY #20
A0 14    LDY #20
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
00 00    BRK 0
00 00    BRK 0
30 xx   BMI @A-1</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
30 FA   BMI *-4</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 19,786: Line 19,045:
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
18      CLC
18      CLC
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; requires @rts14; and writes in stack
30 F9   BMI *-5</pre>||Clobbers A, Z&N, and C; requires @rts14; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
85 xx    STA @zptemp
85 xx    STA @zptemp
00 00    BRK 0
00 00    BRK 0
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack
30 F9   BMI *-5</pre>||Clobbers A, Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
48      PHA
48      PHA
10 xx   BPL @A-1</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
10 FA   BPL *-4</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
04 00    NOP $00
00 00    BRK 0
00 00    BRK 0
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
30 F9   BMI *-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 19,816: Line 19,071:
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 0C    LDY #12
A0 0C    LDY #12
@Y:
C5 00    CMP $00
C5 00    CMP $00
88      DEY
88      DEY
D0 xx   BNE @Y
D0 F9   BNE *-5
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 0C    LDX #12
A2 0C    LDX #12
@X:
24 00    BIT $00
24 00    BIT $00
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 F9   BNE *-5
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 19,841: Line 19,093:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
Line 19,851: Line 19,102:
38      SEC
38      SEC
A9 13    LDA #19
A9 13    LDA #19
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, S, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 19,867: Line 19,117:
38      SEC
38      SEC
A9 0E    LDA #14
A9 0E    LDA #14
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F8   BNE *-6</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 19,878: Line 19,127:
48      PHA
48      PHA
A0 11    LDY #17
A0 11    LDY #17
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
68      PLA
68      PLA
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>A5 00    LDA $00
|<pre>EA      NOP
68      PLA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
26 00    ROL $00
66 00    ROR $00
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
90 00   BCC *+2
18      CLC
F0 F9    BEQ *-5</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 19,900: Line 19,149:
38      SEC
38      SEC
A9 11    LDA #17
A9 11    LDA #17
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 19,919: Line 19,167:
|-
|-
|<pre>A0 0D    LDY #13
|<pre>A0 0D    LDY #13
@Y:
48      PHA
48      PHA
88      DEY
88      DEY
D0 xx   BNE @Y</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 0D    LDX #13
|<pre>A2 0D    LDX #13
@X:
48      PHA
48      PHA
CA      DEX
CA      DEX
D0 xx   BNE @X</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
|<pre>68      PLA
A0 14    LDY #20
A0 14    LDY #20
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A2 14    LDX #20
A2 14    LDX #20
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 19,947: Line 19,191:
EA      NOP
EA      NOP
A2 14    LDX #20
A2 14    LDX #20
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A0 14    LDY #20
A0 14    LDY #20
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 19,973: Line 19,215:
08      PHP
08      PHP
A0 13    LDY #19
A0 13    LDY #19
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 19,981: Line 19,222:
08      PHP
08      PHP
A2 13    LDX #19
A2 13    LDX #19
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 19,989: Line 19,229:
38      SEC
38      SEC
A9 14    LDA #20
A9 14    LDA #20
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
48      PHA
48      PHA
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
F0 FA   BEQ *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 20,006: Line 19,244:
38      SEC
38      SEC
A9 13    LDA #19
A9 13    LDA #19
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F9   BEQ *-5</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
38      SEC
38      SEC
A9 13    LDA #19
A9 13    LDA #19
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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 20,031: Line 19,266:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
Line 20,049: Line 19,283:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
Line 20,060: Line 19,293:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
EA      NOP
EA      NOP
10 xx   BPL @A-1
10 FA   BPL *-4
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 20,076: Line 19,308:
|-
|-
|<pre>A0 15    LDY #21
|<pre>A0 15    LDY #21
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 15    LDX #21
|<pre>A2 15    LDX #21
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #79
|<pre>A9      LDA #79
Line 20,091: Line 19,321:
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$08'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$08'
@A:
08      PHP ;first loop only
08      PHP ;first loop only
EA      NOP
EA      NOP
10 xx   BPL @A-1</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
10 FB   BPL *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 20,112: Line 19,341:
|<pre>08      PHP
|<pre>08      PHP
A2 0E    LDX #14
A2 0E    LDX #14
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
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
|<pre>08      PHP
A0 0E    LDY #14
A0 0E    LDY #14
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FA   BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
48      PHA
48      PHA
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
F0 FA   BEQ *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 20,138: Line 19,364:
|<pre>08      PHP
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts15
20 xx xx JSR @rts15
30 xx   BMI @A-1
30 FA   BMI *-4
28      PLP</pre>||Clobbers A; requires @rts15; and writes in stack
28      PLP</pre>||Clobbers A; requires @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts15
20 xx xx JSR @rts15
30 xx   BMI @A-1
30 FA   BMI *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @rts15; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts15; and writes in stack
|-
|-
Line 20,153: Line 19,377:
38      SEC
38      SEC
A9 14    LDA #20
A9 14    LDA #20
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
18      CLC
18      CLC
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; requires @rts14; and writes in stack
30 F9   BMI *-5</pre>||Clobbers A, Z&N, and C; requires @rts14; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
18      CLC
18      CLC
30 xx   BMI @A-1
30 FA   BMI *-4
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 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
18      CLC
18      CLC
30 xx   BMI @A-1
30 FA   BMI *-4
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
Line 20,183: Line 19,403:
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
Line 20,202: Line 19,421:
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 20,212: Line 19,430:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F9   BEQ *-5</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 20,233: Line 19,449:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
30 xx   BMI @A-1
30 FB   BMI *-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 20,246: Line 19,461:
48      PHA
48      PHA
A0 11    LDY #17
A0 11    LDY #17
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
68      PLA
68      PLA
A8      TAY
A8      TAY
Line 20,256: Line 19,470:
48      PHA
48      PHA
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
@A:
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
30 xx   BMI @A-1
30 F9   BMI *-5
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 20,271: Line 19,484:
38      SEC
38      SEC
A9 11    LDA #17
A9 11    LDA #17
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 20,288: Line 19,500:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A0 18    LDY #24 ;hides 'CLC'
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 18    LDX #24 ;hides 'CLC'
|<pre>A2 18    LDX #24 ;hides 'CLC'
@X = * - 1
CA      DEX
CA      DEX
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A0 18    LDY #24 ;hides 'CLC'
@Y = * - 1
88      DEY
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 20,317: Line 19,527:
|<pre>68      PLA
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
48      PHA
48      PHA
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
F0 FA   BEQ *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
38      SEC
38      SEC
A9 14    LDA #20
A9 14    LDA #20
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, S, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 20,335: Line 19,543:
48      PHA
48      PHA
A2 13    LDX #19
A2 13    LDX #19
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
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
Line 20,343: Line 19,550:
|<pre>08      PHP
|<pre>08      PHP
A2 0B    LDX #11
A2 0B    LDX #11
@X:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 F9   BNE *-5
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 0B    LDY #11
A0 0B    LDY #11
@Y:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y
D0 F9   BNE *-5
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 0D    LDA #13
A9 0D    LDA #13
@A:
24 00    BIT $00
24 00    BIT $00
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F7   BNE *-7</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C
F0 F9   BEQ *-5</pre>||Clobbers A, S, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 20,388: Line 19,591:
38      SEC
38      SEC
A9 13    LDA #19
A9 13    LDA #19
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 20,396: Line 19,598:
EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F9   BEQ *-5</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 20,407: Line 19,608:
38      SEC
38      SEC
A9 13    LDA #19
A9 13    LDA #19
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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 20,415: Line 19,615:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
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
|-
|-
Line 20,425: Line 19,624:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
Line 20,437: Line 19,635:
38      SEC
38      SEC
A9 12    LDA #18
A9 12    LDA #18
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 20,457: Line 19,654:
|<pre>EA      NOP
|<pre>EA      NOP
A2 15    LDX #21
A2 15    LDX #21
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A0 15    LDY #21
A0 15    LDY #21
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 20,471: Line 19,666:
|<pre>08      PHP
|<pre>08      PHP
A2 14    LDX #20
A2 14    LDX #20
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
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
|<pre>08      PHP
A0 14    LDY #20
A0 14    LDY #20
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 15    LDA #21
A9 15    LDA #21
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</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 20,503: Line 19,695:
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
F0 FB   BEQ *-3</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 20,513: Line 19,704:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
48      PHA
48      PHA
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
F0 FA   BEQ *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 20,531: Line 19,721:
38      SEC
38      SEC
A9 0E    LDA #14
A9 0E    LDA #14
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F8   BNE *-6
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 20,540: Line 19,729:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts15
20 xx xx JSR @rts15
30 xx   BMI @A-1
30 FA   BMI *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @rts15; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts15; and writes in stack
|-
|-
Line 20,548: Line 19,736:
38      SEC
38      SEC
A9 0E    LDA #14
A9 0E    LDA #14
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and requires @zptemp
F0 F9   BEQ *-5</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
18      CLC
18      CLC
30 xx   BMI @A-1
30 FA   BMI *-4
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
Line 20,576: Line 19,761:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>48      PHA
|<pre>EA      NOP
EA      NOP
EA      NOP
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
26 00    ROL $00
28       PLP
66 00    ROR $00
F0 FB   BEQ *-3
18       CLC
B0 xx   BCS @A-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
|<pre>EA       NOP
48      PHA
A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
26 00    ROL $00
EA      NOP
66 00    ROR $00
EA      NOP
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
F0 F9   BEQ *-5</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
30 xx   BMI @A-1
30 FA   BMI *-4
68      PLA
68      PLA
28      PLP</pre>||Requires @rts14; and writes in stack
28      PLP</pre>||Requires @rts14; and writes in stack
Line 20,616: Line 19,800:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
08      PHP
08      PHP
28      PLP
28      PLP
30 xx   BMI @A-1
30 F9   BMI *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 20,639: Line 19,822:
|<pre>48      PHA
|<pre>48      PHA
A2 15    LDX #21
A2 15    LDX #21
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</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
|<pre>48      PHA
A0 15    LDY #21
A0 15    LDY #21
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 FB   BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>A2 0C    LDX #12
|<pre>A2 0C    LDX #12
@X:
68      PLA
68      PLA
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 FA   BNE *-4</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>A0 0C    LDY #12
|<pre>A0 0C    LDY #12
@Y:
68      PLA
68      PLA
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 FA   BNE *-4</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 20,665: Line 19,844:
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
A2 15    LDX #21
A2 15    LDX #21
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
A0 15    LDY #21
A0 15    LDY #21
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</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>A9 E9    LDA #$E9 ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
00 00    BRK 0
00 00    BRK 0
10 xx   BPL @A-1</pre>||Clobbers A, Z&N, C, and V; requires dummy interrupt handler; and writes in stack
10 FA   BPL *-4</pre>||Clobbers A, Z&N, C, and V; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$08'
A9 E9    LDA #$E9 ;hides 'SBC #$08'
@A:
08      PHP ;first loop only
08      PHP ;first loop only
EA      NOP
EA      NOP
10 xx   BPL @A-1</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
10 FB   BPL *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>A9 4B    LDA #$4B ;hides 'ASR #$7A'
|<pre>A9 4B    LDA #$4B ;hides 'ASR #$7A'
@A:
7A      NOP ;first loop only
7A      NOP ;first loop only
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
F0 FA   BEQ *-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 20,707: Line 19,881:
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts15
20 xx xx JSR @rts15
18      CLC
18      CLC
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; requires @rts15; and writes in stack
30 F9   BMI *-5</pre>||Clobbers A, Z&N, and C; requires @rts15; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
00 00    BRK 0
00 00    BRK 0
18      CLC
18      CLC
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
30 F9   BMI *-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'
@A:
48      PHA
48      PHA
20 xx xx JSR @rts14
20 xx xx JSR @rts14
30 xx   BMI @A-1</pre>||Clobbers A, S, Z&N, and C; requires @rts14; and writes in stack
30 F9   BMI *-5</pre>||Clobbers A, S, Z&N, and C; requires @rts14; and writes in stack
|-
|-
|<pre>18      CLC
|<pre>18      CLC
A9 F4    LDA #244 ;hides 'NOP zp,X'
A9 F4    LDA #244 ;hides 'NOP zp,X'
@A = * - 1
EA      NOP
EA      NOP
69 01    ADC #1
69 01    ADC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 20,736: Line 19,906:
|<pre>20 xx xx JSR @rts14
|<pre>20 xx xx JSR @rts14
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires @rts14; and writes in stack
F0 FB   BEQ *-3</pre>||Clobbers A, Z&N, and C; requires @rts14; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A2 0E    LDX #14
A2 0E    LDX #14
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FA   BNE *-4
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
Line 20,753: Line 19,921:
08      PHP
08      PHP
A0 0E    LDY #14
A0 0E    LDY #14
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FA   BNE *-4
28      PLP</pre>||Clobbers Y, 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'
@A:
48      PHA
48      PHA
08      PHP
08      PHP
Line 20,766: Line 19,932:
08      PHP
08      PHP
28      PLP
28      PLP
30 xx   BMI @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
30 F8   BMI *-6</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 20,772: Line 19,938:
38      SEC
38      SEC
A9 14    LDA #20
A9 14    LDA #20
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, S, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 20,788: Line 19,953:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 20,798: Line 19,962:
38      SEC
38      SEC
A9 0D    LDA #13
A9 0D    LDA #13
@A:
24 00    BIT $00
24 00    BIT $00
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F7   BNE *-7</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68      PLA
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C
F0 F9   BEQ *-5</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 20,819: Line 19,981:
EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F9   BEQ *-5</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 20,840: Line 20,001:
|<pre>68      PLA
|<pre>68      PLA
A2 15    LDX #21
A2 15    LDX #21
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A0 15    LDY #21
A0 15    LDY #21
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 20,855: Line 20,014:
EA      NOP
EA      NOP
A0 15    LDY #21
A0 15    LDY #21
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A2 15    LDX #21
A2 15    LDX #21
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A9 E9    LDA #$E9 ;hides 'SBC #$08'
A9 E9    LDA #$E9 ;hides 'SBC #$08'
@A:
08      PHP ;first loop only
08      PHP ;first loop only
EA      NOP
EA      NOP
10 xx   BPL @A-1</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
10 FB   BPL *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 20,888: Line 20,044:
08      PHP
08      PHP
A0 14    LDY #20
A0 14    LDY #20
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 20,896: Line 20,051:
08      PHP
08      PHP
A2 14    LDX #20
A2 14    LDX #20
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 20,904: Line 20,058:
38      SEC
38      SEC
A9 15    LDA #21
A9 15    LDA #21
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 20,913: Line 20,066:
38      SEC
38      SEC
A9 14    LDA #20
A9 14    LDA #20
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 20,921: Line 20,073:
38      SEC
38      SEC
A9 14    LDA #20
A9 14    LDA #20
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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 20,937: Line 20,088:
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 F9   BEQ *-5
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 FB   BEQ *-3</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 20,961: Line 20,108:
48      PHA
48      PHA
A0 0D    LDY #13
A0 0D    LDY #13
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FA   BNE *-4
68      PLA
68      PLA
A8      TAY
A8      TAY
Line 20,973: Line 20,119:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
30 xx   BMI @A-1
30 FA   BMI *-4
68      PLA
68      PLA
28      PLP</pre>||Requires @rts14; and writes in stack
28      PLP</pre>||Requires @rts14; and writes in stack
Line 20,984: Line 20,129:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
30 xx   BMI @A-1
30 FB   BMI *-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 20,995: Line 20,139:
38      SEC
38      SEC
A9 12    LDA #18
A9 12    LDA #18
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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
Line 21,007: Line 20,150:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
08      PHP
08      PHP
28      PLP
28      PLP
30 xx   BMI @A-1
30 F9   BMI *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 21,024: Line 20,166:
|-
|-
|<pre>A0 16    LDY #22
|<pre>A0 16    LDY #22
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 16    LDX #22
|<pre>A2 16    LDX #22
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, C, and V
F0 FC   BEQ *-2</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and writes in stack
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 21,062: Line 20,200:
08      PHP
08      PHP
A0 14    LDY #20
A0 14    LDY #20
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
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
|-
|-
Line 21,070: Line 20,207:
08      PHP
08      PHP
A2 14    LDX #20
A2 14    LDX #20
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
Line 21,080: Line 20,216:
A6 00    LDX $00
A6 00    LDX $00
A2 14    LDX #20
A2 14    LDX #20
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 21,088: Line 20,223:
A4 00    LDY $00
A4 00    LDY $00
A0 14    LDY #20
A0 14    LDY #20
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; 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'
@A:
EA      NOP
EA      NOP
18      CLC
18      CLC
90 00    BCC *+2
90 00    BCC *+2
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F8   BEQ *-6</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 21,112: Line 20,245:
|<pre>08      PHP
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
18      CLC
18      CLC
30 xx   BMI @A-1
30 F9   BMI *-5
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 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
18      CLC
18      CLC
30 xx   BMI @A-1
30 F9   BMI *-5
68      PLA</pre>||Clobbers Z&N, and C; requires @rts14; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts14; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
85 xx    STA @zptemp
85 xx    STA @zptemp
00 00    BRK 0
00 00    BRK 0
30 xx   BMI @A-1
30 F9   BMI *-5
28      PLP</pre>||Clobbers A; requires @zptemp, and dummy interrupt handler; and writes in stack
28      PLP</pre>||Clobbers A; requires @zptemp, and dummy interrupt handler; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
85 xx    STA @zptemp
85 xx    STA @zptemp
00 00    BRK 0
00 00    BRK 0
30 xx   BMI @A-1
30 F9   BMI *-5
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack
|-
|-
Line 21,146: Line 20,275:
48      PHA
48      PHA
A2 13    LDX #19
A2 13    LDX #19
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
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
Line 21,154: Line 20,282:
|<pre>08      PHP
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
04 00    NOP $00
00 00    BRK 0
00 00    BRK 0
30 xx   BMI @A-1
30 F9   BMI *-5
28      PLP</pre>||Clobbers A; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
04 00    NOP $00
00 00    BRK 0
00 00    BRK 0
30 xx   BMI @A-1
30 F9   BMI *-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
|-
|-
Line 21,174: Line 20,300:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 21,196: Line 20,321:
48      PHA
48      PHA
A0 15    LDY #21
A0 15    LDY #21
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</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
|<pre>48      PHA
48      PHA
48      PHA
A2 15    LDX #21
A2 15    LDX #21
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</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>EA      NOP
|<pre>EA      NOP
68      PLA
68      PLA
A0 15    LDY #21
A0 15    LDY #21
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68      PLA
68      PLA
A2 15    LDX #21
A2 15    LDX #21
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 21,237: Line 20,358:
EA      NOP
EA      NOP
A2 15    LDX #21
A2 15    LDX #21
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 21,245: Line 20,365:
EA      NOP
EA      NOP
A0 15    LDY #21
A0 15    LDY #21
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
38      SEC
38      SEC
A9 15    LDA #21
A9 15    LDA #21
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, S, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 4B    LDA #$4B ;hides 'ASR #$7A'
A9 4B    LDA #$4B ;hides 'ASR #$7A'
@A:
7A      NOP ;first loop only
7A      NOP ;first loop only
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
F0 FA   BEQ *-4</pre>||Clobbers A, S, 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,268: Line 20,385:
48      PHA
48      PHA
A0 14    LDY #20
A0 14    LDY #20
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
68      PLA
68      PLA
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
Line 21,276: Line 20,392:
|<pre>08      PHP
|<pre>08      PHP
A2 0D    LDX #13
A2 0D    LDX #13
@X:
24 00    BIT $00
24 00    BIT $00
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 F9   BNE *-5
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 0D    LDY #13
A0 0D    LDY #13
@Y:
24 00    BIT $00
24 00    BIT $00
88      DEY
88      DEY
D0 xx   BNE @Y
D0 F9   BNE *-5
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 21,294: Line 20,408:
38      SEC
38      SEC
A9 15    LDA #21
A9 15    LDA #21
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</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 21,311: Line 20,424:
38      SEC
38      SEC
A9 14    LDA #20
A9 14    LDA #20
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 21,320: Line 20,432:
38      SEC
38      SEC
A9 14    LDA #20
A9 14    LDA #20
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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 21,331: Line 20,442:
38      SEC
38      SEC
A9 13    LDA #19
A9 13    LDA #19
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68      PLA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD    BEQ *-1
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 FB   BEQ *-3</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 21,361: Line 20,468:
|-
|-
|<pre>A0 10    LDY #16
|<pre>A0 10    LDY #16
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 10    LDX #16
|<pre>A2 10    LDX #16
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, C, and V
F0 FC   BEQ *-2</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 21,382: Line 20,486:
|<pre>08      PHP
|<pre>08      PHP
A0 15    LDY #21
A0 15    LDY #21
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 15    LDX #21
A2 15    LDX #21
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 21,408: Line 20,510:
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and writes in stack
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
36 00    ROL $00,X
76 00    ROR $00,X
18      CLC
B0 xx    BCS @A-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 21,431: Line 20,525:
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
90 00    BCC *+2
18      CLC
F0 F8    BEQ *-6</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 21,436: Line 20,538:
38      SEC
38      SEC
A9 14    LDA #20
A9 14    LDA #20
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
Line 21,445: Line 20,546:
38      SEC
38      SEC
A9 14    LDA #20
A9 14    LDA #20
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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
|-
|-
Line 21,455: Line 20,555:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts15
20 xx xx JSR @rts15
30 xx   BMI @A-1
30 FA   BMI *-4
68      PLA
68      PLA
28      PLP</pre>||Requires @rts15; and writes in stack
28      PLP</pre>||Requires @rts15; and writes in stack
Line 21,465: Line 20,564:
38      SEC
38      SEC
A9 14    LDA #20
A9 14    LDA #20
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 21,474: Line 20,572:
38      SEC
38      SEC
A9 14    LDA #20
A9 14    LDA #20
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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 21,482: Line 20,579:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
18      CLC
18      CLC
30 xx   BMI @A-1
30 F9   BMI *-5
68      PLA</pre>||Clobbers Z&N, and C; requires @rts14; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts14; and writes in stack
|-
|-
Line 21,491: Line 20,587:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
18      CLC
18      CLC
30 xx   BMI @A-1
30 FA   BMI *-4
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 21,501: Line 20,596:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 F9   BEQ *-5
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
|-
|-
Line 21,516: Line 20,610:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 21,537: Line 20,630:
|<pre>48      PHA
|<pre>48      PHA
A0 16    LDY #22
A0 16    LDY #22
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</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
|<pre>48      PHA
A2 16    LDX #22
A2 16    LDX #22
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</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
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
F0 FC   BEQ *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 21,557: Line 20,647:
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
A0 16    LDY #22
A0 16    LDY #22
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
A2 16    LDX #22
A2 16    LDX #22
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, C, and V
F0 FC   BEQ *-2</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 21,587: Line 20,674:
|<pre>08      PHP
|<pre>08      PHP
A0 18    LDY #24 ;hides 'CLC'
A0 18    LDY #24 ;hides 'CLC'
@Y = * - 1
88      DEY
88      DEY
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 18    LDX #24 ;hides 'CLC'
A2 18    LDX #24 ;hides 'CLC'
@X = * - 1
CA      DEX
CA      DEX
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
F0 FA   BEQ *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 21,613: Line 20,697:
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and writes in stack
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 21,632: Line 20,715:
48      PHA
48      PHA
A0 14    LDY #20
A0 14    LDY #20
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
68      PLA
68      PLA
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
Line 21,644: Line 20,726:
48      PHA
48      PHA
A2 13    LDX #19
A2 13    LDX #19
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
68      PLA
68      PLA
AA      TAX
AA      TAX
Line 21,654: Line 20,735:
38      SEC
38      SEC
A9 0D    LDA #13
A9 0D    LDA #13
@A:
24 00    BIT $00
24 00    BIT $00
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F7   BNE *-7
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
18      CLC
18      CLC
90 00    BCC *+2
90 00    BCC *+2
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F8   BEQ *-6</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 21,676: Line 20,755:
38      SEC
38      SEC
A9 13    LDA #19
A9 13    LDA #19
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 21,696: Line 20,774:
|<pre>68      PLA
|<pre>68      PLA
A0 16    LDY #22
A0 16    LDY #22
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A2 16    LDX #22
A2 16    LDX #22
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, C, and V
F0 FC   BEQ *-2</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 21,716: Line 20,791:
|<pre>EA      NOP
|<pre>EA      NOP
A0 10    LDY #16
A0 10    LDY #16
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A2 10    LDX #16
A2 10    LDX #16
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, C, and V
F0 FC   BEQ *-2</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 21,746: Line 20,818:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
08      PHP
A2 15    LDX #21
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A0 15    LDY #21
A0 15    LDY #21
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
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 15    LDX #21
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
F0 FA   BEQ *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>A9 4B    LDA #$4B ;hides 'ASR #$7A'
|<pre>A9 4B    LDA #$4B ;hides 'ASR #$7A'
@A:
7A      NOP ;first loop only
7A      NOP ;first loop only
20 xx xx JSR @rts14
20 xx xx JSR @rts14
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires @rts14, and support for unofficial opcodes; and writes in stack
F0 F9   BEQ *-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 21,782: Line 20,850:
38      SEC
38      SEC
A9 15    LDA #21
A9 15    LDA #21
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 21,790: Line 20,857:
38      SEC
38      SEC
A9 15    LDA #21
A9 15    LDA #21
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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 21,803: Line 20,869:
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
36 00    ROL $00,X
76 00    ROR $00,X
18      CLC
B0 xx    BCS @A-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1
F0 FB   BEQ *-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
F0 F8    BEQ *-6</pre>||Clobbers A, S, Z&N, and C
|-
!colspan="2"|11 bytes
|-
|<pre>EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
90 00    BCC *+2
18      CLC
F0 F8    BEQ *-6</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 21,827: Line 20,903:
38      SEC
38      SEC
A9 0E    LDA #14
A9 0E    LDA #14
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F8   BNE *-6
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 21,840: Line 20,915:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A0 17    LDY #23
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 17    LDX #23
|<pre>A2 17    LDX #23
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A0 17    LDY #23
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1</pre>||Clobbers A, Z&N, C, and V
90 FC   BCC *-2</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 21,869: Line 20,941:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>48      PHA
08      PHP
A0 15    LDY #21
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A2 15    LDX #21
A2 15    LDX #21
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
!colspan="2"|9 bytes
08      PHP
A0 15    LDY #21
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
!colspan="2"|9 bytes
|<pre>08      PHP
A6 00    LDX $00
A2 15    LDX #21
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A4 00    LDY $00
A4 00    LDY $00
A0 15    LDY #21
A0 15    LDY #21
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
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 15    LDX #21
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires @zptemp; and writes in stack
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, and C; requires @zptemp; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$18'
A9 E9    LDA #$E9 ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
00 00    BRK 0
00 00    BRK 0
10 xx   BPL @A-1
10 FA   BPL *-4
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'
A9 E9    LDA #$E9 ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
00 00    BRK 0
00 00    BRK 0
10 xx   BPL @A-1
10 FA   BPL *-4
68      PLA</pre>||Clobbers Z&N, C, and V; requires dummy interrupt handler; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires dummy interrupt handler; and writes in stack
|-
|-
Line 21,931: Line 20,996:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
F0 FA   BEQ *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 4B    LDA #$4B ;hides 'ASR #$7A'
A9 4B    LDA #$4B ;hides 'ASR #$7A'
@A:
7A      NOP ;first loop only
7A      NOP ;first loop only
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
|-
|-
Line 21,956: Line 21,019:
|<pre>08      PHP
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts15
20 xx xx JSR @rts15
18      CLC
18      CLC
30 xx   BMI @A-1
30 F9   BMI *-5
28      PLP</pre>||Clobbers A; requires @rts15; and writes in stack
28      PLP</pre>||Clobbers A; requires @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts15
20 xx xx JSR @rts15
18      CLC
18      CLC
30 xx   BMI @A-1
30 F9   BMI *-5
68      PLA</pre>||Clobbers Z&N, and C; requires @rts15; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts15; and writes in stack
|-
|-
Line 21,973: Line 21,034:
A5 00    LDA $00
A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and writes in stack
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
00 00    BRK 0
00 00    BRK 0
18      CLC
18      CLC
30 xx   BMI @A-1
30 F9   BMI *-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
|-
|-
Line 21,992: Line 21,051:
48      PHA
48      PHA
A0 14    LDY #20
A0 14    LDY #20
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
68      PLA
68      PLA
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
Line 22,001: Line 21,059:
18      CLC
18      CLC
A9 F4    LDA #244 ;hides 'NOP zp,X'
A9 F4    LDA #244 ;hides 'NOP zp,X'
@A = * - 1
EA      NOP
EA      NOP
69 01    ADC #1
69 01    ADC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
Line 22,010: Line 21,067:
18      CLC
18      CLC
A9 F4    LDA #244 ;hides 'NOP zp,X'
A9 F4    LDA #244 ;hides 'NOP zp,X'
@A = * - 1
EA      NOP
EA      NOP
69 01    ADC #1
69 01    ADC #1
D0 xx   BNE @A
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 Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
Line 22,021: Line 21,077:
48      PHA
48      PHA
A2 0D    LDX #13
A2 0D    LDX #13
@X:
A5 00    LDA $00
A5 00    LDA $00
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 F9   BNE *-5
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>A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
36 00    ROL $00,X
76 00    ROR $00,X
18      CLC
B0 xx    BCS @A-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>20 xx xx JSR @rts14
|<pre>20 xx xx JSR @rts14
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
28      PLP</pre>||Clobbers A; requires @rts14; and writes in stack
28      PLP</pre>||Clobbers A; requires @rts14; and writes in stack
|-
|-
Line 22,048: Line 21,094:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
68      PLA</pre>||Clobbers Z&N, and C; requires @rts14; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts14; and writes in stack
|-
|<pre>E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
90 00    BCC *+2
18      CLC
F0 F8    BEQ *-6</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 22,059: Line 21,112:
38      SEC
38      SEC
A9 14    LDA #20
A9 14    LDA #20
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
Line 22,069: Line 21,121:
38      SEC
38      SEC
A9 14    LDA #20
A9 14    LDA #20
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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
|-
|-
Line 22,081: Line 21,132:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|<pre>EA      NOP
A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
90 00    BCC *+2
18      CLC
F0 F8    BEQ *-6</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 22,101: Line 21,160:
|-
|-
|<pre>A2 0D    LDX #13 ;hides 'ORA abs'
|<pre>A2 0D    LDX #13 ;hides 'ORA abs'
@X = * - 1
A5 00    LDA $0
A5 00    LDA $0
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, and Z&N
D0 FA   BNE *-4</pre>||Clobbers A, X, and Z&N
|-
|-
|<pre>A0 0D    LDY #13 ;hides 'ORA abs'
|<pre>A0 0D    LDY #13 ;hides 'ORA abs'
@Y = * - 1
A5 00    LDA $0
A5 00    LDA $0
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, and Z&N
D0 FA   BNE *-4</pre>||Clobbers A, Y, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
48      PHA
48      PHA
A0 16    LDY #22
A0 16    LDY #22
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</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
|<pre>48      PHA
48      PHA
48      PHA
A2 16    LDX #22
A2 16    LDX #22
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</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>EA      NOP
|<pre>EA      NOP
68      PLA
68      PLA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, C, and V
F0 FC   BEQ *-2</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 22,148: Line 21,202:
EA      NOP
EA      NOP
A2 10    LDX #16
A2 10    LDX #16
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A0 10    LDY #16
A0 10    LDY #16
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 22,165: Line 21,217:
EA      NOP
EA      NOP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, C, and V
F0 FC   BEQ *-2</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 22,174: Line 21,225:
48      PHA
48      PHA
A0 15    LDY #21
A0 15    LDY #21
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
68      PLA
68      PLA
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
Line 22,184: Line 21,234:
08      PHP
08      PHP
A0 15    LDY #21
A0 15    LDY #21
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 22,193: Line 21,242:
08      PHP
08      PHP
A2 15    LDX #21
A2 15    LDX #21
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 22,211: Line 21,259:
38      SEC
38      SEC
A9 15    LDA #21
A9 15    LDA #21
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 22,220: Line 21,267:
38      SEC
38      SEC
A9 15    LDA #21
A9 15    LDA #21
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
36 00    ROL $00,X
76 00    ROR $00,X
18      CLC
B0 xx    BCS @A-1</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 22,239: Line 21,277:
38      SEC
38      SEC
A9 14    LDA #20
A9 14    LDA #20
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<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
F0 F8    BEQ *-6</pre>||Clobbers A, S, Z&N, and C
|-
!colspan="2"|12 bytes
|-
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
36 00    ROL $00,X
18      CLC
76 00    ROR $00,X
90 00    BCC *+2
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
F0 F8   BEQ *-6</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 22,268: Line 21,317:
|<pre>EA      NOP
|<pre>EA      NOP
A2 17    LDX #23
A2 17    LDX #23
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A0 17    LDY #23
A0 17    LDY #23
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1</pre>||Clobbers A, Z&N, C, and V
90 FC   BCC *-2</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 22,288: Line 21,334:
|<pre>08      PHP
|<pre>08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-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
A0 16    LDY #22
A0 16    LDY #22
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 16    LDX #22
A2 16    LDX #22
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
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,318: Line 21,360:
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FA   BEQ *-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 22,337: Line 21,378:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
18      CLC
18      CLC
90 00    BCC *+2
90 00    BCC *+2
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F8   BEQ *-6</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 22,349: Line 21,389:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
18      CLC
18      CLC
30 xx   BMI @A-1
30 F9   BMI *-5
68      PLA
68      PLA
28      PLP</pre>||Requires @rts14; and writes in stack
28      PLP</pre>||Requires @rts14; and writes in stack
Line 22,359: Line 21,398:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
85 xx    STA @zptemp
85 xx    STA @zptemp
00 00    BRK 0
00 00    BRK 0
30 xx   BMI @A-1
30 F9   BMI *-5
68      PLA
68      PLA
28      PLP</pre>||Requires @zptemp, and dummy interrupt handler; and writes in stack
28      PLP</pre>||Requires @zptemp, and dummy interrupt handler; and writes in stack
Line 22,369: Line 21,407:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
04 00    NOP $00
00 00    BRK 0
00 00    BRK 0
30 xx   BMI @A-1
30 F9   BMI *-5
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
Line 22,384: Line 21,421:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 22,404: Line 21,440:
|-
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
|<pre>A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
08      PHP
08      PHP
28      PLP
28      PLP
30 xx   BMI @Y</pre>||Clobbers Y, and Z&N; and writes in stack
30 FB   BMI *-3</pre>||Clobbers Y, and Z&N; and writes in stack
|-
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
|<pre>A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
68      PLA
68      PLA
48      PHA
48      PHA
30 xx   BMI @Y</pre>||Clobbers A, Y, and Z&N
30 FB   BMI *-3</pre>||Clobbers A, Y, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A2 17    LDX #23
A2 17    LDX #23
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</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
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
90 FC   BCC *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 22,431: Line 21,463:
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
A2 17    LDX #23
A2 17    LDX #23
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
A0 17    LDY #23
A0 17    LDY #23
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1</pre>||Clobbers A, Z&N, C, and V
90 FC   BCC *-2</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
18      CLC
B0 xx    BCS @A-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
F0 FA   BEQ *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 22,473: Line 21,495:
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
24 00    BIT $00
24 00    BIT $00
28      PLP
28      PLP
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and writes in stack
F0 F9   BEQ *-5</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 22,488: Line 21,508:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F8   BEQ *-6</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
48      PHA
48      PHA
08      PHP
08      PHP
A2 15    LDX #21
A0 15    LDY #21
@X:
88       DEY
CA       DEX
D0 FB   BNE *-3
D0 xx   BNE @X
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
A0 15    LDY #21
A2 15    LDX #21
@Y:
CA       DEX
88       DEY
D0 FB   BNE *-3
D0 xx   BNE @Y
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 22,521: Line 21,539:
48      PHA
48      PHA
A0 15    LDY #21
A0 15    LDY #21
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
68      PLA
68      PLA
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
Line 22,532: Line 21,549:
08      PHP
08      PHP
A0 15    LDY #21
A0 15    LDY #21
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 22,542: Line 21,558:
08      PHP
08      PHP
A2 15    LDX #21
A2 15    LDX #21
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 22,550: Line 21,565:
08      PHP
08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$18'
A9 E9    LDA #$E9 ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
00 00    BRK 0
00 00    BRK 0
10 xx   BPL @A-1
10 FA   BPL *-4
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
|-
|-
Line 22,559: Line 21,573:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$18'
A9 E9    LDA #$E9 ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
00 00    BRK 0
00 00    BRK 0
10 xx   BPL @A-1
10 FA   BPL *-4
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, C, and V; requires dummy interrupt handler; and writes in stack
|-
|-
Line 22,568: Line 21,581:
48      PHA
48      PHA
A9 4B    LDA #$4B ;hides 'ASR #$7A'
A9 4B    LDA #$4B ;hides 'ASR #$7A'
@A:
7A      NOP ;first loop only
7A      NOP ;first loop only
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA</pre>||Clobbers S, Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
|-
|-
Line 22,580: Line 21,592:
48      PHA
48      PHA
A0 14    LDY #20
A0 14    LDY #20
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
68      PLA
68      PLA
A8      TAY
A8      TAY
Line 22,592: Line 21,603:
38      SEC
38      SEC
A9 15    LDA #21
A9 15    LDA #21
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 22,604: Line 21,614:
38      SEC
38      SEC
A9 14    LDA #20
A9 14    LDA #20
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 22,623: Line 21,632:
|-
|-
|<pre>A2 11    LDX #17
|<pre>A2 11    LDX #17
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 11    LDY #17
|<pre>A0 11    LDY #17
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1</pre>||Clobbers A, S, Z&N, C, and V
90 FC   BCC *-2</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 22,645: Line 21,651:
EA      NOP
EA      NOP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1</pre>||Clobbers A, Z&N, C, and V
90 FC   BCC *-2</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 22,664: Line 21,669:
08      PHP
08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-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
A0 10    LDY #16
A0 10    LDY #16
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FA   BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 10    LDX #16
A2 10    LDX #16
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FA   BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 22,688: Line 21,690:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
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,707: Line 21,708:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>68      PLA
|<pre>EA      NOP
68      PLA
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
36 00    ROL $00,X
18      CLC
76 00    ROR $00,X
90 00    BCC *+2
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
F0 F8   BEQ *-6</pre>||Clobbers A, Z&N, and C
|-
!colspan="2"|12 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 22,732: Line 21,731:
38      SEC
38      SEC
A9 14    LDA #20
A9 14    LDA #20
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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
Line 22,745: Line 21,743:
38      SEC
38      SEC
A9 14    LDA #20
A9 14    LDA #20
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 22,759: Line 21,756:
|-
|-
|<pre>A0 18    LDY #24
|<pre>A0 18    LDY #24
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 18    LDX #24
|<pre>A2 18    LDX #24
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #94
|<pre>A9      LDA #94
Line 22,774: Line 21,769:
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
08      PHP
08      PHP
28      PLP
28      PLP
10 xx   BPL @A-1</pre>||Clobbers A, Z&N, C, and V; and writes in stack
10 FA   BPL *-4</pre>||Clobbers A, Z&N, C, and V; and writes in stack
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
90 FC   BCC *-2</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 22,801: Line 21,794:
A5 00    LDA $00
A5 00    LDA $00
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1</pre>||Clobbers A, Z&N, C, and V
90 FC   BCC *-2</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
18      CLC
B0 xx    BCS @A-1</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
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
Line 22,823: Line 21,807:
08      PHP
08      PHP
A2 16    LDX #22
A2 16    LDX #22
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
Line 22,831: Line 21,814:
08      PHP
08      PHP
A0 16    LDY #22
A0 16    LDY #22
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
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
|-
|-
Line 22,839: Line 21,821:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-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'
|<pre>A9 4B    LDA #$4B ;hides 'ASR #$7A'
@A:
7A      NOP ;first loop only
7A      NOP ;first loop only
20 xx xx JSR @rts15
20 xx xx JSR @rts15
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires @rts15, and support for unofficial opcodes; and writes in stack
F0 F9   BEQ *-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
F0 F9    BEQ *-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 22,855: Line 21,841:
A5 00    LDA $00
A5 00    LDA $00
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 22,863: Line 21,848:
A6 00    LDX $00
A6 00    LDX $00
A2 16    LDX #22
A2 16    LDX #22
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 22,871: Line 21,855:
A4 00    LDY $00
A4 00    LDY $00
A0 16    LDY #22
A0 16    LDY #22
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 22,879: Line 21,862:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
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,895: Line 21,877:
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 22,901: Line 21,882:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F8   BEQ *-6</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
Line 22,918: Line 21,898:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FA   BEQ *-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 22,932: Line 21,911:
48      PHA
48      PHA
A0 14    LDY #20
A0 14    LDY #20
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
68      PLA
68      PLA
A8      TAY
A8      TAY
Line 22,947: Line 21,925:
38      SEC
38      SEC
A9 14    LDA #20
A9 14    LDA #20
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 22,967: Line 21,944:
|<pre>EA      NOP
|<pre>EA      NOP
A2 11    LDX #17
A2 11    LDX #17
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A0 11    LDY #17
A0 11    LDY #17
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68      PLA
68      PLA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1</pre>||Clobbers A, S, Z&N, C, and V
90 FC   BCC *-2</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 23,000: Line 21,974:
|<pre>38      SEC
|<pre>38      SEC
A9 11    LDA #17
A9 11    LDA #17
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F8   BNE *-6</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>68      PLA
|<pre>68      PLA
08      PHP
08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
Line 23,019: Line 21,991:
08      PHP
08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 23,027: Line 21,998:
08      PHP
08      PHP
A2 10    LDX #16
A2 10    LDX #16
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FA   BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 23,036: Line 22,006:
08      PHP
08      PHP
A0 10    LDY #16
A0 10    LDY #16
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FA   BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 23,046: Line 22,015:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
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 23,062: Line 22,030:
|<pre>48      PHA
|<pre>48      PHA
A9 4B    LDA #$4B ;hides 'ASR #$7A'
A9 4B    LDA #$4B ;hides 'ASR #$7A'
@A:
7A      NOP ;first loop only
7A      NOP ;first loop only
20 xx xx JSR @rts14
20 xx xx JSR @rts14
F0 xx   BEQ @A-1
F0 F9   BEQ *-5
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 support for unofficial opcodes; and writes in stack
|-
|-
Line 23,074: Line 22,041:
38      SEC
38      SEC
A9 15    LDA #21
A9 15    LDA #21
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 23,082: Line 22,048:
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 23,088: Line 22,053:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F8   BEQ *-6</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 23,104: Line 22,069:
|<pre>EA      NOP
|<pre>EA      NOP
A0 18    LDY #24
A0 18    LDY #24
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A2 18    LDX #24
A2 18    LDX #24
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 23,118: Line 22,081:
|<pre>08      PHP
|<pre>08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1
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
A0 17    LDY #23
A0 17    LDY #23
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 17    LDX #23
A2 17    LDX #23
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1
90 FC   BCC *-2
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>38      SEC
|<pre>38      SEC
A9 18    LDA #24
A9 18    LDA #24
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 23,163: Line 22,121:
|<pre>68      PLA
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 23,169: Line 22,126:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C
F0 F8   BEQ *-6</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 23,176: Line 22,133:
EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 23,182: Line 22,138:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F8   BEQ *-6</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack
|-
|-
Line 23,197: Line 22,152:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$18'
A9 E9    LDA #$E9 ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
00 00    BRK 0
00 00    BRK 0
10 xx   BPL @A-1
10 FA   BPL *-4
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 23,208: Line 22,162:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; and writes in stack
|-
|-
Line 23,220: Line 22,173:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts15
20 xx xx JSR @rts15
18      CLC
18      CLC
30 xx   BMI @A-1
30 F9   BMI *-5
68      PLA
68      PLA
28      PLP</pre>||Requires @rts15; and writes in stack
28      PLP</pre>||Requires @rts15; and writes in stack
Line 23,231: Line 22,183:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FA   BEQ *-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 23,242: Line 22,193:
18      CLC
18      CLC
A9 F4    LDA #244 ;hides 'NOP zp,X'
A9 F4    LDA #244 ;hides 'NOP zp,X'
@A = * - 1
EA      NOP
EA      NOP
69 01    ADC #1
69 01    ADC #1
D0 xx   BNE @A
D0 F9   BNE *-5
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 23,255: Line 22,205:
48      PHA
48      PHA
A2 0D    LDX #13
A2 0D    LDX #13
@X:
A5 00    LDA $00
A5 00    LDA $00
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 F9   BNE *-5
68      PLA
68      PLA
AA      TAX
AA      TAX
Line 23,267: Line 22,216:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
68      PLA
68      PLA
28      PLP</pre>||Requires @rts14; and writes in stack
28      PLP</pre>||Requires @rts14; and writes in stack
Line 23,280: Line 22,228:
38      SEC
38      SEC
A9 14    LDA #20
A9 14    LDA #20
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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
Line 23,295: Line 22,242:
38      SEC
38      SEC
A9 14    LDA #20
A9 14    LDA #20
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 23,309: Line 22,255:
|-
|-
|<pre>A2 E8    LDX #232 ;hides 'INX'
|<pre>A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|5 bytes
!colspan="2"|5 bytes
Line 23,321: Line 22,266:
|<pre>48      PHA
|<pre>48      PHA
A0 18    LDY #24
A0 18    LDY #24
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</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
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 23,329: Line 22,273:
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
A0 18    LDY #24
A0 18    LDY #24
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, C, and V; requires dummy interrupt handler; and writes in stack
F0 FC   BEQ *-2</pre>||Clobbers A, Z&N, C, and V; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
68      PLA
68      PLA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1</pre>||Clobbers A, S, Z&N, C, and V
90 FC   BCC *-2</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 23,359: Line 22,300:
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
00 00    BRK 0
00 00    BRK 0
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
30 F9   BMI *-5</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 23,369: Line 22,309:
|<pre>08      PHP
|<pre>08      PHP
A2 0D    LDX #13 ;hides 'ORA abs'
A2 0D    LDX #13 ;hides 'ORA abs'
@X = * - 1
A5 00    LDA $0
A5 00    LDA $0
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FA   BNE *-4
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>08      PHP
A0 0D    LDY #13 ;hides 'ORA abs'
A0 0D    LDY #13 ;hides 'ORA abs'
@Y = * - 1
A5 00    LDA $0
A5 00    LDA $0
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FA   BNE *-4
28      PLP</pre>||Clobbers A, and Y; and writes in stack
28      PLP</pre>||Clobbers A, and Y; and writes in stack
|-
|-
Line 23,386: Line 22,324:
38      SEC
38      SEC
A9 11    LDA #17
A9 11    LDA #17
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F8   BNE *-6</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 23,395: Line 22,332:
08      PHP
08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
Line 23,404: Line 22,340:
08      PHP
08      PHP
A2 16    LDX #22
A2 16    LDX #22
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
Line 23,413: Line 22,348:
08      PHP
08      PHP
A0 16    LDY #22
A0 16    LDY #22
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
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
|-
|-
Line 23,422: Line 22,356:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-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
|-
|-
Line 23,441: Line 22,374:
08      PHP
08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 23,450: Line 22,382:
08      PHP
08      PHP
A2 10    LDX #16
A2 10    LDX #16
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FA   BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 23,460: Line 22,391:
08      PHP
08      PHP
A0 10    LDY #16
A0 10    LDY #16
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FA   BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 23,471: Line 22,401:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
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 23,482: Line 22,411:
48      PHA
48      PHA
A0 15    LDY #21
A0 15    LDY #21
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
68      PLA
68      PLA
A8      TAY
A8      TAY
Line 23,491: Line 22,419:
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 23,497: Line 22,424:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and requires @zptemp
F0 F8   BEQ *-6</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 23,506: Line 22,433:
38      SEC
38      SEC
A9 15    LDA #21
A9 15    LDA #21
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 23,515: Line 22,441:
A5 00    LDA $00
A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 23,521: Line 22,446:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F8   BEQ *-6</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 23,537: Line 22,462:
|<pre>68      PLA
|<pre>68      PLA
A0 18    LDY #24
A0 18    LDY #24
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A2 18    LDX #24
A2 18    LDX #24
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 23,552: Line 22,475:
EA      NOP
EA      NOP
A2 18    LDX #24
A2 18    LDX #24
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A0 18    LDY #24
A0 18    LDY #24
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 23,578: Line 22,499:
08      PHP
08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1
90 FC   BCC *-2
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 23,586: Line 22,506:
08      PHP
08      PHP
A2 17    LDX #23
A2 17    LDX #23
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 23,594: Line 22,513:
08      PHP
08      PHP
A0 17    LDY #23
A0 17    LDY #23
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 23,602: Line 22,520:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1
90 FC   BCC *-2
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 23,610: Line 22,527:
38      SEC
38      SEC
A9 18    LDA #24
A9 18    LDA #24
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 23,619: Line 22,535:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|11 bytes
|-
|<pre>EA      NOP
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
F0 F8    BEQ *-6</pre>||Clobbers A, S, Z&N, and C
|-
!colspan="2"|12 bytes
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>EA      NOP
@A:
EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
36 00    ROL $00,X
76 00    ROR $00,X
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
F0 F8   BEQ *-6</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 23,641: Line 22,571:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A2 19    LDX #25
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 19    LDY #25
|<pre>A0 19    LDY #25
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 19    LDX #25
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #99
|<pre>A9      LDA #99
Line 23,671: Line 22,599:
|<pre>08      PHP
|<pre>08      PHP
A0 88    LDY #136 ;hides 'DEY'
A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
08      PHP
08      PHP
28      PLP
28      PLP
30 xx   BMI @Y
30 FB   BMI *-3
28      PLP</pre>||Clobbers Y; 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
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, C, and V; requires @rts15; and writes in stack
F0 FC   BEQ *-2</pre>||Clobbers A, Z&N, C, and V; requires @rts15; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
00 00    BRK 0
00 00    BRK 0
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, C, and V; requires dummy interrupt handler; and writes in stack
F0 FC   BEQ *-2</pre>||Clobbers A, Z&N, C, and V; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1
90 FC   BCC *-2
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
Line 23,701: Line 22,625:
08      PHP
08      PHP
A2 17    LDX #23
A2 17    LDX #23
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
Line 23,709: Line 22,632:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1
90 FC   BCC *-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
|-
|-
Line 23,718: Line 22,640:
68      PLA
68      PLA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1</pre>||Clobbers A, S, Z&N, C, and V
90 FC   BCC *-2</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 23,727: Line 22,648:
A5 00    LDA $00
A5 00    LDA $00
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1
90 FC   BCC *-2
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 23,735: Line 22,655:
A6 00    LDX $00
A6 00    LDX $00
A2 17    LDX #23
A2 17    LDX #23
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 23,743: Line 22,662:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1
90 FC   BCC *-2
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 23,751: Line 22,669:
38      SEC
38      SEC
A9 18    LDA #24
A9 18    LDA #24
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
18      CLC
B0 xx    BCS @A-1
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 23,774: Line 22,683:
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
24 00    BIT $00
24 00    BIT $00
28      PLP
28      PLP
F0 xx   BEQ @A-1
F0 F9   BEQ *-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"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>68      PLA
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 23,801: Line 22,706:
48      PHA
48      PHA
A0 15    LDY #21
A0 15    LDY #21
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
68      PLA
68      PLA
A8      TAY
A8      TAY
Line 23,812: Line 22,716:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$18'
A9 E9    LDA #$E9 ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
00 00    BRK 0
00 00    BRK 0
10 xx   BPL @A-1
10 FA   BPL *-4
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 23,827: Line 22,730:
38      SEC
38      SEC
A9 15    LDA #21
A9 15    LDA #21
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 23,842: Line 22,744:
|<pre>48      PHA
|<pre>48      PHA
A2 E8    LDX #232 ;hides 'INX'
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
D0 FD    BNE *-1</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>A9      LDA #100
|<pre>A9      LDA #100
Line 23,851: Line 22,752:
|-
|-
|<pre>A2 12    LDX #18
|<pre>A2 12    LDX #18
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 12    LDY #18
|<pre>A0 12    LDY #18
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$2A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$2A'
@A:
2A      ROL A ;first loop only
2A      ROL A ;first loop only
00 00    BRK 0
00 00    BRK 0
90 xx   BCC @A-1</pre>||Clobbers A, Z&N, C, and V; requires dummy interrupt handler; and writes in stack
90 FA   BCC *-4</pre>||Clobbers A, Z&N, C, and V; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 23,884: Line 22,782:
|<pre>08      PHP
|<pre>08      PHP
A2 11    LDX #17
A2 11    LDX #17
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
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
|<pre>08      PHP
A0 11    LDY #17
A0 11    LDY #17
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FA   BNE *-4
28      PLP</pre>||Clobbers Y; 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'
@A:
EA      NOP
EA      NOP
08      PHP
08      PHP
28      PLP
28      PLP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and writes in stack
F0 F9   BEQ *-5</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
08      PHP
08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1
90 FC   BCC *-2
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
Line 23,917: Line 22,811:
38      SEC
38      SEC
A9 18    LDA #24
A9 18    LDA #24
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, S, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 23,927: Line 22,820:
08      PHP
08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1
90 FC   BCC *-2
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 23,936: Line 22,828:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1
90 FC   BCC *-2
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 23,945: Line 22,836:
38      SEC
38      SEC
A9 18    LDA #24
A9 18    LDA #24
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</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 23,962: Line 22,852:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 23,975: Line 22,863:
90 00    BCC *+2
90 00    BCC *+2
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F7   BEQ *-7</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 23,986: Line 22,874:
|<pre>68      PLA
|<pre>68      PLA
A2 E8    LDX #232 ;hides 'INX'
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
D0 FD    BNE *-1</pre>||Clobbers A, X, S, and Z&N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>A9      LDA #101
|<pre>A9      LDA #101
Line 23,996: Line 22,883:
|<pre>EA      NOP
|<pre>EA      NOP
A2 19    LDX #25
A2 19    LDX #25
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A0 19    LDY #25
A0 19    LDY #25
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 24,010: Line 22,895:
|<pre>08      PHP
|<pre>08      PHP
A2 18    LDX #24
A2 18    LDX #24
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
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
|<pre>08      PHP
A0 18    LDY #24
A0 18    LDY #24
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 19    LDA #25
A9 19    LDA #25
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</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 24,042: Line 22,924:
|<pre>08      PHP
|<pre>08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
08      PHP
08      PHP
28      PLP
28      PLP
10 xx   BPL @A-1
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 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
08      PHP
08      PHP
28      PLP
28      PLP
10 xx   BPL @A-1
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 24,066: Line 22,946:
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|<pre>EA      NOP
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
18      CLC
B0 xx    BCS @A-1
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 24,080: Line 22,951:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
Line 24,088: Line 22,958:
|<pre>48      PHA
|<pre>48      PHA
A9 4B    LDA #$4B ;hides 'ASR #$7A'
A9 4B    LDA #$4B ;hides 'ASR #$7A'
@A:
7A      NOP ;first loop only
7A      NOP ;first loop only
20 xx xx JSR @rts15
20 xx xx JSR @rts15
F0 xx   BEQ @A-1
F0 F9   BEQ *-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 support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|11 bytes
|<pre>48      PHA
|-
A9 4B    LDA #$4B ;hides 'ASR #$7A'
7A      NOP ;first loop only
EA      NOP
00 00    BRK 0
F0 F9    BEQ *-5
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
|-
!colspan="2"|11 bytes
|-
|<pre>08      PHP
|<pre>08      PHP
24 00    BIT $00
24 00    BIT $00
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 24,108: Line 22,984:
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>A5 00   LDA $00
|<pre>EA      NOP
A9 0A   LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
36 00    ROL $00,X
EA      NOP
76 00    ROR $00,X
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 24,131: Line 23,007:
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
A2 E8    LDX #232 ;hides 'INX'
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N; and requires @zptemp
D0 xx   BNE @X</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|<pre>A2 10    LDX #16
48      PHA
CA      DEX
D0 FA   BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 10    LDY #16
|<pre>A0 10    LDY #16
@Y:
48      PHA
48      PHA
88      DEY
88      DEY
D0 xx   BNE @Y</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
@X:
48      PHA
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
|<pre>A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
68      PLA
68      PLA
68      PLA
68      PLA
30 xx   BMI @Y</pre>||Clobbers A, Y, S, and Z&N
30 FB   BMI *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 24,156: Line 23,028:
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
A2 19    LDX #25
A2 19    LDX #25
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
A0 19    LDY #25
A0 19    LDY #25
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1</pre>||Clobbers A, Z&N, C, and V; requires dummy interrupt handler; and writes in stack
90 FC   BCC *-2</pre>||Clobbers A, Z&N, C, and V; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 24,186: Line 23,055:
|<pre>38      SEC
|<pre>38      SEC
A9 12    LDA #18
A9 12    LDA #18
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F8   BNE *-6</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 24,196: Line 23,064:
08      PHP
08      PHP
A2 11    LDX #17
A2 11    LDX #17
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FA   BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 24,205: Line 23,072:
08      PHP
08      PHP
A0 11    LDY #17
A0 11    LDY #17
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FA   BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
08      PHP
08      PHP
28      PLP
28      PLP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and writes in stack
F0 F9   BEQ *-5</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 24,224: Line 23,089:
08      PHP
08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1
90 FC   BCC *-2
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
Line 24,233: Line 23,097:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1
90 FC   BCC *-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
|-
|-
Line 24,250: Line 23,113:
38      SEC
38      SEC
A9 11    LDA #17
A9 11    LDA #17
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F8   BNE *-6
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 24,259: Line 23,121:
38      SEC
38      SEC
A9 11    LDA #17
A9 11    LDA #17
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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>48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
18      CLC
B0 xx    BCS @A-1
68      PLA</pre>||Clobbers S, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 24,281: Line 23,133:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 24,289: Line 23,140:
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 24,295: Line 23,145:
90 00    BCC *+2
90 00    BCC *+2
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F7   BEQ *-7</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 24,312: Line 23,162:
48      PHA
48      PHA
A2 E8    LDX #232 ;hides 'INX'
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
D0 FD    BNE *-1</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A2 19    LDX #25
A2 19    LDX #25
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A0 19    LDY #25
A0 19    LDY #25
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 24,332: Line 23,179:
EA      NOP
EA      NOP
A0 19    LDY #25
A0 19    LDY #25
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A2 19    LDX #25
A2 19    LDX #25
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 24,358: Line 23,203:
08      PHP
08      PHP
A2 18    LDX #24
A2 18    LDX #24
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 24,366: Line 23,210:
08      PHP
08      PHP
A0 18    LDY #24
A0 18    LDY #24
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 24,374: Line 23,217:
38      SEC
38      SEC
A9 19    LDA #25
A9 19    LDA #25
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 24,383: Line 23,225:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1
90 FC   BCC *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 24,393: Line 23,234:
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 24,399: Line 23,239:
90 00    BCC *+2
90 00    BCC *+2
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F7   BEQ *-7</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 24,409: Line 23,249:
|-
|-
|<pre>A0 1A    LDY #26
|<pre>A0 1A    LDY #26
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 1A    LDX #26
|<pre>A2 1A    LDX #26
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #104
|<pre>A9      LDA #104
Line 24,425: Line 23,263:
|<pre>08      PHP
|<pre>08      PHP
A2 E8    LDX #232 ;hides 'INX'
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
D0 FD    BNE *-1
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 24,443: Line 23,280:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>A9 0A   LDA #$0A ;hides 'ASL A'
|<pre>20 xx xx JSR @rts15
@A:
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
20 xx xx JSR @rts15
0A      ASL A ;first loop only
18      CLC
90 FC   BCC *-2</pre>||Clobbers A, Z&N, C, and V; requires @rts15; and writes in stack
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C; requires @rts15; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>EA      NOP
@A:
EA      NOP
00 00    BRK 0
00 00    BRK 0
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
0A       ASL A ;first loop only
90 FC   BCC *-2</pre>||Clobbers A, Z&N, C, and V; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A0 18    LDY #24
A0 18    LDY #24
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
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>38      SEC
|<pre>38      SEC
A9 10    LDA #16
A9 10    LDA #16
@A:
48      PHA
48      PHA
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</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
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 24,476: Line 23,309:
A4 00    LDY $00
A4 00    LDY $00
A0 18    LDY #24
A0 18    LDY #24
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 10    LDA #16
A9 10    LDA #16
@A:
24 00    BIT $00
24 00    BIT $00
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F7   BNE *-7</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
08      PHP
08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-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
|-
|-
Line 24,499: Line 23,329:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA</pre>||Clobbers Z&N, C, and V; requires dummy interrupt handler; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires dummy interrupt handler; and writes in stack
|-
|-
Line 24,508: Line 23,337:
08      PHP
08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1
90 FC   BCC *-2
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
Line 24,525: Line 23,353:
48      PHA
48      PHA
A2 11    LDX #17
A2 11    LDX #17
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FA   BNE *-4
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
Line 24,534: Line 23,361:
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
00 00    BRK 0
00 00    BRK 0
30 xx   BMI @A-1
30 F9   BMI *-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
|-
|-
Line 24,546: Line 23,372:
08      PHP
08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1
90 FC   BCC *-2
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
Line 24,556: Line 23,381:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1
90 FC   BCC *-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
|-
|-
Line 24,567: Line 23,391:
38      SEC
38      SEC
A9 11    LDA #17
A9 11    LDA #17
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F8   BNE *-6
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
C5 00    CMP $00
36 00    ROL $00,X
76 00    ROR $00,X
18      CLC
B0 xx    BCS @A-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 24,585: Line 23,400:
38      SEC
38      SEC
A9 11    LDA #17
A9 11    LDA #17
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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
|-
|-
Line 24,596: Line 23,410:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
18      CLC
90 00    BCC *+2
18      CLC
F0 F7    BEQ *-7</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 24,610: Line 23,432:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|<pre>EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
18      CLC
90 00    BCC *+2
18      CLC
F0 F7    BEQ *-7</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 24,631: Line 23,462:
68      PLA
68      PLA
A2 E8    LDX #232 ;hides 'INX'
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
D0 FD    BNE *-1</pre>||Clobbers A, X, S, and Z&N
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 24,640: Line 23,470:
9A      TXS
9A      TXS
A2 E8    LDX #232 ;hides 'INX'
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
D0 FD    BNE *-1</pre>||Clobbers A, X, and Z&N
D0 xx    BNE @X</pre>||Clobbers A, X, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A2 10    LDX #16
A2 10    LDX #16
@X:
48      PHA
48      PHA
CA      DEX
CA      DEX
D0 xx   BNE @X</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>48      PHA
|<pre>48      PHA
A0 10    LDY #16
A0 10    LDY #16
@Y:
48      PHA
48      PHA
88      DEY
88      DEY
D0 xx   BNE @Y</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>EA      NOP
|<pre>EA      NOP
68      PLA
68      PLA
A0 19    LDY #25
A0 19    LDY #25
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 24,680: Line 23,506:
EA      NOP
EA      NOP
A2 19    LDX #25
A2 19    LDX #25
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 24,688: Line 23,513:
EA      NOP
EA      NOP
A0 19    LDY #25
A0 19    LDY #25
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
38      SEC
38      SEC
A9 19    LDA #25
A9 19    LDA #25
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, S, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 24,704: Line 23,527:
48      PHA
48      PHA
A2 18    LDX #24
A2 18    LDX #24
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
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
Line 24,714: Line 23,536:
08      PHP
08      PHP
A0 18    LDY #24
A0 18    LDY #24
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 24,723: Line 23,544:
08      PHP
08      PHP
A2 18    LDX #24
A2 18    LDX #24
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 24,732: Line 23,552:
38      SEC
38      SEC
A9 19    LDA #25
A9 19    LDA #25
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</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 24,749: Line 23,568:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1
90 FC   BCC *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 24,757: Line 23,575:
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>68       PLA
|<pre>E6 xx    INC @zptemp
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
18      CLC
90 00    BCC *+2
18       CLC
F0 F7    BEQ *-7</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
!colspan="2"|13 bytes
|-
|<pre>EA       NOP
A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
36 00    ROL $00,X
EA      NOP
76 00    ROR $00,X
18      CLC
90 00    BCC *+2
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
F0 F7   BEQ *-7</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 24,781: Line 23,610:
|<pre>EA      NOP
|<pre>EA      NOP
A0 1A    LDY #26
A0 1A    LDY #26
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A2 1A    LDX #26
A2 1A    LDX #26
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 24,795: Line 23,622:
|<pre>08      PHP
|<pre>08      PHP
A0 19    LDY #25
A0 19    LDY #25
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 19    LDX #25
A2 19    LDX #25
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 1A    LDA #26
A9 1A    LDA #26
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</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 24,825: Line 23,649:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>EA      NOP
|<pre>A9 4B   LDA #$4B ;hides 'ASR #$7A'
A9 0A   LDA #$0A ;hides 'ASL A'
7A      NOP ;first loop only
@A:
EA      NOP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
18      CLC
F0 F8   BEQ *-6</pre>||Clobbers A, Z&N, and C; requires @rts15, and support for unofficial opcodes; and writes in stack
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C; requires @rts15; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>A9 4B   LDA #$4B ;hides 'ASR #$7A'
A9 0A   LDA #$0A ;hides 'ASL A'
7A      NOP ;first loop only
@A:
EA      NOP
EA      NOP
EA      NOP
00 00    BRK 0
00 00    BRK 0
18      CLC
F0 F8   BEQ *-6</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>A9 4B    LDA #$4B ;hides 'ASR #$7A'
|<pre>A9 4B    LDA #$4B ;hides 'ASR #$7A'
@A:
7A      NOP ;first loop only
7A      NOP ;first loop only
48      PHA
48      PHA
20 xx xx JSR @rts14
20 xx xx JSR @rts14
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; requires @rts14, and support for unofficial opcodes; and writes in stack
F0 F8   BEQ *-6</pre>||Clobbers A, S, Z&N, and C; requires @rts14, and support for unofficial opcodes; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 24,859: Line 23,680:
08      PHP
08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
28      PLP</pre>||Clobbers A; requires @rts15; and writes in stack
28      PLP</pre>||Clobbers A; requires @rts15; and writes in stack
|-
|-
Line 24,867: Line 23,687:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-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
|-
|-
Line 24,876: Line 23,695:
08      PHP
08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-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
|-
|-
Line 24,885: Line 23,703:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA</pre>||Clobbers Z&N, C, and V; requires dummy interrupt handler; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires dummy interrupt handler; and writes in stack
|-
|-
Line 24,894: Line 23,711:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1
90 FC   BCC *-2
68      PLA
68      PLA
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>A9 4B    LDA #$4B ;hides 'ASR #$7A'
@A:
7A      NOP ;first loop only
7A      NOP ;first loop only
85 xx    STA @zptemp
85 xx    STA @zptemp
20 xx xx JSR @rts14
20 xx xx JSR @rts14
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires @zptemp, @rts14, and support for unofficial opcodes; and writes in stack
F0 F7   BEQ *-7</pre>||Clobbers A, Z&N, and C; requires @zptemp, @rts14, and support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 24,913: Line 23,728:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1
90 FC   BCC *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 24,922: Line 23,736:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
C5 00    CMP $00
EA      NOP
36 00    ROL $00,X
18      CLC
76 00    ROR $00,X
90 00    BCC *+2
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
F0 F7   BEQ *-7</pre>||Clobbers A, S, Z&N, and C
|-
!colspan="2"|13 bytes
|-
|-
|}
|<pre>EA      NOP
EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
18      CLC
90 00    BCC *+2
18      CLC
F0 F7    BEQ *-7</pre>||Clobbers A, Z&N, and C
|-
|}




Line 24,943: Line 23,771:
|-
|-
|<pre>A2 13    LDX #19
|<pre>A2 13    LDX #19
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 13    LDY #19
|<pre>A0 13    LDY #19
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 24,959: Line 23,785:
08      PHP
08      PHP
A2 E8    LDX #232 ;hides 'INX'
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
D0 FD    BNE *-1
D0 xx    BNE @X
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
Line 24,977: Line 23,802:
|<pre>08      PHP
|<pre>08      PHP
A2 12    LDX #18
A2 12    LDX #18
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
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
|<pre>08      PHP
A0 12    LDY #18
A0 12    LDY #18
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FA   BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$2A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$2A'
@A:
2A      ROL A ;first loop only
2A      ROL A ;first loop only
20 xx xx JSR @rts14
20 xx xx JSR @rts14
90 xx   BCC @A-1</pre>||Clobbers A, Z&N, C, and V; requires @rts14; and writes in stack
90 F9   BCC *-5</pre>||Clobbers A, Z&N, C, and V; requires @rts14; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; requires @rts15; and writes in stack
30 F8   BMI *-6</pre>||Clobbers A, Z&N, and C; requires @rts15; and writes in stack
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$2A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$2A'
@A:
2A      ROL A ;first loop only
2A      ROL A ;first loop only
08      PHP
08      PHP
Line 25,013: Line 23,833:
08      PHP
08      PHP
28      PLP
28      PLP
90 xx   BCC @A-1</pre>||Clobbers A, Z&N, C, and V; and writes in stack
90 F8   BCC *-6</pre>||Clobbers A, Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
@A:
2A      ROL A ;first loop only
2A      ROL A ;first loop only
00 00    BRK 0
00 00    BRK 0
90 xx   BCC @A-1
90 FA   BCC *-4
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 #$2A'
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
@A:
2A      ROL A ;first loop only
2A      ROL A ;first loop only
00 00    BRK 0
00 00    BRK 0
90 xx   BCC @A-1
90 FA   BCC *-4
68      PLA</pre>||Clobbers Z&N, C, and V; requires dummy interrupt handler; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires dummy interrupt handler; and writes in stack
|-
|-
Line 25,035: Line 23,853:
38      SEC
38      SEC
A9 19    LDA #25
A9 19    LDA #25
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, S, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 25,050: Line 23,867:
|<pre>08      PHP
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
08      PHP
08      PHP
28      PLP
28      PLP
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 F9   BEQ *-5
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 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
08      PHP
08      PHP
28      PLP
28      PLP
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 F9   BEQ *-5
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
Line 25,073: Line 23,888:
38      SEC
38      SEC
A9 19    LDA #25
A9 19    LDA #25
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 25,084: Line 23,898:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1
90 FC   BCC *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 25,092: Line 23,905:
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>68      PLA
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
18      CLC
18      CLC
90 00    BCC *+2
90 00    BCC *+2
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F9   BEQ *-5</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 25,117: Line 23,927:
|<pre>68      PLA
|<pre>68      PLA
A0 1A    LDY #26
A0 1A    LDY #26
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A2 1A    LDX #26
A2 1A    LDX #26
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 25,132: Line 23,940:
EA      NOP
EA      NOP
A0 1A    LDY #26
A0 1A    LDY #26
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A2 1A    LDX #26
A2 1A    LDX #26
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</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>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 25,163: Line 23,968:
48      PHA
48      PHA
A2 E8    LDX #232 ;hides 'INX'
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
D0 FD    BNE *-1
D0 xx    BNE @X
68      PLA
68      PLA
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
Line 25,171: Line 23,975:
08      PHP
08      PHP
A0 19    LDY #25
A0 19    LDY #25
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 25,179: Line 23,982:
08      PHP
08      PHP
A2 19    LDX #25
A2 19    LDX #25
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 25,187: Line 23,989:
38      SEC
38      SEC
A9 1A    LDA #26
A9 1A    LDA #26
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 25,196: Line 23,997:
38      SEC
38      SEC
A9 19    LDA #25
A9 19    LDA #25
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 25,204: Line 24,004:
38      SEC
38      SEC
A9 19    LDA #25
A9 19    LDA #25
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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 25,219: Line 24,018:
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 25,226: Line 24,024:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F7   BEQ *-7</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 25,233: Line 24,031:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
08      PHP
08      PHP
28      PLP
28      PLP
10 xx   BPL @A-1
10 FA   BPL *-4
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 25,249: Line 24,046:
|-
|-
|<pre>A0 1B    LDY #27
|<pre>A0 1B    LDY #27
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 1B    LDX #27
|<pre>A2 1B    LDX #27
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #109
|<pre>A9      LDA #109
Line 25,264: Line 24,059:
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$08'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$08'
@A:
08      PHP ;first loop only
08      PHP ;first loop only
EA      NOP
EA      NOP
EA      NOP
EA      NOP
10 xx   BPL @A-1</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
10 FA   BPL *-4</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 25,284: Line 24,078:
|<pre>38      SEC
|<pre>38      SEC
A9 13    LDA #19
A9 13    LDA #19
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F8   BNE *-6</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
E6 xx    INC @zptemp
E6 xx    INC @zptemp
A2 E8    LDX #232 ;hides 'INX'
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
D0 FD    BNE *-1
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|-
Line 25,299: Line 24,091:
08      PHP
08      PHP
A0 19    LDY #25
A0 19    LDY #25
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
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
|-
|-
Line 25,307: Line 24,098:
08      PHP
08      PHP
A2 19    LDX #25
A2 19    LDX #25
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
Line 25,316: Line 24,106:
|<pre>08      PHP
|<pre>08      PHP
A0 10    LDY #16
A0 10    LDY #16
@Y:
24 00    BIT $00
24 00    BIT $00
88      DEY
88      DEY
D0 xx   BNE @Y
D0 F9   BNE *-5
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 10    LDX #16
A2 10    LDX #16
@X:
C5 00    CMP $00
C5 00    CMP $00
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 F9   BNE *-5
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 25,333: Line 24,121:
08      PHP
08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1
90 FC   BCC *-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
|-
|-
Line 25,341: Line 24,128:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1
90 FC   BCC *-2
68      PLA</pre>||Clobbers Z&N, C, and V; requires dummy interrupt handler; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires dummy interrupt handler; and writes in stack
|-
|-
Line 25,358: Line 24,144:
38      SEC
38      SEC
A9 12    LDA #18
A9 12    LDA #18
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F8   BNE *-6
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 25,367: Line 24,152:
38      SEC
38      SEC
A9 12    LDA #18
A9 12    LDA #18
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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
|-
|-
Line 25,378: Line 24,162:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
08      PHP
08      PHP
28      PLP
28      PLP
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 F9   BEQ *-5
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
Line 25,391: Line 24,174:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1
90 FC   BCC *-2
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
Line 25,403: Line 24,185:
38      SEC
38      SEC
A9 11    LDA #17
A9 11    LDA #17
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F8   BNE *-6
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 25,413: Line 24,194:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68      PLA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD    BEQ *-1
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
18      CLC
18      CLC
90 00    BCC *+2
90 00    BCC *+2
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F9   BEQ *-5</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 25,438: Line 24,216:
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
A2 E8    LDX #232 ;hides 'INX'
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N; requires dummy interrupt handler; and writes in stack
D0 xx    BNE @X</pre>||Clobbers X, and Z&N; requires dummy interrupt handler; and writes in stack
|-
|<pre>A2 11    LDX #17
48      PHA
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 11    LDY #17
|<pre>A0 11    LDY #17
@Y:
48      PHA
48      PHA
88      DEY
88      DEY
D0 xx   BNE @Y</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
|-
!colspan="2"|7 bytes
|-
|-
|<pre>A2 11    LDX #17
|<pre>A2 11    LDX #17
@X:
A5 00    LDA $00
48      PHA
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 F9   BNE *-5</pre>||Clobbers A, X, and Z&N
|-
!colspan="2"|7 bytes
|-
|-
|<pre>A0 11    LDY #17
|<pre>A0 11    LDY #17
@Y:
A5 00    LDA $00
A5 00    LDA $00
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, and Z&N
D0 F9   BNE *-5</pre>||Clobbers A, Y, and Z&N
|-
|-
|<pre>A2 11    LDX #17
|<pre>A2 11    LDX #17
@X:
A4 00    LDY $00
A5 00    LDA $00
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, and Z&N
D0 F9   BNE *-5</pre>||Clobbers X, Y, and Z&N
|-
|<pre>A0 11    LDY #17
C5 00    CMP $00
88      DEY
D0 F9    BNE *-5</pre>||Clobbers Y, Z&N, and C
|-
|-
|<pre>A2 11    LDX #17
|<pre>A2 11    LDX #17
@X:
C5 00    CMP $00
A4 00    LDY $00
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, Y, and Z&N
D0 F9   BNE *-5</pre>||Clobbers X, Z&N, and C
|-
|-
|<pre>A2 11    LDX #17
|<pre>A2 11    LDX #17
@X:
24 00    BIT $00
C5 00    CMP $00
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, Z&N, and C
D0 F9   BNE *-5</pre>||Clobbers X, Z&N, and V
|-
|-
|<pre>A0 11    LDY #17
|<pre>A0 11    LDY #17
@Y:
24 00    BIT $00
C5 00    CMP $00
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, Z&N, and C
D0 F9   BNE *-5</pre>||Clobbers Y, Z&N, and V
|-
|-
|<pre>A0 11    LDY #17
|<pre>A0 11    LDY #17
@Y:
85 xx    STA @zptemp
24 00    BIT $00
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, Z&N, and V
D0 F9   BNE *-5</pre>||Clobbers Y, and Z&N; and requires @zptemp
|-
|-
|<pre>A2 11    LDX #17
|<pre>A2 11    LDX #17
@X:
24 00    BIT $00
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, Z&N, and V
|-
|<pre>A2 11    LDX #17
@X:
85 xx    STA @zptemp
85 xx    STA @zptemp
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N; and requires @zptemp
D0 F9   BNE *-5</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|<pre>A0 11    LDY #17
@Y:
85 xx    STA @zptemp
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N; and requires @zptemp
|-
|-
|<pre>A0 11    LDY #17
|<pre>A0 11    LDY #17
@Y:
04 00    NOP $00
04 00    NOP $00
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
D0 F9   BNE *-5</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>A2 11    LDX #17
|<pre>A2 11    LDX #17
@X:
04 00    NOP $00
04 00    NOP $00
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
D0 F9   BNE *-5</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 25,535: Line 24,299:
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
A0 13    LDY #19
A0 13    LDY #19
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
A2 13    LDX #19
A2 13    LDX #19
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 25,557: Line 24,318:
08      PHP
08      PHP
A2 E8    LDX #232 ;hides 'INX'
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
D0 FD    BNE *-1
D0 xx    BNE @X
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
Line 25,564: Line 24,324:
38      SEC
38      SEC
A9 1A    LDA #26
A9 1A    LDA #26
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, S, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
00 00    BRK 0
18      CLC
B0 xx    BCS @A-1</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 25,580: Line 24,332:
48      PHA
48      PHA
A0 19    LDY #25
A0 19    LDY #25
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
68      PLA
68      PLA
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
Line 25,590: Line 24,341:
08      PHP
08      PHP
A0 19    LDY #25
A0 19    LDY #25
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 25,599: Line 24,349:
08      PHP
08      PHP
A2 19    LDX #25
A2 19    LDX #25
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 25,608: Line 24,357:
38      SEC
38      SEC
A9 1A    LDA #26
A9 1A    LDA #26
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</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 25,625: Line 24,373:
38      SEC
38      SEC
A9 19    LDA #25
A9 19    LDA #25
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 25,634: Line 24,381:
38      SEC
38      SEC
A9 19    LDA #25
A9 19    LDA #25
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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 25,646: Line 24,392:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1
90 FC   BCC *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>EA      NOP
@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
76 00    ROR $00,X
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
F0 F7   BEQ *-7</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 25,675: Line 24,421:
|<pre>EA      NOP
|<pre>EA      NOP
A0 1B    LDY #27
A0 1B    LDY #27
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A2 1B    LDX #27
A2 1B    LDX #27
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 25,689: Line 24,433:
|<pre>08      PHP
|<pre>08      PHP
A2 1A    LDX #26
A2 1A    LDX #26
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
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
|<pre>08      PHP
A0 1A    LDY #26
A0 1A    LDY #26
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 1B    LDA #27
A9 1B    LDA #27
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</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 25,721: Line 24,462:
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack
F0 FA   BEQ *-4</pre>||Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 25,729: Line 24,469:
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 25,737: Line 24,476:
48      PHA
48      PHA
A2 E8    LDX #232 ;hides 'INX'
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
D0 FD    BNE *-1
D0 xx    BNE @X
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
Line 25,751: Line 24,489:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>08      PHP
|<pre>20 xx xx JSR @rts15
A9 0A   LDA #$0A ;hides 'ASL A'
08      PHP
@A:
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
20 xx xx JSR @rts15
0A      ASL A ;first loop only
18      CLC
90 FC   BCC *-2
B0 xx   BCS @A-1
28      PLP</pre>||Clobbers A; requires @rts15; and writes in stack
28      PLP</pre>||Clobbers A; requires @rts15; and writes in stack
|-
|-
Line 25,762: Line 24,499:
48      PHA
48      PHA
A0 12    LDY #18
A0 12    LDY #18
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FA   BNE *-4
68      PLA
68      PLA
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>20 xx xx JSR @rts15
A9 0A   LDA #$0A ;hides 'ASL A'
48      PHA
@A:
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
20 xx xx JSR @rts15
0A      ASL A ;first loop only
18      CLC
90 FC   BCC *-2
B0 xx   BCS @A-1
68      PLA</pre>||Clobbers Z&N, C, and V; requires @rts15; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts15; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
00 00    BRK 0
00 00    BRK 0
18       CLC
08       PHP
B0 xx   BCS @A-1
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
90 FC    BCC *-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>48      PHA
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
00 00    BRK 0
00 00    BRK 0
18       CLC
48       PHA
B0 xx   BCS @A-1
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
0A      ASL A ;first loop only
90 FC    BCC *-2
68      PLA</pre>||Clobbers Z&N, C, and V; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 25,799: Line 24,532:
38      SEC
38      SEC
A9 19    LDA #25
A9 19    LDA #25
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
Line 25,808: Line 24,540:
38      SEC
38      SEC
A9 19    LDA #25
A9 19    LDA #25
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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
|-
|-
Line 25,818: Line 24,549:
38      SEC
38      SEC
A9 10    LDA #16
A9 10    LDA #16
@A:
24 00    BIT $00
24 00    BIT $00
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F7   BNE *-7
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 25,827: Line 24,557:
38      SEC
38      SEC
A9 10    LDA #16
A9 10    LDA #16
@A:
24 00    BIT $00
24 00    BIT $00
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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
|-
|-
Line 25,837: Line 24,566:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
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 25,849: Line 24,577:
48      PHA
48      PHA
A2 11    LDX #17
A2 11    LDX #17
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FA   BNE *-4
68      PLA
68      PLA
AA      TAX
AA      TAX
Line 25,859: Line 24,586:
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 25,866: Line 24,592:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F7   BEQ *-7</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 25,874: Line 24,600:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1
90 FC   BCC *-2
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
Line 25,887: Line 24,612:
38      SEC
38      SEC
A9 11    LDA #17
A9 11    LDA #17
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F8   BNE *-6
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 25,908: Line 24,632:
|<pre>48      PHA
|<pre>48      PHA
A0 1B    LDY #27
A0 1B    LDY #27
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</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
|<pre>48      PHA
A2 1B    LDX #27
A2 1B    LDX #27
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</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
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 25,922: Line 24,644:
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
A0 1B    LDY #27
A0 1B    LDY #27
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
A2 1B    LDX #27
A2 1B    LDX #27
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 25,946: Line 24,666:
|<pre>68      PLA
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack
F0 FA   BEQ *-4</pre>||Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 11    LDA #17
A9 11    LDA #17
@A:
48      PHA
48      PHA
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</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
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 25,964: Line 24,682:
9A      TXS
9A      TXS
A2 E8    LDX #232 ;hides 'INX'
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
D0 FD    BNE *-1
D0 xx    BNE @X
28      PLP</pre>||Clobbers A, and X; and writes in stack
28      PLP</pre>||Clobbers A, and X; and writes in stack
|-
|-
Line 25,971: Line 24,688:
EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 11    LDA #17
A9 11    LDA #17
@A:
24 00    BIT $00
24 00    BIT $00
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F7   BNE *-7</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 25,986: Line 24,701:
48      PHA
48      PHA
A2 E8    LDX #232 ;hides 'INX'
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
D0 FD    BNE *-1
D0 xx    BNE @X
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
Line 25,994: Line 24,708:
48      PHA
48      PHA
08      PHP
08      PHP
A2 19    LDX #25
A0 19    LDY #25
@X:
88       DEY
CA       DEX
D0 FB   BNE *-3
D0 xx   BNE @X
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
A0 19    LDY #25
A2 19    LDX #25
@Y:
CA       DEX
88       DEY
D0 FB   BNE *-3
D0 xx   BNE @Y
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 26,022: Line 24,734:
48      PHA
48      PHA
A0 19    LDY #25
A0 19    LDY #25
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
68      PLA
68      PLA
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
Line 26,033: Line 24,744:
08      PHP
08      PHP
A0 19    LDY #25
A0 19    LDY #25
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 26,043: Line 24,753:
08      PHP
08      PHP
A2 19    LDX #25
A2 19    LDX #25
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 26,052: Line 24,761:
08      PHP
08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1
90 FC   BCC *-2
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
|-
|-
Line 26,061: Line 24,769:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1
90 FC   BCC *-2
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, C, and V; requires dummy interrupt handler; and writes in stack
|-
|-
Line 26,072: Line 24,779:
48      PHA
48      PHA
A2 18    LDX #24
A2 18    LDX #24
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
68      PLA
68      PLA
AA      TAX
AA      TAX
Line 26,084: Line 24,790:
38      SEC
38      SEC
A9 19    LDA #25
A9 19    LDA #25
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 26,098: Line 24,802:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C
F0 F7   BEQ *-7</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 26,108: Line 24,812:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1
90 FC   BCC *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
36 00    ROL $00,X
EA      NOP
76 00    ROR $00,X
EA      NOP
EA      NOP
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
F0 F7   BEQ *-7</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 26,138: Line 24,842:
|<pre>68      PLA
|<pre>68      PLA
A0 1B    LDY #27
A0 1B    LDY #27
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A2 1B    LDX #27
A2 1B    LDX #27
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 26,152: Line 24,854:
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A0 1B    LDY #27
A2 1B    LDX #27
@Y:
CA       DEX
88       DEY
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A2 1B    LDX #27
A0 1B    LDY #27
@X:
88       DEY
CA       DEX
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 26,175: Line 24,875:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA      NOP
08      PHP
A2 1A    LDX #26
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A0 1A    LDY #26
A0 1A    LDY #26
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
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 1A    LDX #26
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
38      SEC
38      SEC
A9 1B    LDA #27
A9 1B    LDA #27
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 26,204: Line 24,901:
38      SEC
38      SEC
A9 1A    LDA #26
A9 1A    LDA #26
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 26,212: Line 24,908:
38      SEC
38      SEC
A9 1A    LDA #26
A9 1A    LDA #26
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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 26,226: Line 24,921:
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>EA      NOP
|<pre>48      PHA
48      PHA
A9 4B   LDA #$4B ;hides 'ASR #$7A'
A9 0A   LDA #$0A ;hides 'ASL A'
7A      NOP ;first loop only
@A:
EA      NOP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
18      CLC
F0 F8   BEQ *-6
B0 xx   BCS @A-1
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>EA      NOP
|<pre>48      PHA
48      PHA
A9 4B   LDA #$4B ;hides 'ASR #$7A'
A9 0A   LDA #$0A ;hides 'ASL A'
7A      NOP ;first loop only
@A:
EA      NOP
EA      NOP
EA      NOP
00 00    BRK 0
00 00    BRK 0
18      CLC
F0 F8   BEQ *-6
B0 xx   BCS @A-1
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 26,251: Line 24,944:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA
68      PLA
28      PLP</pre>||Requires @rts15; and writes in stack
28      PLP</pre>||Requires @rts15; and writes in stack
Line 26,259: Line 24,951:
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 26,266: Line 24,957:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and requires @zptemp
F0 F7   BEQ *-7</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 26,273: Line 24,964:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
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 26,285: Line 24,975:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1
90 FC   BCC *-2
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
Line 26,293: Line 24,982:
|<pre>48      PHA
|<pre>48      PHA
A9 4B    LDA #$4B ;hides 'ASR #$7A'
A9 4B    LDA #$4B ;hides 'ASR #$7A'
@A:
7A      NOP ;first loop only
7A      NOP ;first loop only
85 xx    STA @zptemp
85 xx    STA @zptemp
20 xx xx JSR @rts14
20 xx xx JSR @rts14
F0 xx   BEQ @A-1
F0 F7   BEQ *-7
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 @zptemp, @rts14, and support for unofficial opcodes; and writes in stack
|-
|-
Line 26,308: Line 24,996:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1
90 FC   BCC *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>EA      NOP
A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
36 00    ROL $00,X
EA      NOP
76 00    ROR $00,X
EA      NOP
EA      NOP
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
F0 F7   BEQ *-7</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 26,330: Line 25,018:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A2 1C    LDX #28
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 1C    LDY #28
|<pre>A0 1C    LDY #28
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 1C    LDX #28
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #114
|<pre>A9      LDA #114
Line 26,357: Line 25,043:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>08      PHP
A0 13    LDY #19
EA      NOP
88      DEY
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 13    LDX #19
A2 13    LDX #19
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
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
A0 13    LDY #19
@Y:
EA      NOP
88      DEY
D0 xx    BNE @Y
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'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
08      PHP
08      PHP
28      PLP
28      PLP
10 xx   BPL @A-1</pre>||Clobbers A, Z&N, C, and V; and writes in stack
10 F9   BPL *-5</pre>||Clobbers A, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 26,387: Line 25,070:
38      SEC
38      SEC
A9 1B    LDA #27
A9 1B    LDA #27
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68      PLA
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack
F0 FA   BEQ *-4</pre>||Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack
|-
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
00 00    BRK 0
18      CLC
B0 xx    BCS @A-1</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 26,419: Line 25,092:
EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
@A:
2A      ROL A ;first loop only
2A      ROL A ;first loop only
20 xx xx JSR @rts14
20 xx xx JSR @rts14
90 xx   BCC @A-1
90 F9   BCC *-5
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 E9    LDA #$E9 ;hides 'SBC #$2A'
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
@A:
2A      ROL A ;first loop only
2A      ROL A ;first loop only
20 xx xx JSR @rts14
20 xx xx JSR @rts14
90 xx   BCC @A-1
90 F9   BCC *-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
|-
|-
Line 26,443: Line 25,113:
48      PHA
48      PHA
A0 19    LDY #25
A0 19    LDY #25
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
68      PLA
68      PLA
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
A8      TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
Line 26,453: Line 25,122:
|<pre>08      PHP
|<pre>08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
@A:
2A      ROL A ;first loop only
2A      ROL A ;first loop only
08      PHP
08      PHP
Line 26,459: Line 25,127:
08      PHP
08      PHP
28      PLP
28      PLP
90 xx   BCC @A-1
90 F8   BCC *-6
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 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
30 xx   BMI @A-1
30 F8   BMI *-6
68      PLA</pre>||Clobbers Z&N, and C; requires @rts15; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
@A:
2A      ROL A ;first loop only
2A      ROL A ;first loop only
08      PHP
08      PHP
Line 26,479: Line 25,145:
08      PHP
08      PHP
28      PLP
28      PLP
90 xx   BCC @A-1
90 F8   BCC *-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
|-
|-
Line 26,485: Line 25,151:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
@A:
2A      ROL A ;first loop only
2A      ROL A ;first loop only
00 00    BRK 0
00 00    BRK 0
90 xx   BCC @A-1
90 FA   BCC *-4
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 26,497: Line 25,162:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
08      PHP
08      PHP
28      PLP
28      PLP
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 F9   BEQ *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>68      PLA
|<pre>EA      NOP
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
36 00    ROL $00,X
EA      NOP
76 00    ROR $00,X
EA      NOP
EA      NOP
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, S, Z&N, and C
F0 F7   BEQ *-7</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
36 00    ROL $00,X
EA      NOP
76 00    ROR $00,X
EA      NOP
EA      NOP
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
F0 F7   BEQ *-7</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 26,542: Line 25,208:
|-
|-
|<pre>A0 98    LDY #152 ;hides 'TYA'
|<pre>A0 98    LDY #152 ;hides 'TYA'
@Y = * - 1
EA      NOP
EA      NOP
88      DEY
88      DEY
88      DEY
88      DEY
30 xx   BMI @Y</pre>||Clobbers A, Y, and Z&N
30 FA   BMI *-4</pre>||Clobbers A, Y, and Z&N
|-
|-
|<pre>A2 98    LDX #152 ;hides 'TYA'
|<pre>A2 98    LDX #152 ;hides 'TYA'
@X = * - 1
EA      NOP
EA      NOP
CA      DEX
CA      DEX
CA      DEX
CA      DEX
30 xx   BMI @X</pre>||Clobbers A, X, and Z&N
30 FA   BMI *-4</pre>||Clobbers A, X, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
48      PHA
48      PHA
A0 1B    LDY #27
A0 1B    LDY #27
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</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
|<pre>48      PHA
48      PHA
48      PHA
A2 1B    LDX #27
A2 1B    LDX #27
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</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>A2 1A    LDX #26 ;hides 'NOP'
|<pre>A2 1A    LDX #26 ;hides 'NOP'
@X = * - 1
EA      NOP
EA      NOP
CA      DEX
CA      DEX
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>A0 1A    LDY #26 ;hides 'NOP'
|<pre>A0 1A    LDY #26 ;hides 'NOP'
@Y = * - 1
EA      NOP
EA      NOP
88      DEY
88      DEY
88      DEY
88      DEY
D0 xx   BNE @Y</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>08      PHP
|<pre>08      PHP
Line 26,599: Line 25,259:
EA      NOP
EA      NOP
A2 1B    LDX #27
A2 1B    LDX #27
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 26,607: Line 25,266:
EA      NOP
EA      NOP
A0 1B    LDY #27
A0 1B    LDY #27
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
38      SEC
38      SEC
A9 1B    LDA #27
A9 1B    LDA #27
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, S, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 26,622: Line 25,279:
|<pre>08      PHP
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
28      PLP</pre>||Clobbers A; requires @rts12; and writes in stack
28      PLP</pre>||Clobbers A; requires @rts12; and writes in stack
|-
|-
Line 26,630: Line 25,286:
48      PHA
48      PHA
A2 1A    LDX #26
A2 1A    LDX #26
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
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
Line 26,640: Line 25,295:
08      PHP
08      PHP
A2 1A    LDX #26
A2 1A    LDX #26
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 26,649: Line 25,303:
08      PHP
08      PHP
A0 1A    LDY #26
A0 1A    LDY #26
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
|-
|-
Line 26,665: Line 25,317:
38      SEC
38      SEC
A9 1B    LDA #27
A9 1B    LDA #27
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</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 26,682: Line 25,333:
48      PHA
48      PHA
A2 E8    LDX #232 ;hides 'INX'
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
D0 FD    BNE *-1
D0 xx    BNE @X
68      PLA
68      PLA
AA      TAX
AA      TAX
Line 26,692: Line 25,342:
38      SEC
38      SEC
A9 1A    LDA #26
A9 1A    LDA #26
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 26,703: Line 25,352:
38      SEC
38      SEC
A9 19    LDA #25
A9 19    LDA #25
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 26,711: Line 25,359:
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>68      PLA
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
EA      NOP
F0 F9   BEQ *-5</pre>||Clobbers A, Z&N, and C
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 26,737: Line 25,382:
|<pre>EA      NOP
|<pre>EA      NOP
A2 1C    LDX #28
A2 1C    LDX #28
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A0 1C    LDY #28
A0 1C    LDY #28
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
F0 FB   BEQ *-3</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 26,756: Line 25,398:
|<pre>08      PHP
|<pre>08      PHP
A2 1B    LDX #27
A2 1B    LDX #27
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
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
|<pre>08      PHP
A0 1B    LDY #27
A0 1B    LDY #27
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 1C    LDA #28
A9 1C    LDA #28
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</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 26,787: Line 25,426:
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
48      PHA
48      PHA
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
F0 F9   BEQ *-5</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 26,803: Line 25,440:
28      PLP
28      PLP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and writes in stack
F0 F8   BEQ *-6</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 26,817: Line 25,454:
38      SEC
38      SEC
A9 13    LDA #19
A9 13    LDA #19
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F8   BNE *-6
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 26,826: Line 25,462:
38      SEC
38      SEC
A9 13    LDA #19
A9 13    LDA #19
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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
|-
|-
Line 26,835: Line 25,470:
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 26,842: Line 25,476:
90 00    BCC *+2
90 00    BCC *+2
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F6   BEQ *-8</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
Line 26,848: Line 25,482:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1
90 FC   BCC *-2
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 26,860: Line 25,493:
38      SEC
38      SEC
A9 12    LDA #18
A9 12    LDA #18
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F8   BNE *-6
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 26,881: Line 25,513:
|<pre>48      PHA
|<pre>48      PHA
A0 1C    LDY #28
A0 1C    LDY #28
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</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
|<pre>48      PHA
A2 1C    LDX #28
A2 1C    LDX #28
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</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
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A6 00    LDX $00
A2 1C    LDX #28
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
A0 1C    LDY #28
A0 1C    LDY #28
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A6 00    LDX $00
A2 1C    LDX #28
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 26,920: Line 25,548:
08      PHP
08      PHP
A2 E8    LDX #232 ;hides 'INX'
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
D0 FD    BNE *-1
D0 xx    BNE @X
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
|-
|-
Line 26,928: Line 25,555:
|<pre>08      PHP
|<pre>08      PHP
A0 11    LDY #17
A0 11    LDY #17
@Y:
C5 00    CMP $00
C5 00    CMP $00
88      DEY
88      DEY
D0 xx   BNE @Y
D0 F9   BNE *-5
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 11    LDX #17
A2 11    LDX #17
@X:
C5 00    CMP $00
C5 00    CMP $00
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 F9   BNE *-5
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 26,946: Line 25,571:
38      SEC
38      SEC
A9 1B    LDA #27
A9 1B    LDA #27
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, S, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 26,962: Line 25,586:
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
28      PLP</pre>||Clobbers A; requires @rts12; and writes in stack
28      PLP</pre>||Clobbers A; requires @rts12; and writes in stack
|-
|-
Line 26,971: Line 25,594:
48      PHA
48      PHA
A2 1A    LDX #26
A2 1A    LDX #26
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
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
Line 26,980: Line 25,602:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
|-
|-
Line 26,990: Line 25,611:
38      SEC
38      SEC
A9 1B    LDA #27
A9 1B    LDA #27
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 27,000: Line 25,620:
48      PHA
48      PHA
A0 19    LDY #25
A0 19    LDY #25
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
68      PLA
68      PLA
A8      TAY
A8      TAY
Line 27,012: Line 25,631:
38      SEC
38      SEC
A9 1A    LDA #26
A9 1A    LDA #26
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 27,024: Line 25,642:
38      SEC
38      SEC
A9 19    LDA #25
A9 19    LDA #25
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 27,032: Line 25,649:
!colspan="2"|13 bytes
!colspan="2"|13 bytes
|-
|-
|<pre>68       PLA
|<pre>EA       NOP
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
36 00    ROL $00,X
EA      NOP
76 00    ROR $00,X
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
F0 F9   BEQ *-5</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 27,056: Line 25,672:
|-
|-
|<pre>A2 12    LDX #18
|<pre>A2 12    LDX #18
@X:
48      PHA
48      PHA
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FA   BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 12    LDY #18
|<pre>A0 12    LDY #18
@Y:
48      PHA
48      PHA
88      DEY
88      DEY
D0 xx   BNE @Y</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>A0 10    LDY #16
68      PLA
88      DEY
D0 FA    BNE *-4</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>A2 10    LDX #16
|<pre>A2 10    LDX #16
@X:
68      PLA
68      PLA
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 FA   BNE *-4</pre>||Clobbers A, X, S, and Z&N
|-
|<pre>A0 10    LDY #16
@Y:
68      PLA
88      DEY
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A0 10    LDY #16
|<pre>A0 10    LDY #16
@Y:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 F9   BNE *-5</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 10    LDX #16
|<pre>A2 10    LDX #16
@X:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 F9   BNE *-5</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
F0 FB   BEQ *-3</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 27,116: Line 25,725:
08      PHP
08      PHP
A2 1B    LDX #27
A2 1B    LDX #27
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 27,124: Line 25,732:
08      PHP
08      PHP
A0 1B    LDY #27
A0 1B    LDY #27
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 27,132: Line 25,739:
38      SEC
38      SEC
A9 1C    LDA #28
A9 1C    LDA #28
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 27,141: Line 25,747:
38      SEC
38      SEC
A9 1B    LDA #27
A9 1B    LDA #27
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 27,149: Line 25,754:
38      SEC
38      SEC
A9 1B    LDA #27
A9 1B    LDA #27
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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 27,166: Line 25,770:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA</pre>||Clobbers S, Z&N, and C; requires @rts12; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; requires @rts12; and writes in stack
|-
|-
Line 27,176: Line 25,779:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
|-
|-
Line 27,186: Line 25,788:
48      PHA
48      PHA
A2 E8    LDX #232 ;hides 'INX'
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
D0 FD    BNE *-1
D0 xx    BNE @X
68      PLA
68      PLA
AA      TAX
AA      TAX
Line 27,194: Line 25,795:
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>08      PHP
|<pre>20 xx xx JSR @rts15
08      PHP
48      PHA
48      PHA
A9 0A   LDA #$0A ;hides 'ASL A'
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
20 xx xx JSR @rts15
90 FC   BCC *-2
18      CLC
B0 xx   BCS @A-1
68      PLA
68      PLA
28      PLP</pre>||Requires @rts15; and writes in stack
28      PLP</pre>||Requires @rts15; and writes in stack
Line 27,208: Line 25,808:
48      PHA
48      PHA
A0 12    LDY #18
A0 12    LDY #18
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FA   BNE *-4
68      PLA
68      PLA
A8      TAY
A8      TAY
Line 27,218: Line 25,817:
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 27,225: Line 25,823:
90 00    BCC *+2
90 00    BCC *+2
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F6   BEQ *-8</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>EA      NOP
00 00    BRK 0
08      PHP
48      PHA
48      PHA
A9 0A   LDA #$0A ;hides 'ASL A'
A9 E9   LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
EA      NOP
90 FC   BCC *-2
00 00   BRK 0
18      CLC
B0 xx    BCS @A-1
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 27,243: Line 25,840:
38      SEC
38      SEC
A9 19    LDA #25
A9 19    LDA #25
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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
Line 27,255: Line 25,851:
38      SEC
38      SEC
A9 10    LDA #16
A9 10    LDA #16
@A:
24 00    BIT $00
24 00    BIT $00
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F7   BNE *-7
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 27,270: Line 25,865:
|-
|-
|<pre>A0 1D    LDY #29
|<pre>A0 1D    LDY #29
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 1D    LDX #29
|<pre>A2 1D    LDX #29
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #119
|<pre>A9      LDA #119
Line 27,286: Line 25,879:
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
F0 FB   BEQ *-3</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 27,304: Line 25,896:
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
F0 FB   BEQ *-3</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
A0 1B    LDY #27
A0 1B    LDY #27
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
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
|-
|-
Line 27,319: Line 25,909:
08      PHP
08      PHP
A2 1B    LDX #27
A2 1B    LDX #27
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
Line 27,327: Line 25,916:
38      SEC
38      SEC
A9 1C    LDA #28
A9 1C    LDA #28
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</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
!colspan="2"|9 bytes
Line 27,336: Line 25,924:
A6 00    LDX $00
A6 00    LDX $00
A2 1B    LDX #27
A2 1B    LDX #27
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 27,344: Line 25,931:
A4 00    LDY $00
A4 00    LDY $00
A0 1B    LDY #27
A0 1B    LDY #27
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 27,352: Line 25,938:
38      SEC
38      SEC
A9 1C    LDA #28
A9 1C    LDA #28
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
48      PHA
48      PHA
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
F0 F9   BEQ *-5</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 27,378: Line 25,962:
48      PHA
48      PHA
A2 1A    LDX #26
A2 1A    LDX #26
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
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
Line 27,389: Line 25,972:
38      SEC
38      SEC
A9 11    LDA #17
A9 11    LDA #17
@A:
24 00    BIT $00
24 00    BIT $00
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F7   BNE *-7
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 27,399: Line 25,981:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
|-
|-
Line 27,407: Line 25,988:
38      SEC
38      SEC
A9 11    LDA #17
A9 11    LDA #17
@A:
24 00    BIT $00
24 00    BIT $00
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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
|-
|-
Line 27,420: Line 26,000:
48      PHA
48      PHA
A0 19    LDY #25
A0 19    LDY #25
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
68      PLA
68      PLA
A8      TAY
A8      TAY
Line 27,432: Line 26,011:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
90 xx   BCC @A-1
90 FC   BCC *-2
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 27,446: Line 26,024:
38      SEC
38      SEC
A9 19    LDA #25
A9 19    LDA #25
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 27,454: Line 26,031:
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 27,461: Line 26,037:
90 00    BCC *+2
90 00    BCC *+2
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F6   BEQ *-8</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 27,477: Line 26,053:
|<pre>EA      NOP
|<pre>EA      NOP
A0 12    LDY #18
A0 12    LDY #18
@Y:
48      PHA
48      PHA
88      DEY
88      DEY
D0 xx   BNE @Y</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>EA      NOP
|<pre>EA      NOP
A2 12    LDX #18
A2 12    LDX #18
@X:
48      PHA
48      PHA
CA      DEX
CA      DEX
D0 xx   BNE @X</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>EA      NOP
|<pre>EA      NOP
A0 10    LDY #16
A0 10    LDY #16
@Y:
68      PLA
68      PLA
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 FA   BNE *-4</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A2 10    LDX #16
A2 10    LDX #16
@X:
68      PLA
68      PLA
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 FA   BNE *-4</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
F0 FB   BEQ *-3</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 27,523: Line 26,094:
|<pre>EA      NOP
|<pre>EA      NOP
A0 10    LDY #16
A0 10    LDY #16
@Y:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 F9   BNE *-5</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A2 10    LDX #16
A2 10    LDX #16
@X:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 F9   BNE *-5</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
F0 FB   BEQ *-3</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
38      SEC
38      SEC
A9 1C    LDA #28
A9 1C    LDA #28
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, S, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 27,556: Line 26,123:
48      PHA
48      PHA
A2 1B    LDX #27
A2 1B    LDX #27
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
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
Line 27,566: Line 26,132:
08      PHP
08      PHP
A0 1B    LDY #27
A0 1B    LDY #27
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 27,575: Line 26,140:
08      PHP
08      PHP
A2 1B    LDX #27
A2 1B    LDX #27
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 12    LDA #18
A9 12    LDA #18
@A:
24 00    BIT $00
24 00    BIT $00
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F7   BNE *-7</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 27,600: Line 26,163:
38      SEC
38      SEC
A9 1B    LDA #27
A9 1B    LDA #27
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 27,609: Line 26,171:
38      SEC
38      SEC
A9 1B    LDA #27
A9 1B    LDA #27
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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 27,620: Line 26,181:
38      SEC
38      SEC
A9 1A    LDA #26
A9 1A    LDA #26
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 27,630: Line 26,190:
|<pre>68      PLA
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 27,637: Line 26,196:
90 00    BCC *+2
90 00    BCC *+2
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C
F0 F6   BEQ *-8</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 27,644: Line 26,203:
EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 27,651: Line 26,209:
90 00    BCC *+2
90 00    BCC *+2
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F6   BEQ *-8</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 27,666: Line 26,224:
|-
|-
|<pre>A0 15    LDY #21
|<pre>A0 15    LDY #21
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 15    LDX #21
|<pre>A2 15    LDX #21
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 27,681: Line 26,237:
|<pre>08      PHP
|<pre>08      PHP
A0 1C    LDY #28
A0 1C    LDY #28
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 1C    LDX #28
A2 1C    LDX #28
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 1D    LDA #29
A9 1D    LDA #29
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</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,713: Line 26,266:
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack
F0 FB   BEQ *-3</pre>||Clobbers A, Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
F0 FB   BEQ *-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 27,729: Line 26,280:
A5 00    LDA $00
A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
F0 FB   BEQ *-3</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 27,744: Line 26,294:
|<pre>08      PHP
|<pre>08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
08      PHP
08      PHP
28      PLP
28      PLP
10 xx   BPL @A-1
10 F9   BPL *-5
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 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
08      PHP
08      PHP
28      PLP
28      PLP
10 xx   BPL @A-1
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 27,768: Line 26,316:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA</pre>||Clobbers S, Z&N, and C; requires @rts12; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, and C; requires @rts12; and writes in stack
|-
|-
Line 27,780: Line 26,327:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack
|-
|-
Line 27,788: Line 26,334:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
@A:
2A      ROL A ;first loop only
2A      ROL A ;first loop only
20 xx xx JSR @rts14
20 xx xx JSR @rts14
90 xx   BCC @A-1
90 F9   BCC *-5
68      PLA
68      PLA
28      PLP</pre>||Requires @rts14; and writes in stack
28      PLP</pre>||Requires @rts14; and writes in stack
Line 27,801: Line 26,346:
48      PHA
48      PHA
A2 E8    LDX #232 ;hides 'INX'
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
D0 FD    BNE *-1
D0 xx    BNE @X
68      PLA
68      PLA
AA      TAX
AA      TAX
Line 27,812: Line 26,356:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
@A:
2A      ROL A ;first loop only
2A      ROL A ;first loop only
08      PHP
08      PHP
Line 27,818: Line 26,361:
08      PHP
08      PHP
28      PLP
28      PLP
90 xx   BCC @A-1
90 F8   BCC *-6
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 27,824: Line 26,367:
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 27,831: Line 26,373:
90 00    BCC *+2
90 00    BCC *+2
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and requires @zptemp
F0 F6   BEQ *-8</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 27,838: Line 26,380:
A5 00    LDA $00
A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 27,845: Line 26,386:
90 00    BCC *+2
90 00    BCC *+2
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F6   BEQ *-8</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 27,861: Line 26,402:
|<pre>48      PHA
|<pre>48      PHA
A2 1D    LDX #29
A2 1D    LDX #29
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</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
|<pre>48      PHA
A0 1D    LDY #29
A0 1D    LDY #29
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</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
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 27,875: Line 26,414:
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
A2 1D    LDX #29
A2 1D    LDX #29
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
A0 1D    LDY #29
A0 1D    LDY #29
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 27,900: Line 26,437:
68      PLA
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
F0 FB   BEQ *-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 27,908: Line 26,444:
|<pre>08      PHP
|<pre>08      PHP
A2 98    LDX #152 ;hides 'TYA'
A2 98    LDX #152 ;hides 'TYA'
@X = * - 1
EA      NOP
EA      NOP
CA      DEX
CA      DEX
CA      DEX
CA      DEX
30 xx   BMI @X
30 FA   BMI *-4
28      PLP</pre>||Clobbers A, and X; and writes in stack
28      PLP</pre>||Clobbers A, and X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 98    LDY #152 ;hides 'TYA'
A0 98    LDY #152 ;hides 'TYA'
@Y = * - 1
EA      NOP
EA      NOP
88      DEY
88      DEY
88      DEY
88      DEY
30 xx   BMI @Y
30 FA   BMI *-4
28      PLP</pre>||Clobbers A, and Y; and writes in stack
28      PLP</pre>||Clobbers A, and Y; and writes in stack
|-
|-
Line 27,928: Line 26,462:
EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
F0 FB   BEQ *-3</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|<pre>48      PHA
48      PHA
08      PHP
A2 1B    LDX #27
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 27,945: Line 26,469:
08      PHP
08      PHP
A0 1B    LDY #27
A0 1B    LDY #27
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
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>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>48      PHA
@A:
48      PHA
48      PHA
20 xx xx JSR @rts15
08      PHP
18       CLC
A2 1B    LDX #27
B0 xx   BCS @A-1</pre>||Clobbers A, S, Z&N, and C; requires @rts15; and writes in stack
CA       DEX
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 27,961: Line 26,485:
38      SEC
38      SEC
A9 1C    LDA #28
A9 1C    LDA #28
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, S, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
|<pre>08      PHP
A2 1A    LDX #26 ;hides 'NOP'
EA      NOP
CA      DEX
CA      DEX
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 1A    LDY #26 ;hides 'NOP'
A0 1A    LDY #26 ;hides 'NOP'
@Y = * - 1
EA      NOP
EA      NOP
88      DEY
88      DEY
88      DEY
88      DEY
D0 xx   BNE @Y
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>08      PHP
A2 1A    LDX #26 ;hides 'NOP'
@X = * - 1
EA      NOP
CA      DEX
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 27,996: Line 26,517:
48      PHA
48      PHA
A2 1B    LDX #27
A2 1B    LDX #27
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
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
Line 28,006: Line 26,526:
EA      NOP
EA      NOP
08      PHP
08      PHP
A2 1B    LDX #27
A0 1B    LDY #27
@X:
88       DEY
CA       DEX
D0 FB   BNE *-3
D0 xx   BNE @X
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 28,016: Line 26,535:
EA      NOP
EA      NOP
08      PHP
08      PHP
A0 1B    LDY #27
A2 1B    LDX #27
@Y:
CA       DEX
88       DEY
D0 FB   BNE *-3
D0 xx   BNE @Y
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
38      SEC
38      SEC
A9 12    LDA #18
A9 12    LDA #18
@A:
24 00    BIT $00
24 00    BIT $00
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F7   BNE *-7</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 28,035: Line 26,552:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA
68      PLA
28      PLP</pre>||Requires @rts12; and writes in stack
28      PLP</pre>||Requires @rts12; and writes in stack
Line 28,045: Line 26,561:
48      PHA
48      PHA
A2 1A    LDX #26
A2 1A    LDX #26
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
68      PLA
68      PLA
AA      TAX
AA      TAX
Line 28,057: Line 26,572:
38      SEC
38      SEC
A9 1B    LDA #27
A9 1B    LDA #27
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 28,069: Line 26,583:
38      SEC
38      SEC
A9 1A    LDA #26
A9 1A    LDA #26
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
!colspan="2"|13 bytes
@A:
|-
|<pre>EA      NOP
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
36 00    ROL $00,X
76 00    ROR $00,X
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
90 00   BCC *+2
18      CLC
F0 F6    BEQ *-8</pre>||Clobbers A, S, Z&N, and C
|-
|-
|}
!colspan="2"|14 bytes
 
 
=== 150 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|-
|<pre>A9      LDA #123
|<pre>EA      NOP
EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
EA      NOP
18      CLC
90 00    BCC *+2
18      CLC
F0 F6    BEQ *-8</pre>||Clobbers A, Z&N, and C
|-
|}
 
 
=== 150 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #123
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
|-
Line 28,099: Line 26,629:
|<pre>68      PLA
|<pre>68      PLA
A0 1D    LDY #29
A0 1D    LDY #29
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A2 1D    LDX #29
A2 1D    LDX #29
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 28,113: Line 26,641:
|<pre>EA      NOP
|<pre>EA      NOP
A2 15    LDX #21
A2 15    LDX #21
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A0 15    LDY #21
A0 15    LDY #21
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 28,140: Line 26,666:
08      PHP
08      PHP
A2 1C    LDX #28
A2 1C    LDX #28
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 28,148: Line 26,673:
08      PHP
08      PHP
A0 1C    LDY #28
A0 1C    LDY #28
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 15    LDA #21
A9 15    LDA #21
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F8   BNE *-6</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1
F0 FB   BEQ *-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 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1
F0 FB   BEQ *-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
|-
|-
Line 28,179: Line 26,700:
38      SEC
38      SEC
A9 1C    LDA #28
A9 1C    LDA #28
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 28,187: Line 26,707:
38      SEC
38      SEC
A9 1C    LDA #28
A9 1C    LDA #28
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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 28,203: Line 26,722:
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 28,209: Line 26,727:
28      PLP
28      PLP
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 F8   BEQ *-6
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 28,218: Line 26,736:
38      SEC
38      SEC
A9 13    LDA #19
A9 13    LDA #19
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F8   BNE *-6
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 28,227: Line 26,744:
!colspan="2"|13 bytes
!colspan="2"|13 bytes
|-
|-
|<pre>68      PLA
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
90 00    BCC *+2
90 00    BCC *+2
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F8   BEQ *-6</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 28,247: Line 26,761:
|-
|-
|<pre>A2 1E    LDX #30
|<pre>A2 1E    LDX #30
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 1E    LDY #30
|<pre>A0 1E    LDY #30
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9      LDA #124
|<pre>A9      LDA #124
Line 28,262: Line 26,774:
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires @rts14; and writes in stack
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, and C; requires @rts14; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 28,279: Line 26,790:
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and writes in stack
F0 F9   BEQ *-5</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A2 1C    LDX #28
A2 1C    LDX #28
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
Line 28,297: Line 26,806:
08      PHP
08      PHP
A0 1C    LDY #28
A0 1C    LDY #28
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
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
|-
|-
Line 28,307: Line 26,815:
A6 00    LDX $00
A6 00    LDX $00
A2 1C    LDX #28
A2 1C    LDX #28
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 28,315: Line 26,822:
A4 00    LDY $00
A4 00    LDY $00
A0 1C    LDY #28
A0 1C    LDY #28
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 28,323: Line 26,829:
38      SEC
38      SEC
A9 1D    LDA #29
A9 1D    LDA #29
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</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 28,340: Line 26,845:
48      PHA
48      PHA
A2 1B    LDX #27
A2 1B    LDX #27
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
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
Line 28,353: Line 26,857:
48      PHA
48      PHA
A2 1B    LDX #27
A2 1B    LDX #27
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
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>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 28,368: Line 26,870:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F6   BEQ *-8</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 28,375: Line 26,877:
38      SEC
38      SEC
A9 1B    LDA #27
A9 1B    LDA #27
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
Line 28,385: Line 26,886:
38      SEC
38      SEC
A9 1B    LDA #27
A9 1B    LDA #27
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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
|-
|-
Line 28,396: Line 26,896:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA
68      PLA
28      PLP</pre>||Requires @rts12; and writes in stack
28      PLP</pre>||Requires @rts12; and writes in stack
Line 28,407: Line 26,906:
48      PHA
48      PHA
A2 1A    LDX #26
A2 1A    LDX #26
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
68      PLA
68      PLA
AA      TAX
AA      TAX
Line 28,420: Line 26,918:
38      SEC
38      SEC
A9 1B    LDA #27
A9 1B    LDA #27
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 28,433: Line 26,930:
38      SEC
38      SEC
A9 1A    LDA #26
A9 1A    LDA #26
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 28,454: Line 26,950:
48      PHA
48      PHA
A2 1D    LDX #29
A2 1D    LDX #29
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</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
|<pre>48      PHA
48      PHA
48      PHA
A0 1D    LDY #29
A0 1D    LDY #29
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</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
|<pre>EA      NOP
68      PLA
68      PLA
A0 1D    LDY #29
A0 1D    LDY #29
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68      PLA
68      PLA
A2 1D    LDX #29
A2 1D    LDX #29
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 28,494: Line 26,986:
EA      NOP
EA      NOP
A2 15    LDX #21
A2 15    LDX #21
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A0 15    LDY #21
A0 15    LDY #21
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
38      SEC
38      SEC
A9 1D    LDA #29
A9 1D    LDA #29
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, S, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 28,519: Line 27,008:
48      PHA
48      PHA
A2 1C    LDX #28
A2 1C    LDX #28
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
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
Line 28,527: Line 27,015:
|<pre>08      PHP
|<pre>08      PHP
A2 10    LDX #16
A2 10    LDX #16
@X:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 F9   BNE *-5
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 10    LDY #16
A0 10    LDY #16
@Y:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y
D0 F9   BNE *-5
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 28,546: Line 27,032:
38      SEC
38      SEC
A9 15    LDA #21
A9 15    LDA #21
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F8   BNE *-6</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1
F0 FB   BEQ *-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
|-
|-
Line 28,562: Line 27,046:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1
F0 FB   BEQ *-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
|-
|-
Line 28,580: Line 27,063:
38      SEC
38      SEC
A9 1C    LDA #28
A9 1C    LDA #28
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 28,589: Line 27,071:
38      SEC
38      SEC
A9 1C    LDA #28
A9 1C    LDA #28
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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 28,600: Line 27,081:
38      SEC
38      SEC
A9 1B    LDA #27
A9 1B    LDA #27
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|14 bytes
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>EA      NOP
@A:
A9 0A    LDA #$0A ;hides 'ASL A'
F0 xx   BEQ @A-1
F0 FD   BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
36 00    ROL $00,X
18      CLC
76 00    ROR $00,X
90 00    BCC *+2
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
F0 F8   BEQ *-6</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 28,626: Line 27,106:
|-
|-
|<pre>A0 EA    LDY #234 ;hides 'NOP'
|<pre>A0 EA    LDY #234 ;hides 'NOP'
@Y = * - 1
C8      INY
C8      INY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FC   BNE *-2</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 EA    LDX #234 ;hides 'NOP'
|<pre>A2 EA    LDX #234 ;hides 'NOP'
@X = * - 1
E8      INX
E8      INX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FC   BNE *-2</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #126
|<pre>A9      LDA #126
Line 28,639: Line 27,117:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>08      PHP
A2 1D    LDX #29
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 1D    LDY #29
A0 1D    LDY #29
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
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 1D    LDX #29
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 1E    LDA #30
A9 1E    LDA #30
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</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 28,674: Line 27,149:
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires @rts14; and writes in stack
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, and C; requires @rts14; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 28,682: Line 27,156:
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and writes in stack
F0 F9   BEQ *-5</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1
F0 FB   BEQ *-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
|-
|-
Line 28,700: Line 27,172:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1
F0 FB   BEQ *-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
|-
|-
Line 28,717: Line 27,188:
A5 00    LDA $00
A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1
F0 FB   BEQ *-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
|-
|-
Line 28,725: Line 27,195:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1
F0 FB   BEQ *-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
|-
|-
Line 28,734: Line 27,203:
38      SEC
38      SEC
A9 1C    LDA #28
A9 1C    LDA #28
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
Line 28,743: Line 27,211:
38      SEC
38      SEC
A9 1C    LDA #28
A9 1C    LDA #28
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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
|-
|-
Line 28,754: Line 27,221:
38      SEC
38      SEC
A9 1C    LDA #28
A9 1C    LDA #28
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 28,763: Line 27,229:
38      SEC
38      SEC
A9 1C    LDA #28
A9 1C    LDA #28
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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 28,772: Line 27,237:
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 28,780: Line 27,244:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F6   BEQ *-8</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 28,791: Line 27,254:
28      PLP
28      PLP
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 F8   BEQ *-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
|-
|-
Line 28,800: Line 27,263:
38      SEC
38      SEC
A9 11    LDA #17
A9 11    LDA #17
@A:
24 00    BIT $00
24 00    BIT $00
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F7   BNE *-7
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 28,821: Line 27,283:
|<pre>48      PHA
|<pre>48      PHA
A0 1E    LDY #30
A0 1E    LDY #30
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</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
|<pre>48      PHA
A2 1E    LDX #30
A2 1E    LDX #30
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FB   BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 11    LDY #17
|<pre>A0 11    LDY #17
@Y:
68      PLA
68      PLA
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 FA   BNE *-4</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>A2 11    LDX #17
|<pre>A2 11    LDX #17
@X:
68      PLA
68      PLA
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 FA   BNE *-4</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 28,847: Line 27,305:
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
A2 1E    LDX #30
A2 1E    LDX #30
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
A0 1E    LDY #30
A0 1E    LDY #30
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 28,870: Line 27,326:
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
30 xx   BMI @A-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
30 F9   BMI *-5</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; requires @rts14; and writes in stack
F0 FA   BEQ *-4</pre>||Clobbers A, S, Z&N, and C; requires @rts14; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 28,885: Line 27,339:
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires @rts14; and writes in stack
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, and C; requires @rts14; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 28,893: Line 27,346:
08      PHP
08      PHP
A0 1C    LDY #28
A0 1C    LDY #28
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
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
|-
|-
Line 28,902: Line 27,354:
08      PHP
08      PHP
A2 1C    LDX #28
A2 1C    LDX #28
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
F0 F9   BEQ *-5</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 28,920: Line 27,370:
38      SEC
38      SEC
A9 1D    LDA #29
A9 1D    LDA #29
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, S, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
|<pre>68      PLA
|<pre>68      PLA
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1
F0 FB   BEQ *-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
|-
|-
Line 28,945: Line 27,393:
48      PHA
48      PHA
A2 1C    LDX #28
A2 1C    LDX #28
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
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
Line 28,954: Line 27,401:
08      PHP
08      PHP
A0 10    LDY #16
A0 10    LDY #16
@Y:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y
D0 F9   BNE *-5
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 28,964: Line 27,410:
08      PHP
08      PHP
A2 10    LDX #16
A2 10    LDX #16
@X:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 F9   BNE *-5
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 28,975: Line 27,420:
38      SEC
38      SEC
A9 15    LDA #21
A9 15    LDA #21
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F8   BNE *-6</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 28,984: Line 27,428:
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1
F0 FB   BEQ *-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
|-
|-
Line 28,993: Line 27,436:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1
F0 FB   BEQ *-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
|-
|-
Line 29,004: Line 27,446:
48      PHA
48      PHA
A2 1B    LDX #27
A2 1B    LDX #27
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
68      PLA
68      PLA
AA      TAX
AA      TAX
Line 29,014: Line 27,455:
38      SEC
38      SEC
A9 12    LDA #18
A9 12    LDA #18
@A:
24 00    BIT $00
24 00    BIT $00
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F7   BNE *-7
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 29,027: Line 27,467:
38      SEC
38      SEC
A9 1B    LDA #27
A9 1B    LDA #27
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 29,037: Line 27,476:
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 29,045: Line 27,483:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F6   BEQ *-8</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 29,060: Line 27,498:
|-
|-
|<pre>A0 16    LDY #22
|<pre>A0 16    LDY #22
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 16    LDX #22
|<pre>A2 16    LDX #22
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, C, and V
F0 FB   BEQ *-3</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 29,090: Line 27,525:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>08      PHP
A2 15    LDX #21
EA      NOP
CA      DEX
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 15    LDY #21
A0 15    LDY #21
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FA   BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 15    LDX #21
@X:
EA      NOP
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; requires @rts14; and writes in stack
F0 FA   BEQ *-4</pre>||Clobbers A, S, Z&N, and C; requires @rts14; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 29,118: Line 27,550:
38      SEC
38      SEC
A9 1D    LDA #29
A9 1D    LDA #29
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 29,126: Line 27,557:
38      SEC
38      SEC
A9 1D    LDA #29
A9 1D    LDA #29
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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,143: Line 27,573:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack
|-
|-
Line 29,152: Line 27,581:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1
F0 FB   BEQ *-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
|-
|-
Line 29,163: Line 27,591:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1
F0 FB   BEQ *-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
|-
|-
Line 29,173: Line 27,600:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
08      PHP
08      PHP
28      PLP
28      PLP
10 xx   BPL @A-1
10 F9   BPL *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
E6 xx    INC @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
18      CLC
B0 xx    BCS @A-1</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 29,201: Line 27,617:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C
F0 F6   BEQ *-8</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>EA      NOP
@A:
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
C5 00    CMP $00
36 00    ROL $00,X
76 00    ROR $00,X
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
F0 F6   BEQ *-8</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 29,223: Line 27,641:
|-
|-
|<pre>A0 1F    LDY #31
|<pre>A0 1F    LDY #31
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 1F    LDX #31
|<pre>A2 1F    LDX #31
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9 69    LDA #$69 ;hides 'ADC #$38'
|<pre>A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, C, and V
F0 FC   BEQ *-2</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 29,253: Line 27,668:
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
F0 FB   BEQ *-3</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 1D    LDX #29
A2 1D    LDX #29
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
Line 29,268: Line 27,681:
08      PHP
08      PHP
A0 1D    LDY #29
A0 1D    LDY #29
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
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
|-
|-
Line 29,278: Line 27,690:
A6 00    LDX $00
A6 00    LDX $00
A2 1D    LDX #29
A2 1D    LDX #29
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 29,286: Line 27,697:
A4 00    LDY $00
A4 00    LDY $00
A0 1D    LDY #29
A0 1D    LDY #29
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires @zptemp, and @rts14; and writes in stack
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, and C; requires @zptemp, and @rts14; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; requires @rts14; and writes in stack
F0 FA   BEQ *-4</pre>||Clobbers A, S, Z&N, and C; requires @rts14; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 29,316: Line 27,724:
A5 00    LDA $00
A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires @rts14; and writes in stack
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, and C; requires @rts14; and writes in stack
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires @zptemp; and writes in stack
F0 F9   BEQ *-5</pre>||Clobbers A, Z&N, and C; requires @zptemp; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 29,333: Line 27,739:
48      PHA
48      PHA
A2 1C    LDX #28
A2 1C    LDX #28
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
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
Line 29,343: Line 27,748:
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1
F0 FB   BEQ *-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
|-
|-
Line 29,352: Line 27,756:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1
F0 FB   BEQ *-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
|-
|-
Line 29,362: Line 27,765:
48      PHA
48      PHA
A2 10    LDX #16
A2 10    LDX #16
@X:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 F9   BNE *-5
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
Line 29,375: Line 27,777:
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1
F0 FB   BEQ *-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
|-
|-
Line 29,385: Line 27,786:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1
F0 FB   BEQ *-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
|-
|-
Line 29,395: Line 27,795:
38      SEC
38      SEC
A9 1C    LDA #28
A9 1C    LDA #28
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
Line 29,405: Line 27,804:
38      SEC
38      SEC
A9 1C    LDA #28
A9 1C    LDA #28
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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
|-
|-
Line 29,417: Line 27,815:
48      PHA
48      PHA
A2 1B    LDX #27
A2 1B    LDX #27
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
68      PLA
68      PLA
AA      TAX
AA      TAX
Line 29,428: Line 27,825:
38      SEC
38      SEC
A9 12    LDA #18
A9 12    LDA #18
@A:
24 00    BIT $00
24 00    BIT $00
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F7   BNE *-7
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 29,442: Line 27,838:
38      SEC
38      SEC
A9 1B    LDA #27
A9 1B    LDA #27
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 29,450: Line 27,845:
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 29,458: Line 27,852:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and requires @zptemp
F0 F6   BEQ *-8</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
|-
|-
|<pre>A9 0A   LDA #$0A ;hides 'ASL A'
|<pre>EA      NOP
@A:
A5 00   LDA $00
18      CLC
F0 xx    BEQ @A-1
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
26 00    ROL $00
EA      NOP
66 00    ROR $00
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
F0 F6   BEQ *-8</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 29,487: Line 27,882:
|<pre>68      PLA
|<pre>68      PLA
A2 EA    LDX #234 ;hides 'NOP'
A2 EA    LDX #234 ;hides 'NOP'
@X = * - 1
E8      INX
E8      INX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 FC   BNE *-2</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A0 EA    LDY #234 ;hides 'NOP'
A0 EA    LDY #234 ;hides 'NOP'
@Y = * - 1
C8      INY
C8      INY
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 FC   BNE *-2</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 29,501: Line 27,894:
|<pre>EA      NOP
|<pre>EA      NOP
A0 16    LDY #22
A0 16    LDY #22
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A2 16    LDX #22
A2 16    LDX #22
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, C, and V
F0 FB   BEQ *-3</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 29,535: Line 27,925:
48      PHA
48      PHA
A2 1D    LDX #29
A2 1D    LDX #29
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
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
Line 29,544: Line 27,933:
08      PHP
08      PHP
A0 15    LDY #21
A0 15    LDY #21
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FA   BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 29,553: Line 27,941:
08      PHP
08      PHP
A2 15    LDX #21
A2 15    LDX #21
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FA   BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 29,571: Line 27,958:
38      SEC
38      SEC
A9 15    LDA #21
A9 15    LDA #21
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F8   BNE *-6
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 29,580: Line 27,966:
38      SEC
38      SEC
A9 15    LDA #21
A9 15    LDA #21
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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
|-
|-
Line 29,589: Line 27,974:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1
F0 FB   BEQ *-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 29,601: Line 27,985:
38      SEC
38      SEC
A9 1C    LDA #28
A9 1C    LDA #28
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
|-
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
E6 xx    INC @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
18      CLC
B0 xx    BCS @A-1</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68      PLA
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 29,630: Line 28,002:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C
F0 F6   BEQ *-8</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
C5 00    CMP $00
EA      NOP
36 00    ROL $00,X
EA      NOP
76 00    ROR $00,X
EA      NOP
EA      NOP
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
F0 F6   BEQ *-8</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 29,659: Line 28,033:
|<pre>EA      NOP
|<pre>EA      NOP
A2 1F    LDX #31
A2 1F    LDX #31
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A0 1F    LDY #31
A0 1F    LDY #31
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, C, and V
F0 FC   BEQ *-2</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 29,679: Line 28,050:
|<pre>08      PHP
|<pre>08      PHP
A2 1E    LDX #30
A2 1E    LDX #30
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
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
|<pre>08      PHP
A0 1E    LDY #30
A0 1E    LDY #30
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 29,705: Line 28,074:
|<pre>08      PHP
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
F0 xx   BEQ @A-1
F0 FA   BEQ *-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 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @rts14; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts14; and writes in stack
|-
|-
Line 29,720: Line 28,087:
00 00    BRK 0
00 00    BRK 0
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
F0 FB   BEQ *-3</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 29,735: Line 28,101:
|<pre>08      PHP
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1
F0 F9   BEQ *-5
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 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1
F0 F9   BEQ *-5
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
Line 29,761: Line 28,125:
48      PHA
48      PHA
A2 1B    LDX #27
A2 1B    LDX #27
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
68      PLA
68      PLA
AA      TAX
AA      TAX
68      PLA</pre>||Clobbers Z&N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
EA      NOP
F0 F8   BEQ *-6</pre>||Clobbers A, Z&N, and C
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 29,787: Line 28,147:
38      SEC
38      SEC
A9 1B    LDA #27
A9 1B    LDA #27
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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
Line 29,802: Line 28,161:
38      SEC
38      SEC
A9 1B    LDA #27
A9 1B    LDA #27
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 29,822: Line 28,180:
|<pre>48      PHA
|<pre>48      PHA
A0 1F    LDY #31
A0 1F    LDY #31
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</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
|<pre>48      PHA
A2 1F    LDX #31
A2 1F    LDX #31
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</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
|<pre>48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
F0 FC   BEQ *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 29,842: Line 28,197:
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
A2 1F    LDX #31
A2 1F    LDX #31
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
A0 1F    LDY #31
A0 1F    LDY #31
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts15
20 xx xx JSR @rts15
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires @rts15; and writes in stack
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, and C; requires @rts15; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, C, and V
F0 FC   BEQ *-2</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 29,882: Line 28,232:
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
20 xx xx JSR @rts12
20 xx xx JSR @rts12
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack
F0 F9   BEQ *-5</pre>||Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
85 xx    STA @zptemp
85 xx    STA @zptemp
20 xx xx JSR @rts12
20 xx xx JSR @rts12
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires @zptemp, and @rts12; and writes in stack
F0 F8   BEQ *-6</pre>||Clobbers A, Z&N, and C; requires @zptemp, and @rts12; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 29,899: Line 28,247:
08      PHP
08      PHP
A0 1D    LDY #29
A0 1D    LDY #29
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
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
|-
|-
Line 29,908: Line 28,255:
08      PHP
08      PHP
A2 1D    LDX #29
A2 1D    LDX #29
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
48      PHA
48      PHA
Line 29,920: Line 28,265:
28      PLP
28      PLP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; and writes in stack
F0 F8   BEQ *-6</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
04 00    NOP $00
20 xx xx JSR @rts12
20 xx xx JSR @rts12
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires @rts12, and support for unofficial opcodes; and writes in stack
F0 F8   BEQ *-6</pre>||Clobbers A, Z&N, and C; requires @rts12, and support for unofficial opcodes; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 29,940: Line 28,284:
48      PHA
48      PHA
A2 15    LDX #21
A2 15    LDX #21
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FA   BNE *-4
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
Line 29,951: Line 28,294:
08      PHP
08      PHP
A2 15    LDX #21
A2 15    LDX #21
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FA   BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 29,961: Line 28,303:
08      PHP
08      PHP
A0 15    LDY #21
A0 15    LDY #21
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FA   BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 29,973: Line 28,314:
48      PHA
48      PHA
A2 1C    LDX #28
A2 1C    LDX #28
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
68      PLA
68      PLA
AA      TAX
AA      TAX
Line 29,984: Line 28,324:
38      SEC
38      SEC
A9 15    LDA #21
A9 15    LDA #21
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F8   BNE *-6
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 29,994: Line 28,333:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1
F0 FB   BEQ *-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 30,007: Line 28,345:
38      SEC
38      SEC
A9 1C    LDA #28
A9 1C    LDA #28
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 30,022: Line 28,358:
90 00    BCC *+2
90 00    BCC *+2
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F5   BEQ *-9</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 30,038: Line 28,374:
|<pre>68      PLA
|<pre>68      PLA
A0 1F    LDY #31
A0 1F    LDY #31
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A2 1F    LDX #31
A2 1F    LDX #31
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, C, and V
F0 FC   BEQ *-2</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>08      PHP
A0 EA    LDY #234 ;hides 'NOP'
C8      INY
D0 FC    BNE *-2
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 EA    LDX #234 ;hides 'NOP'
A2 EA    LDX #234 ;hides 'NOP'
@X = * - 1
E8      INX
E8      INX
D0 xx   BNE @X
D0 FC   BNE *-2
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A0 EA    LDY #234 ;hides 'NOP'
@Y = * - 1
C8      INY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A0 1F    LDY #31
A0 1F    LDY #31
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A2 1F    LDX #31
A2 1F    LDX #31
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, C, and V
F0 FC   BEQ *-2</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 30,106: Line 28,434:
38      SEC
38      SEC
A9 1E    LDA #30
A9 1E    LDA #30
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 30,114: Line 28,441:
38      SEC
38      SEC
A9 1E    LDA #30
A9 1E    LDA #30
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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 30,131: Line 28,457:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @rts14; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts14; and writes in stack
|-
|-
Line 30,141: Line 28,466:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1
F0 F9   BEQ *-5
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
Line 30,153: Line 28,477:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1
F0 FB   BEQ *-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 30,165: Line 28,488:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1
F0 FB   BEQ *-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 30,176: Line 28,498:
38      SEC
38      SEC
A9 1C    LDA #28
A9 1C    LDA #28
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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
Line 30,189: Line 28,510:
38      SEC
38      SEC
A9 1C    LDA #28
A9 1C    LDA #28
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 30,198: Line 28,518:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68      PLA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
F0 FD    BEQ *-1
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 30,209: Line 28,526:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F8   BEQ *-6</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 30,219: Line 28,536:
|-
|-
|<pre>A0 20    LDY #32
|<pre>A0 20    LDY #32
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 20    LDX #32
|<pre>A2 20    LDX #32
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9 EB    LDA #$EB ;hides 'SBC #$18'
|<pre>A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
F0 FC   BEQ *-2</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>A9      LDA #134
|<pre>A9      LDA #134
Line 30,240: Line 28,554:
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
F0 FC   BEQ *-2</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
F0 FC   BEQ *-2</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 30,265: Line 28,577:
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts15
20 xx xx JSR @rts15
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires @rts15; and writes in stack
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, and C; requires @rts15; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A5 00    LDA $00
A5 00    LDA $00
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, C, and V
F0 FC   BEQ *-2</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|<pre>48      PHA
08      PHP
A0 1E    LDY #30
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A2 1E    LDX #30
A2 1E    LDX #30
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|<pre>48      PHA
08      PHP
A0 1E    LDY #30
@Y:
88      DEY
D0 xx    BNE @Y
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 30,304: Line 28,611:
A6 00    LDX $00
A6 00    LDX $00
A2 1E    LDX #30
A2 1E    LDX #30
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 30,312: Line 28,618:
A4 00    LDY $00
A4 00    LDY $00
A0 1E    LDY #30
A0 1E    LDY #30
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
20 xx xx JSR @rts12
20 xx xx JSR @rts12
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack
F0 F9   BEQ *-5</pre>||Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 30,335: Line 28,639:
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
85 xx    STA @zptemp
85 xx    STA @zptemp
20 xx xx JSR @rts12
20 xx xx JSR @rts12
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires @zptemp, and @rts12; and writes in stack
F0 F8   BEQ *-6</pre>||Clobbers A, Z&N, and C; requires @zptemp, and @rts12; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
30 xx   BMI @A-1
30 F9   BMI *-5
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 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
30 xx   BMI @A-1
30 F9   BMI *-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
|-
|-
Line 30,360: Line 28,661:
48      PHA
48      PHA
A2 1D    LDX #29
A2 1D    LDX #29
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
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
Line 30,369: Line 28,669:
08      PHP
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
28      PLP</pre>||Clobbers A, and S; requires @rts14; and writes in stack
28      PLP</pre>||Clobbers A, and S; requires @rts14; and writes in stack
|-
|-
Line 30,377: Line 28,676:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
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>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
04 00    NOP $00
20 xx xx JSR @rts12
20 xx xx JSR @rts12
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires @rts12, and support for unofficial opcodes; and writes in stack
F0 F8   BEQ *-6</pre>||Clobbers A, Z&N, and C; requires @rts12, and support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 30,395: Line 28,692:
48      PHA
48      PHA
A2 15    LDX #21
A2 15    LDX #21
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FA   BNE *-4
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
Line 30,405: Line 28,701:
A5 00    LDA $00
A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
28      PLP</pre>||Clobbers A; requires @rts14; and writes in stack
28      PLP</pre>||Clobbers A; requires @rts14; and writes in stack
|-
|-
Line 30,413: Line 28,708:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @rts14; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts14; and writes in stack
|-
|-
Line 30,423: Line 28,717:
38      SEC
38      SEC
A9 1D    LDA #29
A9 1D    LDA #29
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
Line 30,431: Line 28,724:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1
F0 F9   BEQ *-5
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
|-
|-
Line 30,446: Line 28,738:
48      PHA
48      PHA
A2 1C    LDX #28
A2 1C    LDX #28
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
68      PLA
68      PLA
AA      TAX
AA      TAX
Line 30,458: Line 28,749:
38      SEC
38      SEC
A9 15    LDA #21
A9 15    LDA #21
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F8   BNE *-6
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 30,469: Line 28,759:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1
F0 FB   BEQ *-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 30,483: Line 28,772:
38      SEC
38      SEC
A9 1C    LDA #28
A9 1C    LDA #28
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>EA      NOP
@A:
A9 0A    LDA #$0A ;hides 'ASL A'
26 00    ROL $00
EA      NOP
66 00    ROR $00
EA      NOP
26 00    ROL $00
EA      NOP
66 00    ROR $00
EA      NOP
18      CLC
90 00    BCC *+2
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
F0 F5   BEQ *-9</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 30,511: Line 28,801:
|-
|-
|<pre>A2 17    LDX #23
|<pre>A2 17    LDX #23
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 17    LDY #23
|<pre>A0 17    LDY #23
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
90 xx   BCC @A-1</pre>||Clobbers A, Z&N, C, and V
90 FB   BCC *-3</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 30,544: Line 28,831:
|<pre>08      PHP
|<pre>08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 16    LDY #22
A0 16    LDY #22
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FA   BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 16    LDX #22
A2 16    LDX #22
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FA   BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
Line 30,589: Line 28,872:
38      SEC
38      SEC
A9 1D    LDA #29
A9 1D    LDA #29
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 30,599: Line 28,881:
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 30,607: Line 28,888:
90 00    BCC *+2
90 00    BCC *+2
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F5   BEQ *-9</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 30,623: Line 28,904:
|<pre>EA      NOP
|<pre>EA      NOP
A0 20    LDY #32
A0 20    LDY #32
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A2 20    LDX #32
A2 20    LDX #32
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
F0 FC   BEQ *-2</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 30,643: Line 28,921:
|<pre>08      PHP
|<pre>08      PHP
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-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 1F    LDX #31
A2 1F    LDX #31
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
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
|<pre>08      PHP
A0 1F    LDY #31
A0 1F    LDY #31
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
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>38      SEC
|<pre>38      SEC
A9 20    LDA #32
A9 20    LDA #32
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 30,689: Line 28,962:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1
F0 FB   BEQ *-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
|-
|-
Line 30,699: Line 28,971:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp, and @rts14; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp, and @rts14; and writes in stack
|-
|-
Line 30,708: Line 28,979:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
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
|-
|-
Line 30,719: Line 28,989:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @rts14; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts14; and writes in stack
|-
|-
Line 30,727: Line 28,996:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1
F0 F9   BEQ *-5
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
|-
|-
Line 30,739: Line 29,007:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1
F0 F9   BEQ *-5
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
|-
|-
Line 30,752: Line 29,019:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1
F0 FB   BEQ *-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 30,764: Line 29,030:
48      PHA
48      PHA
A2 10    LDX #16
A2 10    LDX #16
@X:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 F9   BNE *-5
68      PLA
68      PLA
AA      TAX
AA      TAX
Line 30,779: Line 29,044:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1
F0 FB   BEQ *-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 30,791: Line 29,055:
38      SEC
38      SEC
A9 1C    LDA #28
A9 1C    LDA #28
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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
Line 30,799: Line 29,062:
|<pre>68      PLA
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 30,807: Line 29,069:
90 00    BCC *+2
90 00    BCC *+2
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C
F0 F5   BEQ *-9</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 30,818: Line 29,080:
38      SEC
38      SEC
A9 1C    LDA #28
A9 1C    LDA #28
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-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
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
26 00    ROL $00
EA      NOP
66 00    ROR $00
EA      NOP
26 00    ROL $00
EA      NOP
66 00    ROR $00
18      CLC
90 00    BCC *+2
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
F0 F5   BEQ *-9</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 30,848: Line 29,111:
|<pre>48      PHA
|<pre>48      PHA
A0 20    LDY #32
A0 20    LDY #32
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</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
|<pre>48      PHA
A2 20    LDX #32
A2 20    LDX #32
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</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
|<pre>48      PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
F0 FC   BEQ *-2</pre>||Clobbers A, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 30,868: Line 29,128:
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
A2 20    LDX #32
A2 20    LDX #32
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
A0 20    LDY #32
A0 20    LDY #32
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
90 xx   BCC @A-1</pre>||Clobbers A, Z&N, C, and V
90 FB   BCC *-3</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 30,900: Line 29,157:
08      PHP
08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 0D    LDY #13
A0 0D    LDY #13
@Y:
08      PHP
08      PHP
28      PLP
28      PLP
88      DEY
88      DEY
D0 xx   BNE @Y
D0 F9   BNE *-5
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 0D    LDX #13
A2 0D    LDX #13
@X:
08      PHP
08      PHP
28      PLP
28      PLP
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 F9   BNE *-5
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 30,927: Line 29,181:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
Line 30,946: Line 29,199:
48      PHA
48      PHA
A2 1D    LDX #29
A2 1D    LDX #29
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
68      PLA
68      PLA
AA      TAX
AA      TAX
Line 30,959: Line 29,211:
38      SEC
38      SEC
A9 15    LDA #21
A9 15    LDA #21
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F8   BNE *-6
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 30,968: Line 29,219:
!colspan="2"|14 bytes
!colspan="2"|14 bytes
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>E6 xx    INC @zptemp
@A:
A9 0A    LDA #$0A ;hides 'ASL A'
F0 xx   BEQ @A-1
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
90 00    BCC *+2
18      CLC
F0 F5   BEQ *-9</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
!colspan="2"|15 bytes
|-
|<pre>EA      NOP
A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
36 00    ROL $00,X
EA      NOP
76 00    ROR $00,X
EA      NOP
EA      NOP
18      CLC
90 00    BCC *+2
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
F0 F5   BEQ *-9</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 30,993: Line 29,258:
|<pre>68      PLA
|<pre>68      PLA
A0 20    LDY #32
A0 20    LDY #32
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A2 20    LDX #32
A2 20    LDX #32
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes
F0 FC   BEQ *-2</pre>||Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 31,014: Line 29,276:
EA      NOP
EA      NOP
A0 20    LDY #32
A0 20    LDY #32
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A2 20    LDX #32
A2 20    LDX #32
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
90 xx   BCC @A-1</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
90 FB   BCC *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
F0 FC   BEQ *-2</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 31,054: Line 29,312:
08      PHP
08      PHP
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 31,062: Line 29,319:
08      PHP
08      PHP
A0 1F    LDY #31
A0 1F    LDY #31
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 31,070: Line 29,326:
08      PHP
08      PHP
A2 1F    LDX #31
A2 1F    LDX #31
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 31,078: Line 29,333:
48      PHA
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
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 31,086: Line 29,340:
38      SEC
38      SEC
A9 20    LDA #32
A9 20    LDA #32
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 31,104: Line 29,357:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA
68      PLA
28      PLP</pre>||Requires @rts14; and writes in stack
28      PLP</pre>||Requires @rts14; and writes in stack
Line 31,114: Line 29,366:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1
F0 FB   BEQ *-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
|-
|-
Line 31,124: Line 29,375:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
08      PHP
08      PHP
28      PLP
28      PLP
F0 xx   BEQ @A-1
F0 F9   BEQ *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 31,135: Line 29,385:
!colspan="2"|14 bytes
!colspan="2"|14 bytes
|-
|-
|<pre>68      PLA
|<pre>EA      NOP
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
26 00    ROL $00
EA      NOP
66 00    ROR $00
EA      NOP
26 00    ROL $00
EA      NOP
66 00    ROR $00
18      CLC
90 00    BCC *+2
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, S, Z&N, and C
F0 F5   BEQ *-9</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|15 bytes
!colspan="2"|15 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
26 00    ROL $00
EA      NOP
66 00    ROR $00
EA      NOP
26 00    ROL $00
EA      NOP
66 00    ROR $00
18      CLC
90 00    BCC *+2
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
F0 F5   BEQ *-9</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 31,166: Line 29,420:
|-
|-
|<pre>A0 21    LDY #33
|<pre>A0 21    LDY #33
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 21    LDX #33
|<pre>A2 21    LDX #33
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #139
|<pre>A9      LDA #139
Line 31,182: Line 29,434:
|<pre>68      PLA
|<pre>68      PLA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
90 xx   BCC @A-1</pre>||Clobbers A, S, Z&N, C, and V
90 FB   BCC *-3</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp, and support for unofficial opcodes
F0 FC   BEQ *-2</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp, and support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 31,208: Line 29,458:
EA      NOP
EA      NOP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
90 xx   BCC @A-1</pre>||Clobbers A, Z&N, C, and V
90 FB   BCC *-3</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
Line 31,224: Line 29,472:
08      PHP
08      PHP
A0 1F    LDY #31
A0 1F    LDY #31
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
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
|-
|-
Line 31,232: Line 29,479:
08      PHP
08      PHP
A2 1F    LDX #31
A2 1F    LDX #31
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
Line 31,240: Line 29,486:
48      PHA
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-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
|-
|-
Line 31,250: Line 29,495:
A5 00    LDA $00
A5 00    LDA $00
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 31,258: Line 29,502:
A6 00    LDX $00
A6 00    LDX $00
A2 1F    LDX #31
A2 1F    LDX #31
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 31,266: Line 29,509:
A4 00    LDY $00
A4 00    LDY $00
A0 1F    LDY #31
A0 1F    LDY #31
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts15
20 xx xx JSR @rts15
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @rts15; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts15; and writes in stack
|-
|-
Line 31,281: Line 29,522:
48      PHA
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
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
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
Line 31,305: Line 29,544:
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
85 xx    STA @zptemp
85 xx    STA @zptemp
20 xx xx JSR @rts12
20 xx xx JSR @rts12
F0 xx   BEQ @A-1
F0 F8   BEQ *-6
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp, and @rts12; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp, and @rts12; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
04 00    NOP $00
20 xx xx JSR @rts12
20 xx xx JSR @rts12
F0 xx   BEQ @A-1
F0 F8   BEQ *-6
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and support for unofficial opcodes; and writes in stack
|-
|-
Line 31,325: Line 29,562:
48      PHA
48      PHA
A2 15    LDX #21
A2 15    LDX #21
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FA   BNE *-4
68      PLA
68      PLA
AA      TAX
AA      TAX
Line 31,340: Line 29,576:
38      SEC
38      SEC
A9 15    LDA #21
A9 15    LDA #21
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F8   BNE *-6
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 31,349: Line 29,584:
!colspan="2"|14 bytes
!colspan="2"|14 bytes
|-
|-
|<pre>68      PLA
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 31,360: Line 29,592:
90 00    BCC *+2
90 00    BCC *+2
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F7   BEQ *-7</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 31,370: Line 29,602:
|-
|-
|<pre>A2 18    LDX #24 ;hides 'CLC'
|<pre>A2 18    LDX #24 ;hides 'CLC'
@X = * - 1
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FC   BNE *-2</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 18    LDY #24 ;hides 'CLC'
|<pre>A0 18    LDY #24 ;hides 'CLC'
@Y = * - 1
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FC   BNE *-2</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9      LDA #140
|<pre>A9      LDA #140
Line 31,385: Line 29,615:
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
F0 FA   BEQ *-4</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68      PLA
68      PLA
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes
F0 FC   BEQ *-2</pre>||Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 31,410: Line 29,638:
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires @rts14; and writes in stack
F0 F9   BEQ *-5</pre>||Clobbers A, Z&N, and C; requires @rts14; and writes in stack
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
90 xx   BCC @A-1</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
90 FB   BCC *-3</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
85 xx    STA @zptemp
85 xx    STA @zptemp
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack
F0 F9   BEQ *-5</pre>||Clobbers A, Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
08      PHP
08      PHP
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
Line 31,439: Line 29,663:
38      SEC
38      SEC
A9 20    LDA #32
A9 20    LDA #32
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</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>EA      NOP
Line 31,447: Line 29,670:
EA      NOP
EA      NOP
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
F0 FC   BEQ *-2</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'
@A:
04 00    NOP $00
04 00    NOP $00
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
F0 F9   BEQ *-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 31,463: Line 29,684:
08      PHP
08      PHP
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 31,472: Line 29,692:
08      PHP
08      PHP
A2 1F    LDX #31
A2 1F    LDX #31
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 31,481: Line 29,700:
08      PHP
08      PHP
A0 1F    LDY #31
A0 1F    LDY #31
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 31,490: Line 29,708:
48      PHA
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
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 31,499: Line 29,716:
38      SEC
38      SEC
A9 20    LDA #32
A9 20    LDA #32
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</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 31,516: Line 29,732:
38      SEC
38      SEC
A9 1E    LDA #30
A9 1E    LDA #30
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 31,525: Line 29,740:
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 31,534: Line 29,748:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F5   BEQ *-9</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 31,547: Line 29,761:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A0 21    LDY #33
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A2 21    LDX #33
A2 21    LDX #33
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
!colspan="2"|7 bytes
A0 21    LDY #33
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
|<pre>08      PHP
A2 20    LDX #32
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 20    LDY #32
A0 20    LDY #32
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
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 20    LDX #32
@X:
CA      DEX
D0 xx    BNE @X
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 21    LDA #33
A9 21    LDA #33
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</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
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
Line 31,611: Line 29,818:
E6 xx    INC @zptemp
E6 xx    INC @zptemp
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
|-
|-
Line 31,619: Line 29,825:
48      PHA
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
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 31,628: Line 29,833:
08      PHP
08      PHP
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
Line 31,637: Line 29,841:
48      PHA
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-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
|-
|-
Line 31,655: Line 29,858:
A5 00    LDA $00
A5 00    LDA $00
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 31,663: Line 29,865:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts15
20 xx xx JSR @rts15
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA</pre>||Clobbers Z&N, and C; requires @rts15; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts15; and writes in stack
|-
|-
Line 31,672: Line 29,873:
48      PHA
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
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 31,680: Line 29,880:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
Line 31,691: Line 29,890:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
85 xx    STA @zptemp
85 xx    STA @zptemp
20 xx xx JSR @rts12
20 xx xx JSR @rts12
F0 xx   BEQ @A-1
F0 F8   BEQ *-6
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp, and @rts12; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp, and @rts12; and writes in stack
|-
|-
Line 31,700: Line 29,898:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
00 00    BRK 0
30 xx   BMI @A-1
30 F9   BMI *-5
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 31,711: Line 29,908:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; requires @rts14; and writes in stack
28      PLP</pre>||Clobbers S; requires @rts14; and writes in stack
Line 31,720: Line 29,916:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
04 00    NOP $00
20 xx xx JSR @rts12
20 xx xx JSR @rts12
F0 xx   BEQ @A-1
F0 F8   BEQ *-6
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts12, and support for unofficial opcodes; and writes in stack
|-
|-
Line 31,733: Line 29,928:
48      PHA
48      PHA
A2 15    LDX #21
A2 15    LDX #21
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FA   BNE *-4
68      PLA
68      PLA
AA      TAX
AA      TAX
Line 31,745: Line 29,939:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA
68      PLA
28      PLP</pre>||Requires @rts14; and writes in stack
28      PLP</pre>||Requires @rts14; and writes in stack
Line 31,757: Line 29,950:
38      SEC
38      SEC
A9 1D    LDA #29
A9 1D    LDA #29
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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
Line 31,771: Line 29,963:
38      SEC
38      SEC
A9 15    LDA #21
A9 15    LDA #21
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F8   BNE *-6
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
!colspan="2"|15 bytes
@A:
|-
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx    BEQ @A-1
90 00    BCC *+2
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
36 00    ROL $00,X
76 00    ROR $00,X
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
F0 F7   BEQ *-7</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 31,802: Line 29,995:
|-
|-
|<pre>A2 18    LDX #24
|<pre>A2 18    LDX #24
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 18    LDY #24
|<pre>A0 18    LDY #24
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 31,817: Line 30,008:
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, C, and V; requires dummy interrupt handler; and writes in stack
F0 FC   BEQ *-2</pre>||Clobbers A, Z&N, C, and V; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
68      PLA
68      PLA
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes
F0 FC   BEQ *-2</pre>||Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 31,842: Line 30,031:
|<pre>08      PHP
|<pre>08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
90 xx   BCC @A-1
90 FB   BCC *-3
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 17    LDY #23
A0 17    LDY #23
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FA   BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 17    LDX #23
A2 17    LDX #23
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FA   BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
90 xx   BCC @A-1
90 FB   BCC *-3
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
Line 31,875: Line 30,060:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
90 xx   BCC @A-1</pre>||Clobbers A, Z&N, C, and V
90 FB   BCC *-3</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 31,894: Line 30,078:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 31,905: Line 30,088:
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 31,914: Line 30,096:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F5   BEQ *-9</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 31,929: Line 30,111:
|-
|-
|<pre>A0 C8    LDY #200 ;hides 'INY'
|<pre>A0 C8    LDY #200 ;hides 'INY'
@Y = * - 1
C8      INY
C8      INY
C8      INY
C8      INY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A2 18    LDX #24 ;hides 'CLC'
A2 18    LDX #24 ;hides 'CLC'
@X = * - 1
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FC   BNE *-2</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A2 21    LDX #33
A2 21    LDX #33
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>A2 5A    LDX #90 ;hides 'NOP'
|<pre>A2 5A    LDX #90 ;hides 'NOP'
@X = * - 1
E8      INX
E8      INX
E8      INX
E8      INX
10 xx   BPL @X</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
10 FB   BPL *-3</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 31,957: Line 30,135:
EA      NOP
EA      NOP
A2 21    LDX #33
A2 21    LDX #33
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 31,976: Line 30,153:
08      PHP
08      PHP
A2 20    LDX #32
A2 20    LDX #32
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 31,984: Line 30,160:
08      PHP
08      PHP
A0 20    LDY #32
A0 20    LDY #32
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 31,992: Line 30,167:
38      SEC
38      SEC
A9 21    LDA #33
A9 21    LDA #33
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
F0 FA   BEQ *-4</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
Line 32,014: Line 30,186:
48      PHA
48      PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
Line 32,024: Line 30,195:
48      PHA
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 32,034: Line 30,204:
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 32,043: Line 30,212:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F5   BEQ *-9</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 32,053: Line 30,222:
|-
|-
|<pre>A0 22    LDY #34
|<pre>A0 22    LDY #34
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 22    LDX #34
|<pre>A2 22    LDX #34
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #144
|<pre>A9      LDA #144
Line 32,081: Line 30,248:
|<pre>38      SEC
|<pre>38      SEC
A9 18    LDA #24
A9 18    LDA #24
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F8   BNE *-6</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A2 20    LDX #32
A2 20    LDX #32
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
Line 32,097: Line 30,262:
08      PHP
08      PHP
A0 20    LDY #32
A0 20    LDY #32
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
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>68      PLA
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
F0 FA   BEQ *-4</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
28      PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
|-
|-
Line 32,120: Line 30,282:
48      PHA
48      PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA</pre>||Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
Line 32,130: Line 30,291:
08      PHP
08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
90 xx   BCC @A-1
90 FB   BCC *-3
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 32,139: Line 30,299:
A6 00    LDX $00
A6 00    LDX $00
A2 20    LDX #32
A2 20    LDX #32
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 32,147: Line 30,306:
A4 00    LDY $00
A4 00    LDY $00
A0 20    LDY #32
A0 20    LDY #32
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 32,155: Line 30,313:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
90 xx   BCC @A-1
90 FB   BCC *-3
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
Line 32,174: Line 30,331:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
F0 xx   BEQ @A-1
F0 FB   BEQ *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 32,185: Line 30,341:
|<pre>68      PLA
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 32,194: Line 30,349:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C
F0 F5   BEQ *-9</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 32,201: Line 30,356:
EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 32,210: Line 30,364:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F5   BEQ *-9</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 32,225: Line 30,379:
|-
|-
|<pre>A2 13    LDX #19
|<pre>A2 13    LDX #19
@X:
68      PLA
68      PLA
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 FA   BNE *-4</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>A0 13    LDY #19
|<pre>A0 13    LDY #19
@Y:
68      PLA
68      PLA
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 FA   BNE *-4</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A0 13    LDY #19
|<pre>A0 13    LDY #19
@Y:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 F9   BNE *-5</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 13    LDX #19
|<pre>A2 13    LDX #19
@X:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 F9   BNE *-5</pre>||Clobbers X, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 32,267: Line 30,417:
38      SEC
38      SEC
A9 21    LDA #33
A9 21    LDA #33
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, S, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
|<pre>68      PLA
|<pre>68      PLA
08      PHP
08      PHP
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
28      PLP</pre>||Clobbers A, S, and Z&N; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A, S, and Z&N; requires support for unofficial opcodes; and writes in stack
|-
|-
Line 32,284: Line 30,432:
48      PHA
48      PHA
A2 20    LDX #32
A2 20    LDX #32
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
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
Line 32,294: Line 30,441:
08      PHP
08      PHP
A0 20    LDY #32
A0 20    LDY #32
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 32,303: Line 30,449:
08      PHP
08      PHP
A2 20    LDX #32
A2 20    LDX #32
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 32,312: Line 30,457:
38      SEC
38      SEC
A9 21    LDA #33
A9 21    LDA #33
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
90 xx   BCC @A-1
90 FB   BCC *-3
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
Line 32,328: Line 30,471:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
90 xx   BCC @A-1
90 FB   BCC *-3
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
Line 32,338: Line 30,480:
08      PHP
08      PHP
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
Line 32,347: Line 30,488:
48      PHA
48      PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
Line 32,365: Line 30,505:
48      PHA
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 32,375: Line 30,514:
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 32,384: Line 30,522:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and requires @zptemp
F0 F5   BEQ *-9</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
!colspan="2"|15 bytes
!colspan="2"|15 bytes
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>EA      NOP
@A:
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
18      CLC
F0 xx   BEQ @A-1
F0 F5   BEQ *-9</pre>||Clobbers A, Z&N, and C
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
26 00    ROL $00
66 00    ROR $00
18      CLC
B0 xx    BCS @A-1</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 32,411: Line 30,550:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A2 22    LDX #34
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A0 22    LDY #34
A0 22    LDY #34
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
A2 22    LDX #34
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 32,428: Line 30,565:
|<pre>08      PHP
|<pre>08      PHP
A2 21    LDX #33
A2 21    LDX #33
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
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
|<pre>08      PHP
A0 21    LDY #33
A0 21    LDY #33
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 22    LDA #34
A9 22    LDA #34
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</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 32,461: Line 30,595:
08      PHP
08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
90 xx   BCC @A-1
90 FB   BCC *-3
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
28      PLP</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
Line 32,470: Line 30,603:
E6 xx    INC @zptemp
E6 xx    INC @zptemp
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
28      PLP</pre>||Clobbers A; requires @zptemp, and support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A; requires @zptemp, and support for unofficial opcodes; and writes in stack
|-
|-
Line 32,478: Line 30,610:
48      PHA
48      PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA</pre>||Clobbers Z&N, C, and V; requires @zptemp, and support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires @zptemp, and support for unofficial opcodes; and writes in stack
|-
|-
Line 32,487: Line 30,618:
08      PHP
08      PHP
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
28      PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
|-
|-
Line 32,496: Line 30,626:
48      PHA
48      PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA</pre>||Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
Line 32,514: Line 30,643:
08      PHP
08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
90 xx   BCC @A-1
90 FB   BCC *-3
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 32,524: Line 30,652:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
90 xx   BCC @A-1
90 FB   BCC *-3
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; and writes in stack
|-
|-
Line 32,534: Line 30,661:
48      PHA
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
Line 32,546: Line 30,672:
48      PHA
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|14 bytes
|-
|<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
18      CLC
F0 F5    BEQ *-9</pre>||Clobbers A, S, Z&N, and C
|-
!colspan="2"|15 bytes
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>EA      NOP
@A:
EA      NOP
26 00    ROL $00
EA      NOP
66 00    ROR $00
A9 0A    LDA #$0A ;hides 'ASL A'
36 00    ROL $00,X
EA      NOP
76 00    ROR $00,X
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
F0 F5   BEQ *-9</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 32,571: Line 30,716:
|-
|-
|<pre>A2 E8    LDX #232 ;hides 'INX'
|<pre>A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
EA      NOP
EA      NOP
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FC   BNE *-2</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 98    LDY #152 ;hides 'TYA'
|<pre>A0 98    LDY #152 ;hides 'TYA'
@Y = * - 1
88      DEY
88      DEY
30 xx   BMI @Y</pre>||Clobbers A, Y, and Z&N
30 FC   BMI *-2</pre>||Clobbers A, Y, and Z&N
|-
|-
|<pre>A9      LDA #147
|<pre>A9      LDA #147
Line 32,587: Line 30,730:
|<pre>48      PHA
|<pre>48      PHA
A0 22    LDY #34
A0 22    LDY #34
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</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
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 32,595: Line 30,737:
|<pre>08      PHP
|<pre>08      PHP
A0 18    LDY #24 ;hides 'CLC'
A0 18    LDY #24 ;hides 'CLC'
@Y = * - 1
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FC   BNE *-2
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 18    LDX #24 ;hides 'CLC'
A2 18    LDX #24 ;hides 'CLC'
@X = * - 1
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FC   BNE *-2
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
A0 22    LDY #34
A0 22    LDY #34
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, C, and V; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
F0 FC   BEQ *-2</pre>||Clobbers A, Z&N, C, and V; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 32,633: Line 30,771:
|<pre>38      SEC
|<pre>38      SEC
A9 13    LDA #19
A9 13    LDA #19
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F7   BNE *-7</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>48      PHA
|<pre>48      PHA
68      PLA
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
F0 FA   BEQ *-4</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 32,651: Line 30,787:
08      PHP
08      PHP
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
28      PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
|-
|-
Line 32,660: Line 30,795:
48      PHA
48      PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA</pre>||Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
Line 32,678: Line 30,812:
48      PHA
48      PHA
A2 20    LDX #32
A2 20    LDX #32
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
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
Line 32,686: Line 30,819:
|<pre>08      PHP
|<pre>08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 F9   BEQ *-5
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 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 F9   BEQ *-5
68      PLA</pre>||Clobbers Z&N, and C; requires @rts14; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts14; and writes in stack
|-
|-
Line 32,703: Line 30,834:
E6 xx    INC @zptemp
E6 xx    INC @zptemp
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
90 xx   BCC @A-1
90 FB   BCC *-3
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
|-
|-
Line 32,712: Line 30,842:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
90 xx   BCC @A-1
90 FB   BCC *-3
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
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
85 xx    STA @zptemp
85 xx    STA @zptemp
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1
F0 F9   BEQ *-5
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack
|-
|-
Line 32,730: Line 30,858:
08      PHP
08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
90 xx   BCC @A-1
90 FB   BCC *-3
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
Line 32,740: Line 30,867:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
90 xx   BCC @A-1
90 FB   BCC *-3
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
Line 32,751: Line 30,877:
08      PHP
08      PHP
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
Line 32,761: Line 30,886:
48      PHA
48      PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
04 00    NOP $00
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1
F0 F9   BEQ *-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
|-
|-
Line 32,781: Line 30,904:
48      PHA
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 32,789: Line 30,911:
!colspan="2"|14 bytes
!colspan="2"|14 bytes
|-
|-
|<pre>68      PLA
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 32,801: Line 30,920:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F7   BEQ *-7</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 32,817: Line 30,936:
|<pre>68      PLA
|<pre>68      PLA
A0 22    LDY #34
A0 22    LDY #34
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A2 22    LDX #34
A2 22    LDX #34
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 32,832: Line 30,949:
EA      NOP
EA      NOP
A2 22    LDX #34
A2 22    LDX #34
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A0 22    LDY #34
A0 22    LDY #34
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 32,858: Line 30,973:
08      PHP
08      PHP
A2 21    LDX #33
A2 21    LDX #33
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 32,866: Line 30,980:
08      PHP
08      PHP
A0 21    LDY #33
A0 21    LDY #33
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; 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'
@A:
20 xx xx JSR @rts15
20 xx xx JSR @rts15
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires @rts15; and writes in stack
F0 F9   BEQ *-5</pre>||Clobbers A, Z&N, and C; requires @rts15; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
38      SEC
38      SEC
A9 22    LDA #34
A9 22    LDA #34
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
00 00    BRK 0
00 00    BRK 0
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
F0 F9   BEQ *-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'
@A:
48      PHA
48      PHA
20 xx xx JSR @rts14
20 xx xx JSR @rts14
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; requires @rts14; and writes in stack
F0 F9   BEQ *-5</pre>||Clobbers A, S, Z&N, and C; requires @rts14; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 32,902: Line 31,011:
38      SEC
38      SEC
A9 21    LDA #33
A9 21    LDA #33
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 32,910: Line 31,018:
38      SEC
38      SEC
A9 21    LDA #33
A9 21    LDA #33
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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 32,918: Line 31,025:
48      PHA
48      PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
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,937: Line 31,043:
48      PHA
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA
68      PLA
28      PLP</pre>||Requires @zptemp; and writes in stack
28      PLP</pre>||Requires @zptemp; and writes in stack
Line 32,948: Line 31,053:
48      PHA
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
Line 32,961: Line 31,065:
48      PHA
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 32,970: Line 31,073:
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 32,979: Line 31,081:
90 00    BCC *+2
90 00    BCC *+2
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F4   BEQ *-10</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 32,989: Line 31,091:
|-
|-
|<pre>A0 23    LDY #35
|<pre>A0 23    LDY #35
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 23    LDX #35
|<pre>A2 23    LDX #35
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #149
|<pre>A9      LDA #149
Line 33,017: Line 31,117:
|<pre>08      PHP
|<pre>08      PHP
A0 18    LDY #24
A0 18    LDY #24
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FA   BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 18    LDX #24
A2 18    LDX #24
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FA   BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 33,034: Line 31,132:
38      SEC
38      SEC
A9 22    LDA #34
A9 22    LDA #34
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
D0 F9   BNE *-5</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>20 xx xx JSR @rts15
|<pre>20 xx xx JSR @rts15
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, C, and V; requires @rts15, and support for unofficial opcodes; and writes in stack
F0 FC   BEQ *-2</pre>||Clobbers A, Z&N, C, and V; requires @rts15, and support for unofficial opcodes; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
00 00    BRK 0
00 00    BRK 0
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, C, and V; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
F0 FC   BEQ *-2</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 33,056: Line 31,151:
38      SEC
38      SEC
A9 22    LDA #34
A9 22    LDA #34
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
08      PHP
08      PHP
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-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
|-
|-
Line 33,071: Line 31,164:
48      PHA
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA</pre>||Clobbers Z&N, C, and V; requires dummy interrupt handler; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires dummy interrupt handler; and writes in stack
|-
|-
Line 33,080: Line 31,172:
08      PHP
08      PHP
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
28      PLP</pre>||Clobbers A, S, and Z&N; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A, S, and Z&N; requires support for unofficial opcodes; and writes in stack
|-
|-
Line 33,097: Line 31,188:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
90 xx   BCC @A-1
90 FB   BCC *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 33,106: Line 31,196:
!colspan="2"|15 bytes
!colspan="2"|15 bytes
|-
|-
|<pre>A5 00   LDA $00
|<pre>EA      NOP
A9 0A   LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@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
EA      NOP
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
F0 F7   BEQ *-7</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 33,129: Line 31,221:
|-
|-
|<pre>A2 16    LDX #22
|<pre>A2 16    LDX #22
@X:
48      PHA
48      PHA
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FA   BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 16    LDY #22
|<pre>A0 16    LDY #22
@Y:
48      PHA
48      PHA
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 FA   BNE *-4</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
48      PHA
48      PHA
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
F0 FB   BEQ *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 33,150: Line 31,239:
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
A2 E8    LDX #232 ;hides 'INX'
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
EA      NOP
EA      NOP
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FC   BNE *-2</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 16    LDY #22
|<pre>A0 16    LDY #22
@Y:
A5 00    LDA $00
A5 00    LDA $00
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, and Z&N
D0 F9   BNE *-5</pre>||Clobbers A, Y, and Z&N
|-
|-
|<pre>A0 16    LDY #22
|<pre>A0 16    LDY #22
@Y:
C5 00    CMP $00
C5 00    CMP $00
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, Z&N, and C
D0 F9   BNE *-5</pre>||Clobbers Y, Z&N, and C
|-
|-
|<pre>A0 16    LDY #22
|<pre>A0 16    LDY #22
@Y:
24 00    BIT $00
24 00    BIT $00
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, Z&N, and V
D0 F9   BNE *-5</pre>||Clobbers Y, Z&N, and V
|-
|-
|<pre>A0 16    LDY #22
|<pre>A0 16    LDY #22
@Y:
85 xx    STA @zptemp
85 xx    STA @zptemp
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N; and requires @zptemp
D0 F9   BNE *-5</pre>||Clobbers Y, and Z&N; and requires @zptemp
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
85 xx    STA @zptemp
85 xx    STA @zptemp
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
|-
|-
|<pre>A0 16    LDY #22
|<pre>A0 16    LDY #22
@Y:
04 00    NOP $00
04 00    NOP $00
88      DEY
88      DEY
D0 xx   BNE @Y</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>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00    NOP $00
04 00    NOP $00
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 33,210: Line 31,291:
|<pre>08      PHP
|<pre>08      PHP
A0 C8    LDY #200 ;hides 'INY'
A0 C8    LDY #200 ;hides 'INY'
@Y = * - 1
C8      INY
C8      INY
C8      INY
C8      INY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>A0 10    LDY #16
|<pre>A0 10    LDY #16
@Y:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 F8   BNE *-6</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
4C xx xx JMP *+3
4C xx xx JMP *+3
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, C, and V; and not relocatable code
F0 F9   BEQ *-5</pre>||Clobbers A, Z&N, C, and V; and not relocatable code
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A2 18    LDX #24 ;hides 'CLC'
A2 18    LDX #24 ;hides 'CLC'
@X = * - 1
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FC   BNE *-2
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
Line 33,241: Line 31,318:
38      SEC
38      SEC
A9 22    LDA #34
A9 22    LDA #34
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, S, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 5A    LDX #90 ;hides 'NOP'
A2 5A    LDX #90 ;hides 'NOP'
@X = * - 1
E8      INX
E8      INX
E8      INX
E8      INX
10 xx   BPL @X
10 FB   BPL *-3
28      PLP</pre>||Clobbers X; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers X; requires support for unofficial opcodes; and writes in stack
|-
|-
Line 33,258: Line 31,333:
48      PHA
48      PHA
A2 21    LDX #33
A2 21    LDX #33
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
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
Line 33,268: Line 31,342:
08      PHP
08      PHP
A2 21    LDX #33
A2 21    LDX #33
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 33,277: Line 31,350:
38      SEC
38      SEC
A9 22    LDA #34
A9 22    LDA #34
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</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 33,294: Line 31,366:
38      SEC
38      SEC
A9 21    LDA #33
A9 21    LDA #33
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 33,303: Line 31,374:
38      SEC
38      SEC
A9 21    LDA #33
A9 21    LDA #33
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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 33,312: Line 31,382:
48      PHA
48      PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
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 33,325: Line 31,394:
48      PHA
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 33,335: Line 31,403:
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 33,344: Line 31,411:
90 00    BCC *+2
90 00    BCC *+2
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F4   BEQ *-10</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 33,360: Line 31,427:
|<pre>EA      NOP
|<pre>EA      NOP
A0 23    LDY #35
A0 23    LDY #35
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A2 23    LDX #35
A2 23    LDX #35
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 33,374: Line 31,439:
|<pre>08      PHP
|<pre>08      PHP
A0 22    LDY #34
A0 22    LDY #34
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 22    LDX #34
A2 22    LDX #34
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 23    LDA #35
A9 23    LDA #35
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</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 33,407: Line 31,469:
48      PHA
48      PHA
A2 18    LDX #24 ;hides 'CLC'
A2 18    LDX #24 ;hides 'CLC'
@X = * - 1
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FC   BNE *-2
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
Line 33,425: Line 31,486:
38      SEC
38      SEC
A9 18    LDA #24
A9 18    LDA #24
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F8   BNE *-6
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 33,434: Line 31,494:
38      SEC
38      SEC
A9 18    LDA #24
A9 18    LDA #24
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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
|-
|-
Line 33,444: Line 31,503:
48      PHA
48      PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers S; requires support for unofficial opcodes; and writes in stack
Line 33,456: Line 31,514:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
90 xx   BCC @A-1
90 FB   BCC *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 33,467: Line 31,524:
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 33,476: Line 31,532:
90 00    BCC *+2
90 00    BCC *+2
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F4   BEQ *-10</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 33,489: Line 31,545:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A2 15    LDX #21 ;hides 'ORA zp,X'
CA      DEX ;first loop only
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, and Z&N
|-
|-
|<pre>A0 15    LDY #21 ;hides 'ORA zp,X'
|<pre>A0 15    LDY #21 ;hides 'ORA zp,X'
@Y = * - 1
88      DEY ;first loop only
88      DEY ;first loop only
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, Y, and Z&N
|-
|-
|<pre>A2 15   LDX #21 ;hides 'ORA zp,X'
|<pre>A2 D8   LDX #216 ;hides 'CLD'
@X = * - 1
E8       INX
CA       DEX ;first loop only
E8       INX
CA       DEX
D0 FB   BNE *-3</pre>||Clobbers X, Z&N, and D
D0 xx   BNE @X</pre>||Clobbers A, X, and Z&N
|-
|-
|<pre>A0 D8    LDY #216 ;hides 'CLD'
|<pre>A0 D8    LDY #216 ;hides 'CLD'
@Y = * - 1
C8      INY
C8      INY
C8      INY
C8      INY
D0 xx   BNE @Y</pre>||Clobbers Y, Z&N, and D
D0 FB   BNE *-3</pre>||Clobbers Y, Z&N, and D
|-
|<pre>A2 D8    LDX #216 ;hides 'CLD'
@X = * - 1
E8      INX
E8      INX
D0 xx    BNE @X</pre>||Clobbers X, Z&N, and D
|-
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
|<pre>A0 88    LDY #136 ;hides 'DEY'
@Y = * - 1
00 00    BRK 0
00 00    BRK 0
30 xx   BMI @Y</pre>||Clobbers Y, and Z&N; requires dummy interrupt handler; and writes in stack
30 FB   BMI *-3</pre>||Clobbers Y, and Z&N; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A0 23    LDY #35
A0 23    LDY #35
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</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
|<pre>48      PHA
A2 23    LDX #35
A2 23    LDX #35
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</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>A2 14    LDX #20 ;hides 'NOP zp,X'
EA      NOP
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>A0 14    LDY #20 ;hides 'NOP zp,X'
|<pre>A0 14    LDY #20 ;hides 'NOP zp,X'
@Y = * - 1
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
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'
!colspan="2"|7 bytes
@X = * - 1
EA      NOP
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|7 bytes
|<pre>A4 00    LDY $00
A0 23    LDY #35
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
A2 23    LDX #35
A2 23    LDX #35
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A4 00    LDY $00
A0 23    LDY #35
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
48      PHA
48      PHA
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
F0 FB   BEQ *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 33,578: Line 31,622:
|<pre>EA      NOP
|<pre>EA      NOP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
85 xx    STA @zptemp
85 xx    STA @zptemp
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00    NOP $00
04 00    NOP $00
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
F0 FA   BEQ *-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,594: Line 31,636:
|<pre>08      PHP
|<pre>08      PHP
A2 13    LDX #19
A2 13    LDX #19
@X:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 F9   BNE *-5
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 13    LDY #19
A0 13    LDY #19
@Y:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y
D0 F9   BNE *-5
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 16    LDA #22
A9 16    LDA #22
@A:
24 00    BIT $00
24 00    BIT $00
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F7   BNE *-7</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts15
20 xx xx JSR @rts15
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; requires @rts15; and writes in stack
F0 F9   BEQ *-5</pre>||Clobbers A, S, Z&N, and C; requires @rts15; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
20 xx xx JSR @rts14
20 xx xx JSR @rts14
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; requires @rts14; and writes in stack
F0 F9   BEQ *-5</pre>||Clobbers A, S, Z&N, and C; requires @rts14; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
00 00    BRK 0
00 00    BRK 0
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
F0 F9   BEQ *-5</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 33,652: Line 31,688:
48      PHA
48      PHA
A2 21    LDX #33
A2 21    LDX #33
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
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
Line 33,662: Line 31,697:
08      PHP
08      PHP
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
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
|-
|-
Line 33,671: Line 31,705:
48      PHA
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
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, C, and V; requires dummy interrupt handler; and writes in stack
|-
|-
Line 33,682: Line 31,715:
48      PHA
48      PHA
A2 20    LDX #32
A2 20    LDX #32
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
68      PLA
68      PLA
AA      TAX
AA      TAX
Line 33,694: Line 31,726:
38      SEC
38      SEC
A9 21    LDA #33
A9 21    LDA #33
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 33,703: Line 31,734:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
90 xx   BCC @A-1
90 FB   BCC *-3
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
Line 33,715: Line 31,745:
48      PHA
48      PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
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 33,729: Line 31,758:
48      PHA
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 33,737: Line 31,765:
!colspan="2"|14 bytes
!colspan="2"|14 bytes
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>68      PLA
@A:
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
E6 xx    INC @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C; and requires @zptemp
90 00   BCC *+2
18      CLC
F0 F4    BEQ *-10</pre>||Clobbers A, S, Z&N, and C
|-
!colspan="2"|15 bytes
|-
|-
|<pre>68       PLA
|<pre>EA       NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 33,759: Line 31,790:
90 00    BCC *+2
90 00    BCC *+2
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C
F0 F4   BEQ *-10</pre>||Clobbers A, Z&N, and C
|-
!colspan="2"|15 bytes
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
C5 00    CMP $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
18      CLC
B0 xx    BCS @A-1</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 33,787: Line 31,806:
|<pre>68      PLA
|<pre>68      PLA
A0 23    LDY #35
A0 23    LDY #35
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A2 23    LDX #35
A2 23    LDX #35
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 33,802: Line 31,819:
EA      NOP
EA      NOP
A2 23    LDX #35
A2 23    LDX #35
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A0 23    LDY #35
A0 23    LDY #35
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
48      PHA
48      PHA
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
F0 FB   BEQ *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 33,835: Line 31,849:
08      PHP
08      PHP
A2 22    LDX #34
A2 22    LDX #34
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 33,843: Line 31,856:
08      PHP
08      PHP
A0 22    LDY #34
A0 22    LDY #34
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 33,851: Line 31,863:
38      SEC
38      SEC
A9 23    LDA #35
A9 23    LDA #35
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 33,860: Line 31,871:
38      SEC
38      SEC
A9 22    LDA #34
A9 22    LDA #34
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 33,868: Line 31,878:
38      SEC
38      SEC
A9 22    LDA #34
A9 22    LDA #34
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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 33,886: Line 31,895:
48      PHA
48      PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA
68      PLA
28      PLP</pre>||Requires @zptemp, and support for unofficial opcodes; and writes in stack
28      PLP</pre>||Requires @zptemp, and support for unofficial opcodes; and writes in stack
Line 33,897: Line 31,905:
48      PHA
48      PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers S; requires support for unofficial opcodes; and writes in stack
Line 33,910: Line 31,917:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
90 xx   BCC @A-1
90 FB   BCC *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 33,919: Line 31,925:
!colspan="2"|15 bytes
!colspan="2"|15 bytes
|-
|-
|<pre>68       PLA
|<pre>E6 xx    INC @zptemp
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
90 00    BCC *+2
18       CLC
F0 F4    BEQ *-10</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
!colspan="2"|16 bytes
|-
|<pre>EA       NOP
A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@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
EA      NOP
18      CLC
90 00    BCC *+2
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
F0 F4   BEQ *-10</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 33,938: Line 31,960:
|-
|-
|<pre>A0 24    LDY #36
|<pre>A0 24    LDY #36
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 24    LDX #36
|<pre>A2 24    LDX #36
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #154
|<pre>A9      LDA #154
Line 33,954: Line 31,974:
|<pre>08      PHP
|<pre>08      PHP
A2 E8    LDX #232 ;hides 'INX'
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
EA      NOP
EA      NOP
D0 xx   BNE @X
D0 FC   BNE *-2
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 98    LDY #152 ;hides 'TYA'
A0 98    LDY #152 ;hides 'TYA'
@Y = * - 1
88      DEY
88      DEY
30 xx   BMI @Y
30 FC   BMI *-2
28      PLP</pre>||Clobbers A, and Y; and writes in stack
28      PLP</pre>||Clobbers A, and Y; and writes in stack
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
00 00    BRK 0
00 00    BRK 0
10 xx   BPL @A-1</pre>||Clobbers A, Z&N, C, and V; requires dummy interrupt handler; and writes in stack
10 FA   BPL *-4</pre>||Clobbers A, Z&N, C, and V; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
48      PHA
48      PHA
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
F0 FB   BEQ *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 33,994: Line 32,010:
08      PHP
08      PHP
A0 22    LDY #34
A0 22    LDY #34
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
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>68      PLA
|<pre>68      PLA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
85 xx    STA @zptemp
85 xx    STA @zptemp
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, C, and V; and requires @zptemp
F0 FA   BEQ *-4</pre>||Clobbers A, S, Z&N, C, and V; and requires @zptemp
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 14    LDA #20 ;hides 'NOP zp,X'
A9 14    LDA #20 ;hides 'NOP zp,X'
@A = * - 1
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 34,018: Line 32,031:
A4 00    LDY $00
A4 00    LDY $00
A0 22    LDY #34
A0 22    LDY #34
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 34,026: Line 32,038:
38      SEC
38      SEC
A9 23    LDA #35
A9 23    LDA #35
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
08      PHP
08      PHP
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
28      PLP</pre>||Clobbers A; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
|-
|-
Line 34,041: Line 32,051:
48      PHA
48      PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA</pre>||Clobbers Z&N, C, and V; requires dummy interrupt handler, and support for unofficial opcodes; 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
|-
|-
Line 34,058: Line 32,067:
48      PHA
48      PHA
A0 C8    LDY #200 ;hides 'INY'
A0 C8    LDY #200 ;hides 'INY'
@Y = * - 1
C8      INY
C8      INY
C8      INY
C8      INY
D0 xx   BNE @Y
D0 FB   BNE *-3
68      PLA
68      PLA
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
Line 34,070: Line 32,078:
38      SEC
38      SEC
A9 13    LDA #19
A9 13    LDA #19
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F7   BNE *-7
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 34,080: Line 32,087:
38      SEC
38      SEC
A9 13    LDA #19
A9 13    LDA #19
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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
|-
|-
Line 34,092: Line 32,098:
48      PHA
48      PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers S; requires support for unofficial opcodes; and writes in stack
Line 34,105: Line 32,110:
48      PHA
48      PHA
A2 20    LDX #32
A2 20    LDX #32
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
68      PLA
68      PLA
AA      TAX
AA      TAX
Line 34,115: Line 32,119:
48      PHA
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts14
20 xx xx JSR @rts14
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 F9   BEQ *-5
68      PLA
68      PLA
28      PLP</pre>||Requires @rts14; and writes in stack
28      PLP</pre>||Requires @rts14; and writes in stack
Line 34,126: Line 32,129:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
90 xx   BCC @A-1
90 FB   BCC *-3
68      PLA
68      PLA
28      PLP</pre>||Requires @zptemp; and writes in stack
28      PLP</pre>||Requires @zptemp; and writes in stack
Line 34,138: Line 32,140:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
90 xx   BCC @A-1
90 FB   BCC *-3
68      PLA
68      PLA
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
Line 34,151: Line 32,152:
48      PHA
48      PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
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 34,164: Line 32,164:
48      PHA
48      PHA
A2 1F    LDX #31
A2 1F    LDX #31
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
68      PLA
68      PLA
AA      TAX
AA      TAX
Line 34,175: Line 32,174:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
E6 xx    INC @zptemp
EA      NOP
36 00    ROL $00,X
EA      NOP
76 00    ROR $00,X
18      CLC
18      CLC
B0 xx    BCS @A-1</pre>||Clobbers A, Z&N, and C; and requires @zptemp
90 00    BCC *+2
|-
|<pre>68      PLA
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, S, Z&N, and C
F0 F4   BEQ *-10</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|16 bytes
!colspan="2"|16 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
C5 00    CMP $00
EA      NOP
26 00    ROL $00
EA      NOP
66 00    ROR $00
EA      NOP
26 00    ROL $00
EA      NOP
66 00    ROR $00
18      CLC
90 00    BCC *+2
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
F0 F4   BEQ *-10</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 34,223: Line 32,215:
|-
|-
|<pre>A2 EC    LDX #236 ;hides 'CPX abs'
|<pre>A2 EC    LDX #236 ;hides 'CPX abs'
@X = * - 1
E6 xx    INC @zptemp
E6 xx    INC @zptemp
E8      INX
E8      INX
D0 xx   BNE @X</pre>||Clobbers X, Z&N, and C; and requires @zptemp
D0 FA   BNE *-4</pre>||Clobbers X, Z&N, and C; and requires @zptemp
|-
|-
|<pre>A0 EC    LDY #236 ;hides 'CPX abs'
|<pre>A0 EC    LDY #236 ;hides 'CPX abs'
@Y = * - 1
E6 xx    INC @zptemp
E6 xx    INC @zptemp
C8      INY
C8      INY
D0 xx   BNE @Y</pre>||Clobbers Y, Z&N, and C; and requires @zptemp
D0 FA   BNE *-4</pre>||Clobbers Y, Z&N, and C; and requires @zptemp
|-
|-
|<pre>48      PHA
|<pre>48      PHA
48      PHA
48      PHA
A2 23    LDX #35
A2 23    LDX #35
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</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
|<pre>48      PHA
48      PHA
48      PHA
A0 23    LDY #35
A0 23    LDY #35
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</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
|<pre>EA      NOP
68      PLA
68      PLA
A0 23    LDY #35
A0 23    LDY #35
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68      PLA
68      PLA
A2 23    LDX #35
A2 23    LDX #35
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 34,278: Line 32,264:
EA      NOP
EA      NOP
A2 23    LDX #35
A2 23    LDX #35
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 34,286: Line 32,271:
EA      NOP
EA      NOP
A0 23    LDY #35
A0 23    LDY #35
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
38      SEC
38      SEC
A9 23    LDA #35
A9 23    LDA #35
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, S, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 34,302: Line 32,285:
48      PHA
48      PHA
A2 22    LDX #34
A2 22    LDX #34
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
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
Line 34,311: Line 32,293:
EA      NOP
EA      NOP
08      PHP
08      PHP
A0 22    LDY #34
A2 22    LDX #34
@Y:
CA       DEX
88       DEY
D0 FB   BNE *-3
D0 xx   BNE @Y
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
A2 22    LDX #34
A0 22    LDY #34
@X:
88       DEY
CA       DEX
D0 FB   BNE *-3
D0 xx   BNE @X
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 34,330: Line 32,310:
38      SEC
38      SEC
A9 23    LDA #35
A9 23    LDA #35
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</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 34,347: Line 32,326:
38      SEC
38      SEC
A9 22    LDA #34
A9 22    LDA #34
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
20 xx xx JSR @rts15
20 xx xx JSR @rts15
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 F9   BEQ *-5
68      PLA</pre>||Clobbers Z&N, and C; requires @rts15; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @rts15; and writes in stack
|-
|-
Line 34,364: Line 32,341:
38      SEC
38      SEC
A9 22    LDA #34
A9 22    LDA #34
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
00 00    BRK 0
00 00    BRK 0
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 F9   BEQ *-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
|-
|-
Line 34,384: Line 32,359:
38      SEC
38      SEC
A9 21    LDA #33
A9 21    LDA #33
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 34,392: Line 32,366:
!colspan="2"|15 bytes
!colspan="2"|15 bytes
|-
|-
|<pre>68      PLA
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 34,404: Line 32,375:
90 00    BCC *+2
90 00    BCC *+2
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F6   BEQ *-8</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 34,419: Line 32,390:
|-
|-
|<pre>A2 1A    LDX #26
|<pre>A2 1A    LDX #26
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 1A    LDY #26
|<pre>A0 1A    LDY #26
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 34,434: Line 32,403:
|<pre>08      PHP
|<pre>08      PHP
A2 23    LDX #35
A2 23    LDX #35
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
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
|<pre>08      PHP
A0 23    LDY #35
A0 23    LDY #35
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 24    LDA #36
A9 24    LDA #36
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</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 34,465: Line 32,431:
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
20 xx xx JSR @rts15
20 xx xx JSR @rts15
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; requires @rts15; and writes in stack
F0 F9   BEQ *-5</pre>||Clobbers A, S, Z&N, and C; requires @rts15; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
00 00    BRK 0
00 00    BRK 0
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
F0 F9   BEQ *-5</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires @rts14; and writes in stack
F0 F8   BEQ *-6</pre>||Clobbers A, Z&N, and C; requires @rts14; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
85 xx    STA @zptemp
85 xx    STA @zptemp
20 xx xx JSR @rts15
20 xx xx JSR @rts15
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires @zptemp, and @rts15; and writes in stack
F0 F8   BEQ *-6</pre>||Clobbers A, Z&N, and C; requires @zptemp, and @rts15; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
85 xx    STA @zptemp
85 xx    STA @zptemp
00 00    BRK 0
00 00    BRK 0
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack
F0 F8   BEQ *-6</pre>||Clobbers A, Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
48      PHA
48      PHA
20 xx xx JSR @rts12
20 xx xx JSR @rts12
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack
F0 F8   BEQ *-6</pre>||Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
04 00    NOP $00
20 xx xx JSR @rts15
20 xx xx JSR @rts15
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires @rts15, and support for unofficial opcodes; and writes in stack
F0 F8   BEQ *-6</pre>||Clobbers A, Z&N, and C; requires @rts15, and support for unofficial opcodes; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
04 00    NOP $00
00 00    BRK 0
00 00    BRK 0
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
F0 F8   BEQ *-6</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 34,529: Line 32,487:
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
08      PHP
08      PHP
Line 34,536: Line 32,493:
28      PLP
28      PLP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and writes in stack
F0 F7   BEQ *-7</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 34,542: Line 32,499:
38      SEC
38      SEC
A9 22    LDA #34
A9 22    LDA #34
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
Line 34,551: Line 32,507:
38      SEC
38      SEC
A9 22    LDA #34
A9 22    LDA #34
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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
|-
|-
Line 34,559: Line 32,514:
08      PHP
08      PHP
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
28      PLP</pre>||Clobbers A; requires @rts15, and support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A; requires @rts15, and support for unofficial opcodes; and writes in stack
|-
|-
Line 34,567: Line 32,521:
48      PHA
48      PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA</pre>||Clobbers Z&N, C, and V; requires @rts15, and support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires @rts15, and support for unofficial opcodes; and writes in stack
|-
|-
Line 34,576: Line 32,529:
08      PHP
08      PHP
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
28      PLP</pre>||Clobbers A; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
|-
|-
Line 34,585: Line 32,537:
48      PHA
48      PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA</pre>||Clobbers Z&N, C, and V; requires dummy interrupt handler, and support for unofficial opcodes; 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
|-
|-
Line 34,596: Line 32,547:
38      SEC
38      SEC
A9 22    LDA #34
A9 22    LDA #34
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 34,605: Line 32,555:
38      SEC
38      SEC
A9 22    LDA #34
A9 22    LDA #34
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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 34,614: Line 32,563:
48      PHA
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
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 34,627: Line 32,575:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
90 xx   BCC @A-1
90 FB   BCC *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 34,637: Line 32,584:
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 34,647: Line 32,593:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F4   BEQ *-10</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 34,663: Line 32,609:
|<pre>48      PHA
|<pre>48      PHA
A0 24    LDY #36
A0 24    LDY #36
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</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
|<pre>48      PHA
A2 24    LDX #36
A2 24    LDX #36
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</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
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A6 00    LDX $00
A2 24    LDX #36
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
A0 24    LDY #36
A0 24    LDY #36
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A6 00    LDX $00
A2 24    LDX #36
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers X, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 34,702: Line 32,644:
08      PHP
08      PHP
A2 E8    LDX #232 ;hides 'INX'
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
EA      NOP
EA      NOP
D0 xx   BNE @X
D0 FC   BNE *-2
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
Line 34,710: Line 32,651:
08      PHP
08      PHP
A0 98    LDY #152 ;hides 'TYA'
A0 98    LDY #152 ;hides 'TYA'
@Y = * - 1
88      DEY
88      DEY
30 xx   BMI @Y
30 FC   BMI *-2
28      PLP</pre>||Clobbers A, Y, and S; and writes in stack
28      PLP</pre>||Clobbers A, Y, and S; and writes in stack
|-
|-
Line 34,718: Line 32,658:
68      PLA
68      PLA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
48      PHA
48      PHA
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
F0 FB   BEQ *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 34,727: Line 32,666:
|<pre>08      PHP
|<pre>08      PHP
A0 16    LDY #22
A0 16    LDY #22
@Y:
24 00    BIT $00
24 00    BIT $00
88      DEY
88      DEY
D0 xx   BNE @Y
D0 F9   BNE *-5
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 16    LDX #22
A2 16    LDX #22
@X:
24 00    BIT $00
24 00    BIT $00
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 F9   BNE *-5
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
85 xx    STA @zptemp
85 xx    STA @zptemp
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
85 xx    STA @zptemp
85 xx    STA @zptemp
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA</pre>||Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
|-
|-
Line 34,760: Line 32,695:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
85 xx    STA @zptemp
85 xx    STA @zptemp
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
00 00    BRK 0
00 00    BRK 0
10 xx   BPL @A-1</pre>||Clobbers A, Z&N, C, and V; requires dummy interrupt handler; and writes in stack
10 FA   BPL *-4</pre>||Clobbers A, Z&N, C, and V; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 34,776: Line 32,709:
38      SEC
38      SEC
A9 23    LDA #35
A9 23    LDA #35
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, S, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00    NOP $00
04 00    NOP $00
F0 xx   BEQ @A-1
F0 FA   BEQ *-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>48      PHA
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00    NOP $00
04 00    NOP $00
F0 xx   BEQ @A-1
F0 FA   BEQ *-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 34,799: Line 32,729:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00    NOP $00
04 00    NOP $00
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
F0 FA   BEQ *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 34,815: Line 32,744:
|<pre>08      PHP
|<pre>08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
4C xx xx JMP *+3
4C xx xx JMP *+3
F0 xx   BEQ @A-1
F0 F9   BEQ *-5
28      PLP</pre>||Clobbers A; writes in stack; and not relocatable code
28      PLP</pre>||Clobbers A; writes in stack; and not relocatable code
|-
|-
Line 34,825: Line 32,753:
48      PHA
48      PHA
A2 22    LDX #34
A2 22    LDX #34
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
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
Line 34,833: Line 32,760:
|<pre>48      PHA
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
4C xx xx JMP *+3
4C xx xx JMP *+3
F0 xx   BEQ @A-1
F0 F9   BEQ *-5
68      PLA</pre>||Clobbers Z&N, C, and V; writes in stack; and not relocatable code
68      PLA</pre>||Clobbers Z&N, C, and V; writes in stack; and not relocatable code
|-
|-
Line 34,844: Line 32,770:
38      SEC
38      SEC
A9 23    LDA #35
A9 23    LDA #35
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 34,854: Line 32,779:
48      PHA
48      PHA
A2 21    LDX #33
A2 21    LDX #33
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
68      PLA
68      PLA
AA      TAX
AA      TAX
Line 34,866: Line 32,790:
38      SEC
38      SEC
A9 22    LDA #34
A9 22    LDA #34
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 34,878: Line 32,801:
38      SEC
38      SEC
A9 21    LDA #33
A9 21    LDA #33
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|15 bytes
!colspan="2"|16 bytes
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>EA      NOP
@A:
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx    BEQ @A-1
90 00    BCC *+2
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
36 00    ROL $00,X
76 00    ROR $00,X
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
F0 F6   BEQ *-8</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 34,911: Line 32,833:
|-
|-
|<pre>A2 17    LDX #23
|<pre>A2 17    LDX #23
@X:
48      PHA
48      PHA
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FA   BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 17    LDY #23
|<pre>A0 17    LDY #23
@Y:
48      PHA
48      PHA
88      DEY
88      DEY
D0 xx   BNE @Y</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
A2 24    LDX #36
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A0 24    LDY #36
A0 24    LDY #36
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|<pre>68      PLA
A2 24    LDX #36
@X:
CA      DEX
D0 xx    BNE @X</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
48      PHA
48      PHA
90 xx   BCC @A-1</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
90 FB   BCC *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 34,944: Line 32,861:
|<pre>EA      NOP
|<pre>EA      NOP
A0 1A    LDY #26
A0 1A    LDY #26
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A2 1A    LDX #26
A2 1A    LDX #26
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
85 xx    STA @zptemp
85 xx    STA @zptemp
90 xx   BCC @A-1</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>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00    NOP $00
04 00    NOP $00
90 xx   BCC @A-1</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
90 FA   BCC *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 34,983: Line 32,896:
08      PHP
08      PHP
A2 23    LDX #35
A2 23    LDX #35
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 34,991: Line 32,903:
08      PHP
08      PHP
A0 23    LDY #35
A0 23    LDY #35
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 1A    LDA #26
A9 1A    LDA #26
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F8   BNE *-6</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 35,008: Line 32,918:
38      SEC
38      SEC
A9 23    LDA #35
A9 23    LDA #35
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 35,016: Line 32,925:
38      SEC
38      SEC
A9 23    LDA #35
A9 23    LDA #35
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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 35,034: Line 32,942:
48      PHA
48      PHA
A2 18    LDX #24 ;hides 'CLC'
A2 18    LDX #24 ;hides 'CLC'
@X = * - 1
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FC   BNE *-2
68      PLA
68      PLA
AA      TAX
AA      TAX
Line 35,047: Line 32,954:
38      SEC
38      SEC
A9 18    LDA #24
A9 18    LDA #24
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F8   BNE *-6
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|13 bytes
!colspan="2"|14 bytes
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>EA      NOP
@A:
A9 0A    LDA #$0A ;hides 'ASL A'
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
EA      NOP
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
F0 F4   BEQ *-10</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 35,073: Line 32,983:
|-
|-
|<pre>A2 25    LDX #37
|<pre>A2 25    LDX #37
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 25    LDY #37
|<pre>A0 25    LDY #37
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
Line 35,104: Line 33,012:
|<pre>08      PHP
|<pre>08      PHP
A2 D8    LDX #216 ;hides 'CLD'
A2 D8    LDX #216 ;hides 'CLD'
@X = * - 1
E8      INX
E8      INX
E8      INX
E8      INX
D0 xx   BNE @X
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
|<pre>08      PHP
A0 D8    LDY #216 ;hides 'CLD'
A0 D8    LDY #216 ;hides 'CLD'
@Y = * - 1
C8      INY
C8      INY
C8      INY
C8      INY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 35,121: Line 33,027:
38      SEC
38      SEC
A9 24    LDA #36
A9 24    LDA #36
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</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
!colspan="2"|9 bytes
Line 35,130: Line 33,035:
38      SEC
38      SEC
A9 24    LDA #36
A9 24    LDA #36
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
20 xx xx JSR @rts15
20 xx xx JSR @rts15
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; requires @rts15; and writes in stack
F0 F9   BEQ *-5</pre>||Clobbers A, S, Z&N, and C; requires @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
00 00    BRK 0
00 00    BRK 0
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
F0 F9   BEQ *-5</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 35,161: Line 33,063:
08      PHP
08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
85 xx    STA @zptemp
85 xx    STA @zptemp
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
|-
|-
Line 35,170: Line 33,071:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
85 xx    STA @zptemp
85 xx    STA @zptemp
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA</pre>||Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
|-
|-
Line 35,180: Line 33,080:
48      PHA
48      PHA
A2 22    LDX #34
A2 22    LDX #34
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
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
Line 35,189: Line 33,088:
08      PHP
08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00    NOP $00
04 00    NOP $00
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
Line 35,198: Line 33,096:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00    NOP $00
04 00    NOP $00
F0 xx   BEQ @A-1
F0 FA   BEQ *-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 35,209: Line 33,106:
38      SEC
38      SEC
A9 16    LDA #22
A9 16    LDA #22
@A:
24 00    BIT $00
24 00    BIT $00
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F7   BNE *-7
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 35,218: Line 33,114:
38      SEC
38      SEC
A9 16    LDA #22
A9 16    LDA #22
@A:
24 00    BIT $00
24 00    BIT $00
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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
|-
|-
Line 35,231: Line 33,126:
48      PHA
48      PHA
A2 21    LDX #33
A2 21    LDX #33
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
68      PLA
68      PLA
AA      TAX
AA      TAX
Line 35,243: Line 33,137:
48      PHA
48      PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
@A:
38      SEC ;first loop only
38      SEC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
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 35,257: Line 33,150:
38      SEC
38      SEC
A9 21    LDA #33
A9 21    LDA #33
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 35,267: Line 33,159:
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 35,277: Line 33,168:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F4   BEQ *-10</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 35,294: Line 33,185:
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
A2 E8    LDX #232 ;hides 'INX'
A2 E8    LDX #232 ;hides 'INX'
@X = * - 1
EA      NOP
EA      NOP
D0 xx   BNE @X</pre>||Clobbers X, and Z&N; requires dummy interrupt handler; and writes in stack
D0 FC   BNE *-2</pre>||Clobbers X, and Z&N; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
A0 98    LDY #152 ;hides 'TYA'
A0 98    LDY #152 ;hides 'TYA'
@Y = * - 1
88      DEY
88      DEY
30 xx   BMI @Y</pre>||Clobbers A, Y, and Z&N; requires dummy interrupt handler; and writes in stack
30 FC   BMI *-2</pre>||Clobbers A, Y, and Z&N; requires dummy interrupt handler; and writes in stack
|-
|<pre>EA      NOP
A2 17    LDX #23
48      PHA
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A0 17    LDY #23
A0 17    LDY #23
@Y:
48      PHA
48      PHA
88      DEY
88      DEY
D0 xx   BNE @Y</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>EA      NOP
|<pre>EA      NOP
A2 17   LDX #23
68      PLA
@X:
A0 24   LDY #36
48       PHA
88       DEY
CA      DEX
D0 FB   BNE *-3</pre>||Clobbers A, Y, S, and Z&N
D0 xx   BNE @X</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68      PLA
68      PLA
A2 24    LDX #36
A2 24    LDX #36
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|<pre>EA      NOP
68      PLA
A0 24    LDY #36
@Y:
88      DEY
D0 xx    BNE @Y</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
48      PHA
48      PHA
90 xx   BCC @A-1</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
90 FB   BCC *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 35,354: Line 33,238:
EA      NOP
EA      NOP
A2 1A    LDX #26
A2 1A    LDX #26
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
A0 1A    LDY #26
A0 1A    LDY #26
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
85 xx    STA @zptemp
85 xx    STA @zptemp
90 xx   BCC @A-1</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>68      PLA
|<pre>68      PLA
38      SEC
38      SEC
A9 24    LDA #36
A9 24    LDA #36
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</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>EA      NOP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00    NOP $00
04 00    NOP $00
90 xx   BCC @A-1</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
90 FA   BCC *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 35,393: Line 33,272:
48      PHA
48      PHA
A2 23    LDX #35
A2 23    LDX #35
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
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
Line 35,403: Line 33,281:
08      PHP
08      PHP
A0 23    LDY #35
A0 23    LDY #35
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 35,412: Line 33,289:
08      PHP
08      PHP
A2 23    LDX #35
A2 23    LDX #35
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 17    LDA #23
A9 17    LDA #23
@A:
24 00    BIT $00
24 00    BIT $00
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F7   BNE *-7</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 35,437: Line 33,312:
38      SEC
38      SEC
A9 23    LDA #35
A9 23    LDA #35
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 35,446: Line 33,320:
38      SEC
38      SEC
A9 23    LDA #35
A9 23    LDA #35
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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 35,457: Line 33,330:
38      SEC
38      SEC
A9 22    LDA #34
A9 22    LDA #34
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
|-
|<pre>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
F0 F4    BEQ *-10</pre>||Clobbers A, S, Z&N, and C
|-
!colspan="2"|15 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@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
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
F0 F4   BEQ *-10</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 35,484: Line 33,375:
|<pre>EA      NOP
|<pre>EA      NOP
A0 25    LDY #37
A0 25    LDY #37
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A2 25    LDX #37
A2 25    LDX #37
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 35,502: Line 33,391:
|<pre>08      PHP
|<pre>08      PHP
A2 24    LDX #36
A2 24    LDX #36
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
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
|<pre>08      PHP
A0 24    LDY #36
A0 24    LDY #36
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
A9 25    LDA #37
A9 25    LDA #37
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</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 35,534: Line 33,420:
|<pre>08      PHP
|<pre>08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
00 00    BRK 0
00 00    BRK 0
10 xx   BPL @A-1
10 FA   BPL *-4
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 #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
00 00    BRK 0
00 00    BRK 0
10 xx   BPL @A-1
10 FA   BPL *-4
68      PLA</pre>||Clobbers Z&N, C, and V; requires dummy interrupt handler; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires dummy interrupt handler; and writes in stack
|-
|-
Line 35,561: Line 33,445:
38      SEC
38      SEC
A9 23    LDA #35
A9 23    LDA #35
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
Line 35,570: Line 33,453:
38      SEC
38      SEC
A9 23    LDA #35
A9 23    LDA #35
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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
|-
|-
Line 35,578: Line 33,460:
38      SEC
38      SEC
A9 14    LDA #20 ;hides 'NOP zp,X'
A9 14    LDA #20 ;hides 'NOP zp,X'
@A = * - 1
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
Line 35,587: Line 33,468:
38      SEC
38      SEC
A9 14    LDA #20 ;hides 'NOP zp,X'
A9 14    LDA #20 ;hides 'NOP zp,X'
@A = * - 1
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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 Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
Line 35,599: Line 33,479:
38      SEC
38      SEC
A9 23    LDA #35
A9 23    LDA #35
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 35,608: Line 33,487:
38      SEC
38      SEC
A9 23    LDA #35
A9 23    LDA #35
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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 35,617: Line 33,495:
48      PHA
48      PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
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
Line 35,629: Line 33,506:
48      PHA
48      PHA
A0 C8    LDY #200 ;hides 'INY'
A0 C8    LDY #200 ;hides 'INY'
@Y = * - 1
C8      INY
C8      INY
C8      INY
C8      INY
D0 xx   BNE @Y
D0 FB   BNE *-3
68      PLA
68      PLA
A8      TAY
A8      TAY
Line 35,643: Line 33,519:
38      SEC
38      SEC
A9 13    LDA #19
A9 13    LDA #19
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F7   BNE *-7
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 35,653: Line 33,528:
!colspan="2"|15 bytes
!colspan="2"|15 bytes
|-
|-
|<pre>A5 00    LDA $00
|<pre>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
F0 F4    BEQ *-10</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
!colspan="2"|16 bytes
|-
|<pre>EA      NOP
A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@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
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
F0 F4   BEQ *-10</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 35,672: Line 33,566:
|<pre>48      PHA
|<pre>48      PHA
A2 25    LDX #37
A2 25    LDX #37
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</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
|<pre>48      PHA
A0 25    LDY #37
A0 25    LDY #37
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 FB   BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 35,690: Line 33,582:
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
A2 25    LDX #37
A2 25    LDX #37
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
A0 25    LDY #37
A0 25    LDY #37
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
48      PHA
48      PHA
90 xx   BCC @A-1</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
90 FB   BCC *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 35,726: Line 33,615:
|<pre>68      PLA
|<pre>68      PLA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
85 xx    STA @zptemp
85 xx    STA @zptemp
90 xx   BCC @A-1</pre>||Clobbers A, S, Z&N, C, and V; and requires @zptemp
90 FA   BCC *-4</pre>||Clobbers A, S, Z&N, C, and V; and requires @zptemp
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00    NOP $00
04 00    NOP $00
90 xx   BCC @A-1</pre>||Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes
90 FA   BCC *-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 35,742: Line 33,629:
|<pre>08      PHP
|<pre>08      PHP
A0 EC    LDY #236 ;hides 'CPX abs'
A0 EC    LDY #236 ;hides 'CPX abs'
@Y = * - 1
E6 xx    INC @zptemp
E6 xx    INC @zptemp
C8      INY
C8      INY
D0 xx   BNE @Y
D0 FA   BNE *-4
28      PLP</pre>||Clobbers Y; requires @zptemp; and writes in stack
28      PLP</pre>||Clobbers Y; requires @zptemp; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 EC    LDX #236 ;hides 'CPX abs'
A2 EC    LDX #236 ;hides 'CPX abs'
@X = * - 1
E6 xx    INC @zptemp
E6 xx    INC @zptemp
E8      INX
E8      INX
D0 xx   BNE @X
D0 FA   BNE *-4
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|-
Line 35,759: Line 33,644:
EA      NOP
EA      NOP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
85 xx    STA @zptemp
85 xx    STA @zptemp
90 xx   BCC @A-1</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>48      PHA
|<pre>48      PHA
Line 35,768: Line 33,652:
08      PHP
08      PHP
A2 23    LDX #35
A2 23    LDX #35
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
Line 35,777: Line 33,660:
08      PHP
08      PHP
A0 23    LDY #35
A0 23    LDY #35
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
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
|-
|-
Line 35,786: Line 33,668:
38      SEC
38      SEC
A9 24    LDA #36
A9 24    LDA #36
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</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>EA      NOP
EA      NOP
EA      NOP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00    NOP $00
04 00    NOP $00
90 xx   BCC @A-1</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
90 FA   BCC *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 35,811: Line 33,691:
48      PHA
48      PHA
A2 23    LDX #35
A2 23    LDX #35
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
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
Line 35,822: Line 33,701:
08      PHP
08      PHP
A2 23    LDX #35
A2 23    LDX #35
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 35,832: Line 33,710:
08      PHP
08      PHP
A0 23    LDY #35
A0 23    LDY #35
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 35,840: Line 33,717:
38      SEC
38      SEC
A9 17    LDA #23
A9 17    LDA #23
@A:
24 00    BIT $00
24 00    BIT $00
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F7   BNE *-7</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 35,851: Line 33,727:
48      PHA
48      PHA
A2 22    LDX #34
A2 22    LDX #34
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
68      PLA
68      PLA
AA      TAX
AA      TAX
Line 35,863: Line 33,738:
38      SEC
38      SEC
A9 23    LDA #35
A9 23    LDA #35
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 35,875: Line 33,749:
38      SEC
38      SEC
A9 22    LDA #34
A9 22    LDA #34
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
!colspan="2"|14 bytes
!colspan="2"|15 bytes
|-
|-
|<pre>68      PLA
|<pre>EA      NOP
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@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
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, S, Z&N, and C
F0 F4   BEQ *-10</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|15 bytes
!colspan="2"|16 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
EA      NOP
EA      NOP
EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@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
EA      NOP
EA      NOP
EA      NOP
18      CLC
18      CLC
B0 xx   BCS @A-1</pre>||Clobbers A, Z&N, and C
F0 F4   BEQ *-10</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 35,914: Line 33,795:
|-
|-
|<pre>A2 1B    LDX #27
|<pre>A2 1B    LDX #27
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 1B    LDY #27
|<pre>A0 1B    LDY #27
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 35,946: Line 33,825:
|<pre>08      PHP
|<pre>08      PHP
A2 1A    LDX #26
A2 1A    LDX #26
@X:
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X
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
|<pre>08      PHP
A0 1A    LDY #26
A0 1A    LDY #26
@Y:
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FA   BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
Line 35,963: Line 33,840:
38      SEC
38      SEC
A9 25    LDA #37
A9 25    LDA #37
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 35,972: Line 33,848:
38      SEC
38      SEC
A9 24    LDA #36
A9 24    LDA #36
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 35,980: Line 33,855:
38      SEC
38      SEC
A9 24    LDA #36
A9 24    LDA #36
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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 35,996: Line 33,870:
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 F8   BEQ *-6
68      PLA</pre>||Clobbers Z&N, and C; 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
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
85 xx    STA @zptemp
85 xx    STA @zptemp
20 xx xx JSR @rts15
20 xx xx JSR @rts15
F0 xx   BEQ @A-1
F0 F8   BEQ *-6
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp, and @rts15; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp, and @rts15; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
85 xx    STA @zptemp
85 xx    STA @zptemp
00 00    BRK 0
00 00    BRK 0
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 F8   BEQ *-6
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
04 00    NOP $00
20 xx xx JSR @rts15
20 xx xx JSR @rts15
F0 xx   BEQ @A-1
F0 F8   BEQ *-6
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 support for unofficial opcodes; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
04 00    NOP $00
04 00    NOP $00
00 00    BRK 0
00 00    BRK 0
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 F8   BEQ *-6
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
|-
|-
Line 36,041: Line 33,910:
|<pre>48      PHA
|<pre>48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
08      PHP
08      PHP
Line 36,048: Line 33,916:
28      PLP
28      PLP
18      CLC
18      CLC
F0 xx   BEQ @A-1
F0 F7   BEQ *-7
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
Line 36,056: Line 33,924:
38      SEC
38      SEC
A9 22    LDA #34
A9 22    LDA #34
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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
Line 36,066: Line 33,933:
48      PHA
48      PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
68      PLA
68      PLA
28      PLP</pre>||Requires @rts15, and support for unofficial opcodes; and writes in stack
28      PLP</pre>||Requires @rts15, and support for unofficial opcodes; and writes in stack
Line 36,077: Line 33,943:
48      PHA
48      PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
@A:
18      CLC ;first loop only
18      CLC ;first loop only
F0 xx   BEQ @A-1
F0 FC   BEQ *-2
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
Line 36,090: Line 33,955:
38      SEC
38      SEC
A9 22    LDA #34
A9 22    LDA #34
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 36,098: Line 33,962:
!colspan="2"|15 bytes
!colspan="2"|15 bytes
|-
|-
|<pre>68      PLA
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 36,111: Line 33,972:
EA      NOP
EA      NOP
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F6   BEQ *-8</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 36,121: Line 33,982:
|-
|-
|<pre>A0 26    LDY #38
|<pre>A0 26    LDY #38
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 26    LDX #38
|<pre>A2 26    LDX #38
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 36,150: Line 34,009:
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
20 xx xx JSR @rts14
20 xx xx JSR @rts14
10 xx   BPL @A-1</pre>||Clobbers A, Z&N, C, and V; requires @rts14; and writes in stack
10 F9   BPL *-5</pre>||Clobbers A, Z&N, C, and V; requires @rts14; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A2 24    LDX #36
A2 24    LDX #36
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
Line 36,166: Line 34,023:
08      PHP
08      PHP
A0 24    LDY #36
A0 24    LDY #36
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
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
|-
|-
Line 36,174: Line 34,030:
38      SEC
38      SEC
A9 25    LDA #37
A9 25    LDA #37
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</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>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
48      PHA
48      PHA
48      PHA
48      PHA
00 00    BRK 0
00 00    BRK 0
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
F0 F9   BEQ *-5</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 36,190: Line 34,044:
A6 00    LDX $00
A6 00    LDX $00
A2 24    LDX #36
A2 24    LDX #36
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 36,198: Line 34,051:
A4 00    LDY $00
A4 00    LDY $00
A0 24    LDY #36
A0 24    LDY #36
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; 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'
@A:
08      PHP
08      PHP
28      PLP
28      PLP
20 xx xx JSR @rts12
20 xx xx JSR @rts12
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
F0 F8   BEQ *-6</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires @rts15; and writes in stack
F0 F8   BEQ *-6</pre>||Clobbers A, Z&N, and C; requires @rts15; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
38      SEC
38      SEC
A9 25    LDA #37
A9 25    LDA #37
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
00 00    BRK 0
00 00    BRK 0
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
F0 F8   BEQ *-6</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'
@A:
48      PHA
48      PHA
20 xx xx JSR @rts14
20 xx xx JSR @rts14
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, S, Z&N, and C; requires @rts14; and writes in stack
F0 F8   BEQ *-6</pre>||Clobbers A, S, Z&N, and C; requires @rts14; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 36,249: Line 34,096:
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
08      PHP
08      PHP
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X
76 00    ROR $00,X
28      PLP
28      PLP
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C; and writes in stack
F0 F7   BEQ *-7</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 36,260: Line 34,106:
48      PHA
48      PHA
A2 23    LDX #35
A2 23    LDX #35
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
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
Line 36,269: Line 34,114:
08      PHP
08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
00 00    BRK 0
00 00    BRK 0
10 xx   BPL @A-1
10 FA   BPL *-4
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
|-
|-
Line 36,278: Line 34,122:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
00 00    BRK 0
00 00    BRK 0
10 xx   BPL @A-1
10 FA   BPL *-4
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, C, and V; requires dummy interrupt handler; and writes in stack
|-
|-
Line 36,291: Line 34,134:
48      PHA
48      PHA
A2 23    LDX #35
A2 23    LDX #35
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
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
Line 36,300: Line 34,142:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
85 xx    STA @zptemp
85 xx    STA @zptemp
F0 xx   BEQ @A-1
F0 FA   BEQ *-4
68      PLA
68      PLA
28      PLP</pre>||Requires @zptemp; and writes in stack
28      PLP</pre>||Requires @zptemp; and writes in stack
Line 36,310: Line 34,151:
A5 00    LDA $00
A5 00    LDA $00
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
00 00    BRK 0
00 00    BRK 0
10 xx   BPL @A-1
10 FA   BPL *-4
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
|-
|-
Line 36,319: Line 34,159:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
00 00    BRK 0
00 00    BRK 0
10 xx   BPL @A-1
10 FA   BPL *-4
68      PLA</pre>||Clobbers Z&N, C, and V; requires dummy interrupt handler; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires dummy interrupt handler; and writes in stack
|-
|-
Line 36,330: Line 34,169:
38      SEC
38      SEC
A9 23    LDA #35
A9 23    LDA #35
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A, and S; and writes in stack
28      PLP</pre>||Clobbers A, and S; and writes in stack
|-
|-
Line 36,340: Line 34,178:
38      SEC
38      SEC
A9 23    LDA #35
A9 23    LDA #35
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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
|-
|-
Line 36,348: Line 34,185:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00    NOP $00
04 00    NOP $00
F0 xx   BEQ @A-1
F0 FA   BEQ *-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 36,360: Line 34,196:
48      PHA
48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
4C xx xx JMP *+3
4C xx xx JMP *+3
F0 xx   BEQ @A-1
F0 F9   BEQ *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack; and not relocatable code
28      PLP</pre>||Writes in stack; and not relocatable code
Line 36,372: Line 34,207:
48      PHA
48      PHA
A2 22    LDX #34
A2 22    LDX #34
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
68      PLA
68      PLA
AA      TAX
AA      TAX
Line 36,385: Line 34,219:
38      SEC
38      SEC
A9 23    LDA #35
A9 23    LDA #35
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 36,398: Line 34,231:
38      SEC
38      SEC
A9 22    LDA #34
A9 22    LDA #34
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 36,407: Line 34,239:
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
Line 36,417: Line 34,248:
90 00    BCC *+2
90 00    BCC *+2
18      CLC
18      CLC
F0 xx   BEQ @A-1</pre>||Clobbers A, Z&N, and C
F0 F3   BEQ *-11</pre>||Clobbers A, Z&N, and C
|-
|-
|}
|}
Line 36,440: Line 34,271:
|<pre>38      SEC
|<pre>38      SEC
A9 1B    LDA #27
A9 1B    LDA #27
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A</pre>||Clobbers A, Z&N, C, and V
D0 F8   BNE *-6</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>A2 E0    LDX #224 ;hides 'CPX #imm'
|<pre>A2 E0    LDX #224 ;hides 'CPX #imm'
@X = * - 1
B4 48    LDY $48,X ;hides 'PHA'
B4 48    LDY $48,X ;hides 'PHA'
E8      INX
E8      INX
E8      INX
E8      INX
D0 xx   BNE @X</pre>||Clobbers X, Y, S, Z&N, C, and V; and writes in stack
D0 F9   BNE *-5</pre>||Clobbers X, Y, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>A2 E0    LDX #224 ;hides 'CPX #imm'
|<pre>A2 E0    LDX #224 ;hides 'CPX #imm'
@X = * - 1
14 48    NOP $48,X ;hides 'PHA'
14 48    NOP $48,X ;hides 'PHA'
E8      INX
E8      INX
E8      INX
E8      INX
D0 xx   BNE @X</pre>||Clobbers X, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
D0 F9   BNE *-5</pre>||Clobbers X, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>A0 E0    LDY #224 ;hides 'CPX #imm'
|<pre>A0 E0    LDY #224 ;hides 'CPX #imm'
@Y = * - 1
14 48    NOP $48,X ;hides 'PHA'
14 48    NOP $48,X ;hides 'PHA'
C8      INY
C8      INY
C8      INY
C8      INY
D0 xx   BNE @Y</pre>||Clobbers Y, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
D0 F9   BNE *-5</pre>||Clobbers Y, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 36,471: Line 34,298:
48      PHA
48      PHA
A2 24    LDX #36
A2 24    LDX #36
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
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
Line 36,479: Line 34,305:
|<pre>08      PHP
|<pre>08      PHP
A2 17    LDX #23
A2 17    LDX #23
@X:
24 00    BIT $00
24 00    BIT $00
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 F9   BNE *-5
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 17    LDY #23
A0 17    LDY #23
@Y:
C5 00    CMP $00
C5 00    CMP $00
88      DEY
88      DEY
D0 xx   BNE @Y
D0 F9   BNE *-5
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>A0 E0    LDY #224 ;hides 'CPX #imm'
2C 24 EA BIT $EA24 ;hides 'BIT zp'
C8      INY
C8      INY
D0 F8    BNE *-6</pre>||Clobbers Y, Z&N, C, and V
|-
|-
|<pre>A2 E0    LDX #224 ;hides 'CPX #imm'
|<pre>A2 E0    LDX #224 ;hides 'CPX #imm'
@X = * - 1
2C 24 EA BIT $EA24 ;hides 'BIT zp'
2C 24 EA BIT $EA24 ;hides 'BIT zp'
E8      INX
E8      INX
E8      INX
E8      INX
D0 xx   BNE @X</pre>||Clobbers X, Z&N, C, and V
D0 F8   BNE *-6</pre>||Clobbers X, Z&N, C, and V
|-
|<pre>A0 E0    LDY #224 ;hides 'CPX #imm'
@Y = * - 1
2C 24 EA BIT $EA24 ;hides 'BIT zp'
C8      INY
C8      INY
D0 xx    BNE @Y</pre>||Clobbers Y, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
85 xx    STA @zptemp
85 xx    STA @zptemp
90 xx   BCC @A-1
90 FA   BCC *-4
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
28      PLP</pre>||Clobbers A; requires @zptemp; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
85 xx    STA @zptemp
85 xx    STA @zptemp
90 xx   BCC @A-1
90 FA   BCC *-4
68      PLA</pre>||Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
|-
|-
|<pre>A0 0D    LDY #13 ;hides 'ORA abs'
|<pre>A0 0D    LDY #13 ;hides 'ORA abs'
@Y = * - 1
AD 00 68 LDA $6800 ;hides 'PLA'
AD 00 68 LDA $6800 ;hides 'PLA'
EA      NOP
EA      NOP
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, S, and Z&N
D0 F8   BNE *-6</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>A2 0D    LDX #13 ;hides 'ORA abs'
|<pre>A2 0D    LDX #13 ;hides 'ORA abs'
@X = * - 1
AD 00 68 LDA $6800 ;hides 'PLA'
AD 00 68 LDA $6800 ;hides 'PLA'
EA      NOP
EA      NOP
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, S, and Z&N
D0 F8   BNE *-6</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00    NOP $00
04 00    NOP $00
90 xx   BCC @A-1
90 FA   BCC *-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>A2 0C    LDX #12 ;hides 'NOP abs'
|<pre>A2 0C    LDX #12 ;hides 'NOP abs'
@X = * - 1
A5 00    LDA $0
A5 00    LDA $0
68      PLA
68      PLA
48      PHA
48      PHA
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, 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>A0 0C    LDY #12 ;hides 'NOP abs'
|<pre>A0 0C    LDY #12 ;hides 'NOP abs'
@Y = * - 1
A5 00    LDA $0
A5 00    LDA $0
68      PLA
68      PLA
48      PHA
48      PHA
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, 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>48      PHA
|<pre>48      PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
@A:
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00    NOP $00
04 00    NOP $00
90 xx   BCC @A-1
90 FA   BCC *-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 36,581: Line 34,395:
38      SEC
38      SEC
A9 1A    LDA #26
A9 1A    LDA #26
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F8   BNE *-6
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>A0 01    LDY #1
|<pre>A0 01    LDY #1
@Y:
A2 25    LDX #37
A2 25    LDX #37
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
88      DEY
88      DEY
D0 xx   BNE @Y</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>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
A2 25    LDX #37
A2 25    LDX #37
@X:
CA      DEX
CA      DEX
D0 xx   BNE @X
D0 FB   BNE *-3
18      CLC
18      CLC
90 xx   BCC @A-1</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>A9 0A    LDA #$0A ;hides 'ASL A'
@A:
A0 25    LDY #37
A0 25    LDY #37
@Y:
88      DEY
88      DEY
D0 xx   BNE @Y
D0 FB   BNE *-3
18      CLC
18      CLC
90 xx   BCC @A-1</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
38      SEC
38      SEC
A9 1A    LDA #26
A9 1A    LDA #26
@A:
EA      NOP
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
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>A2 0C    LDX #12 ;hides 'NOP abs'
|<pre>A2 0C    LDX #12 ;hides 'NOP abs'
@X = * - 1
44 00    NOP $0
44 00    NOP $0
EA      NOP
EA      NOP
E6 xx    INC @zptemp
E6 xx    INC @zptemp
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N; and requires @zptemp, and support for unofficial opcodes
D0 F7   BNE *-7</pre>||Clobbers X, and Z&N; and requires @zptemp, and support for unofficial opcodes
|-
|-
|<pre>A0 0C    LDY #12 ;hides 'NOP abs'
|<pre>A0 0C    LDY #12 ;hides 'NOP abs'
@Y = * - 1
44 00    NOP $0
44 00    NOP $0
EA      NOP
EA      NOP
E6 xx    INC @zptemp
E6 xx    INC @zptemp
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N; and requires @zptemp, and support for unofficial opcodes
D0 F7   BNE *-7</pre>||Clobbers Y, and Z&N; and requires @zptemp, and support for unofficial opcodes
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 36,645: Line 34,449:
38      SEC
38      SEC
A9 23    LDA #35
A9 23    LDA #35
@A:
E9 01    SBC #1
E9 01    SBC #1
D0 xx   BNE @A
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>A0 0C    LDY #12 ;hides 'NOP abs'
|<pre>A0 0C    LDY #12 ;hides 'NOP abs'
@Y = * - 1
44 00    NOP $0
44 00    NOP $0
EA      NOP
EA      NOP
Line 36,658: Line 34,460:
04 00    NOP $00
04 00    NOP $00
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
D0 F6   BNE *-8</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>A2 0C    LDX #12 ;hides 'NOP abs'
|<pre>A2 0C    LDX #12 ;hides 'NOP abs'
@X = * - 1
44 00    NOP $0
44 00    NOP $0
EA      NOP
EA      NOP
Line 36,667: Line 34,468:
04 00    NOP $00
04 00    NOP $00
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
D0 F6   BNE *-8</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>A0 EC    LDY #236 ;hides 'CPX abs'
|<pre>A2 EC    LDX #236 ;hides 'CPX abs'
@Y = * - 1
E6 xx    INC @zptemp
E6 xx    INC @zptemp
EA      NOP
EA      NOP
Line 36,678: Line 34,478:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
C8       INY
E8       INX
C8       INY
E8       INX
D0 xx   BNE @Y</pre>||Clobbers Y, Z&N, and C; and requires @zptemp
D0 F5   BNE *-9</pre>||Clobbers X, Z&N, and C; and requires @zptemp
|-
|-
|<pre>A2 EC    LDX #236 ;hides 'CPX abs'
|<pre>A0 EC    LDY #236 ;hides 'CPX abs'
@X = * - 1
E6 xx    INC @zptemp
E6 xx    INC @zptemp
EA      NOP
EA      NOP
Line 36,689: Line 34,488:
EA      NOP
EA      NOP
EA      NOP
EA      NOP
E8       INX
C8       INY
E8       INX
C8       INY
D0 xx   BNE @X</pre>||Clobbers X, Z&N, and C; and requires @zptemp
D0 F5   BNE *-9</pre>||Clobbers Y, Z&N, and C; and requires @zptemp
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
|-
|-
|<pre>A2 05    LDX #5 ;hides 'ORA zp'
|<pre>A2 05    LDX #5 ;hides 'ORA zp'
@X = * - 1
E8      INX ;first loop only
E8      INX ;first loop only
36 00    ROL $00,X
36 00    ROL $00,X
Line 36,703: Line 34,501:
76 00    ROR $00,X
76 00    ROR $00,X
CA      DEX
CA      DEX
D0 xx   BNE @X</pre>||Clobbers A, X, and Z&N
D0 F3   BNE *-11</pre>||Clobbers A, X, and Z&N
|-
|-
|<pre>A0 05    LDY #5 ;hides 'ORA zp'
|<pre>A0 05    LDY #5 ;hides 'ORA zp'
@Y = * - 1
C8      INY ;first loop only
C8      INY ;first loop only
36 00    ROL $00,X
36 00    ROL $00,X
Line 36,713: Line 34,510:
76 00    ROR $00,X
76 00    ROR $00,X
88      DEY
88      DEY
D0 xx   BNE @Y</pre>||Clobbers A, Y, and Z&N
D0 F3   BNE *-11</pre>||Clobbers A, Y, and Z&N
|-
|-
|}
|}

Revision as of 08:58, 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
30 FC    BMI *-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
A9 69    LDA #$69 ;hides 'ADC #$D8'
D8       CLD ;first loop only
30 FC    BMI *-2
Clobbers A, Z&N, C, V, and D
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
A9 69    LDA #$69 ;hides 'ADC #$08'
08       PHP ;first loop only
30 FC    BMI *-2
Clobbers A, S, Z&N, C, and V; and writes in stack
EA       NOP
48       PHA
48       PHA
00 00    BRK 0
Clobbers S; requires dummy interrupt handler; and writes in stack
A9 4B    LDA #$4B ;hides 'ASR #$EA'
EA       NOP ;first loop only
F0 FC    BEQ *-2
Clobbers A, Z&N, and C; and requires support for unofficial opcodes
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
EA       NOP
A9 2A    LDA #$2A ;hides 'ROL A'
18       CLC
30 FC    BMI *-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
30 FC    BMI *-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
A9 69    LDA #$69 ;hides 'ADC #$D8'
D8       CLD ;first loop only
30 FC    BMI *-2
Clobbers A, Z&N, C, V, and D
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
A9 2A    LDA #$2A ;hides 'ROL A'
85 xx    STA @zptemp
30 FB    BMI *-3
Clobbers A, Z&N, and C; and requires @zptemp
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
A9 2A    LDA #$2A ;hides 'ROL A'
04 00    NOP $00
30 FB    BMI *-3
Clobbers A, Z&N, and C; and requires support for unofficial opcodes
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'
30 FD    BMI *-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
A2 04    LDX #4
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
68       PLA
A0 04    LDY #4
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
EA       NOP
A9 2A    LDA #$2A ;hides 'ROL A'
48       PHA
30 FC    BMI *-2
Clobbers A, S, Z&N, and C; and writes in stack
68       PLA
A9 69    LDA #$69 ;hides 'ADC #$D8'
D8       CLD ;first loop only
30 FC    BMI *-2
Clobbers A, S, Z&N, C, V, and D
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
68       PLA
A9 4B    LDA #$4B ;hides 'ASR #$EA'
EA       NOP ;first loop only
F0 FC    BEQ *-2
Clobbers A, S, Z&N, and C; and requires support for unofficial opcodes
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
30 FA    BMI *-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
A9 69    LDA #$69 ;hides 'ADC #$D8'
D8       CLD ;first loop only
30 FC    BMI *-2
Clobbers A, Z&N, C, V, and D
EA       NOP
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
EA       NOP
A9 2A    LDA #$2A ;hides 'ROL A'
85 xx    STA @zptemp
30 FB    BMI *-3
Clobbers A, Z&N, and C; and requires @zptemp
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
EA       NOP
A9 2A    LDA #$2A ;hides 'ROL A'
04 00    NOP $00
30 FB    BMI *-3
Clobbers A, Z&N, and C; and requires support for unofficial opcodes
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
68       PLA
48       PHA
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
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
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
30 FD    BMI *-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'
30 FD    BMI *-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'
30 FD    BMI *-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
30 FC    BMI *-2
28       PLP
Clobbers A; and writes in stack
48       PHA
A9 2A    LDA #$2A ;hides 'ROL A'
18       CLC
30 FC    BMI *-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
A0 82    LDY #130 ;hides 'NOP #imm'
04 EA    NOP $EA ;hides 'NOP'
88       DEY
30 FA    BMI *-4
Clobbers Y, and Z&N; and requires support for unofficial opcodes
A2 82    LDX #130 ;hides 'NOP #imm'
04 EA    NOP $EA ;hides 'NOP'
CA       DEX
30 FA    BMI *-4
Clobbers X, and Z&N; and requires support for unofficial opcodes
8 bytes
EA       NOP
08       PHP
24 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'
30 FD    BMI *-1
Clobbers A, S, Z&N, and C
A9       LDA #1
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
EA       NOP
A0 05    LDY #5
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA       NOP
A2 05    LDX #5
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
30 FD    BMI *-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
A9 69    LDA #$69 ;hides 'ADC #$D8'
D8       CLD ;first loop only
30 FC    BMI *-2
28       PLP
Clobbers A; and writes in stack
08       PHP
A2 04    LDX #4
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 04    LDY #4
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$D8'
D8       CLD ;first loop only
30 FC    BMI *-2
68       PLA
Clobbers Z&N, C, V, and D; 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
48       PHA
A9 4B    LDA #$4B ;hides 'ASR #$EA'
EA       NOP ;first loop only
F0 FC    BEQ *-2
68       PLA
Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
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
A2 04    LDX #4
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
A0 04    LDY #4
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
A9 69    LDA #$69 ;hides 'ADC #$D8'
D8       CLD ;first loop only
EA       NOP
30 FB    BMI *-3
Clobbers A, Z&N, C, V, and D
20 xx xx JSR @rts14
20 xx xx JSR @rts15
Requires @rts14, and @rts15; and writes in stack
E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
30 FD    BMI *-1
Clobbers A, Z&N, and C; and requires @zptemp
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
A9 2A    LDA #$2A ;hides 'ROL A'
48       PHA
18       CLC
30 FB    BMI *-3
Clobbers A, S, Z&N, and C; and writes in stack
A9 4B    LDA #$4B ;hides 'ASR #$EA'
EA       NOP ;first loop only
EA       NOP
F0 FB    BEQ *-3
Clobbers A, Z&N, and C; and requires support for unofficial opcodes
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
A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
30 FD    BMI *-1
Clobbers A, Z&N, and C
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
EA       NOP
08       PHP
A9 2A    LDA #$2A ;hides 'ROL A'
18       CLC
30 FC    BMI *-2
28       PLP
Clobbers A; and writes in stack
08       PHP
A0 03    LDY #3
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 03    LDX #3
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
EA       NOP
48       PHA
A9 2A    LDA #$2A ;hides 'ROL A'
18       CLC
30 FC    BMI *-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'
30 FD    BMI *-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
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
30 FD    BMI *-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
A9 69    LDA #$69 ;hides 'ADC #$D8'
D8       CLD ;first loop only
30 FC    BMI *-2
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
A9 69    LDA #$69 ;hides 'ADC #$D8'
D8       CLD ;first loop only
30 FC    BMI *-2
68       PLA
Clobbers Z&N, C, V, and D; and writes in stack
48       PHA
A9 2A    LDA #$2A ;hides 'ROL A'
85 xx    STA @zptemp
30 FB    BMI *-3
68       PLA
Clobbers Z&N, and C; requires @zptemp; 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
48       PHA
48       PHA
A9 2A    LDA #$2A ;hides 'ROL A'
18       CLC
30 FC    BMI *-2
68       PLA
Clobbers S, Z&N, and C; and writes in stack
48       PHA
A9 2A    LDA #$2A ;hides 'ROL A'
04 00    NOP $00
30 FB    BMI *-3
68       PLA
Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
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
A9 E9    LDA #$E9 ;hides 'SBC #$18'
18       CLC ;first loop only
10 FC    BPL *-2
Clobbers A, Z&N, C, and V
A9 4B    LDA #$4B ;hides 'ASR #$7A'
7A       NOP ;first loop only
F0 FC    BEQ *-2
Clobbers A, Z&N, and C; and requires support for unofficial opcodes
6 bytes
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
30 FD    BMI *-1
28       PLP
Clobbers A; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
30 FD    BMI *-1
68       PLA
Clobbers Z&N, and C; and writes in stack
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
30 FD    BMI *-1
Clobbers A, Z&N, and C
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
85 xx    STA @zptemp
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @zptemp, and @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
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
A4 00    LDY $00
A0 04    LDY #4
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A6 00    LDX $00
A2 04    LDX #4
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; 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'
30 FD    BMI *-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
30 FA    BMI *-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
A4 00    LDY $00
A0 04    LDY #4
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
A6 00    LDX $00
A2 04    LDX #4
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, 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
30 FA    BMI *-4
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
08       PHP
28       PLP
30 FA    BMI *-4
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
A9 E9    LDA #$E9 ;hides 'SBC #$18'
18       CLC ;first loop only
10 FC    BPL *-2
Clobbers A, Z&N, C, and V
08       PHP
28       PLP
00 00    BRK 0
00 00    BRK 0
Requires dummy interrupt handler; and writes in stack
EA       NOP
A9 4B    LDA #$4B ;hides 'ASR #$7A'
7A       NOP ;first loop only
F0 FC    BEQ *-2
Clobbers A, Z&N, and C; and requires support for unofficial opcodes
7 bytes
EA       NOP
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
30 FD    BMI *-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
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
30 FD    BMI *-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'
30 FD    BMI *-1
Clobbers A, Z&N, and C
48       PHA
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers S; requires @rts15; and writes in stack
8 bytes
24 00    BIT $00
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers Z&N, and V; requires @rts15; and writes in stack
08       PHP
28       PLP
20 xx xx JSR @rts12
20 xx xx JSR @rts14
Requires @rts12, and @rts14; and writes in stack
EA       NOP
EA       NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts15
Requires @rts14, and @rts15; and writes in stack
85 xx    STA @zptemp
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @zptemp, and @rts15; and writes in stack
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
30 FC    BMI *-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'
30 FD    BMI *-1
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
30 FD    BMI *-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'
30 FD    BMI *-1
28       PLP
Clobbers A; and writes in stack
C5 00    CMP $00
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
30 FD    BMI *-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
30 FC    BMI *-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
30 FB    BMI *-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
A9 E9    LDA #$E9 ;hides 'SBC #$18'
18       CLC ;first loop only
10 FC    BPL *-2
Clobbers A, S, Z&N, C, and V
68       PLA
A9 4B    LDA #$4B ;hides 'ASR #$7A'
7A       NOP ;first loop only
F0 FC    BEQ *-2
Clobbers A, S, Z&N, and C; and requires support for unofficial opcodes
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
A9 E9    LDA #$E9 ;hides 'SBC #$18'
18       CLC ;first loop only
10 FC    BPL *-2
Clobbers A, Z&N, C, and V
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'
30 FD    BMI *-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'
30 FD    BMI *-1
Clobbers A, S, Z&N, and C
EA       NOP
EA       NOP
A9 4B    LDA #$4B ;hides 'ASR #$7A'
7A       NOP ;first loop only
F0 FC    BEQ *-2
Clobbers A, Z&N, and C; and requires support for unofficial opcodes
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
EA       NOP
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
30 FD    BMI *-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
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
30 FD    BMI *-1
68       PLA
Clobbers Z&N, and C; and writes in stack
A9 2A    LDA #$2A ;hides 'ROL A'
18       CLC
90 00    BCC *+2
18       CLC
30 F9    BMI *-5
Clobbers A, Z&N, and C
08       PHP
28       PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
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
A9 69    LDA #$69 ;hides 'ADC #$D8'
D8       CLD ;first loop only
30 FC    BMI *-2
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
90 FC    BCC *-2
Clobbers A, Z&N, C, and V
6 bytes
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
30 FC    BMI *-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
A9 69    LDA #$69 ;hides 'ADC #$D8'
D8       CLD ;first loop only
EA       NOP
30 FB    BMI *-3
28       PLP
Clobbers A; and writes in stack
08       PHP
A2 04    LDX #4
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 04    LDY #4
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$D8'
D8       CLD ;first loop only
EA       NOP
30 FB    BMI *-3
68       PLA
Clobbers Z&N, C, V, and D; 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
E6 xx    INC @zptemp
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
30 FD    BMI *-1
68       PLA
Clobbers Z&N, and C; requires @zptemp; 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
EA       NOP
48       PHA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
30 FD    BMI *-1
68       PLA
Clobbers S, Z&N, and C; and writes in stack
48       PHA
A9 4B    LDA #$4B ;hides 'ASR #$EA'
EA       NOP ;first loop only
EA       NOP
F0 FB    BEQ *-3
68       PLA
Clobbers Z&N, and C; requires support for unofficial opcodes; 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
EA       NOP
C5 00    CMP $00
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
30 FD    BMI *-1
68       PLA
Clobbers Z&N, and C; and writes in stack
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
EA       NOP
48       PHA
48       PHA
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
10 bytes
EA       NOP
08       PHP
48       PHA
A9 2A    LDA #$2A ;hides 'ROL A'
18       CLC
30 FC    BMI *-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'
30 FD    BMI *-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
30 FC    BMI *-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
30 FC    BMI *-2
Clobbers A, Z&N, and C
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
00 00    BRK 0
30 FA    BMI *-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'
30 FD    BMI *-1
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
30 FD    BMI *-1
68       PLA
Clobbers S, Z&N, and C; and writes in stack
9 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
30 FD    BMI *-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
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
30 FD    BMI *-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
A9 69    LDA #$69 ;hides 'ADC #$D8'
D8       CLD ;first loop only
30 FC    BMI *-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
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
A0 07    LDY #7
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA       NOP
A2 07    LDX #7
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
90 FC    BCC *-2
Clobbers A, Z&N, C, and V
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
30 FC    BMI *-2
Clobbers A, S, Z&N, and C
7 bytes
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$18'
18       CLC ;first loop only
10 FC    BPL *-2
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
EA       NOP
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
30 FC    BMI *-2
Clobbers A, Z&N, and C
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$18'
18       CLC ;first loop only
10 FC    BPL *-2
68       PLA
Clobbers Z&N, C, and V; and writes in stack
20 xx xx JSR @rts12
00 00    BRK 0
00 00    BRK 0
Requires dummy interrupt handler, and @rts12; and writes in stack
48       PHA
A9 4B    LDA #$4B ;hides 'ASR #$7A'
7A       NOP ;first loop only
F0 FC    BEQ *-2
68       PLA
Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
8 bytes
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
30 FD    BMI *-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'
F0 FD    BEQ *-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
30 F9    BMI *-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'
30 FD    BMI *-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
30 FA    BMI *-4
28       PLP
Clobbers A; and writes in stack
48       PHA
A9 2A    LDA #$2A ;hides 'ROL A'
EA       NOP
EA       NOP
18       CLC
30 FA    BMI *-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
08       PHP
48       PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
08       PHP
28       PLP
30 FA    BMI *-4
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
90 FC    BCC *-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
EA       NOP
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
90 FC    BCC *-2
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
30 FC    BMI *-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
A9 E9    LDA #$E9 ;hides 'SBC #$18'
18       CLC ;first loop only
10 FC    BPL *-2
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
EA       NOP
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
30 FC    BMI *-2
Clobbers A, Z&N, and C
EA       NOP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$18'
18       CLC ;first loop only
10 FC    BPL *-2
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
28       PLP
08       PHP
28       PLP
00 00    BRK 0
00 00    BRK 0
Requires dummy interrupt handler; and writes in stack
EA       NOP
48       PHA
A9 4B    LDA #$4B ;hides 'ASR #$7A'
7A       NOP ;first loop only
F0 FC    BEQ *-2
68       PLA
Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
9 bytes
EA       NOP
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
30 FD    BMI *-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
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
Clobbers A, Z&N, and C
7 bytes
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
30 FC    BMI *-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
30 FC    BMI *-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'
30 FD    BMI *-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'
30 FD    BMI *-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'
F0 FD    BEQ *-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'
F0 FD    BEQ *-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
30 FB    BMI *-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
30 FB    BMI *-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
EA       NOP
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
30 FD    BMI *-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'
F0 FD    BEQ *-1
Clobbers A, S, Z&N, and C
A9       LDA #16
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A0 06    LDY #6
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
A2 06    LDX #6
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
EA       NOP
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
Clobbers A, Z&N, and C
7 bytes
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
90 FC    BCC *-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
90 FC    BCC *-2
68       PLA
Clobbers Z&N, C, and V; and writes in stack
8 bytes
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
30 FC    BMI *-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
A9 69    LDA #$69 ;hides 'ADC #$D8'
D8       CLD ;first loop only
EA       NOP
30 FB    BMI *-3
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
30 F4    BMI *-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
30 FB    BMI *-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'
30 FD    BMI *-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'
30 FD    BMI *-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
30 FC    BMI *-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
30 FC    BMI *-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
30 FC    BMI *-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
30 FC    BMI *-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
30 FA    BMI *-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'
30 FD    BMI *-1
68       PLA
28       PLP
Clobbers S; and writes in stack
11 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
30 FD    BMI *-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'
F0 FD    BEQ *-1
Clobbers A, S, Z&N, and C
7 bytes
EA       NOP
A0 06    LDY #6
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
EA       NOP
A2 06    LDX #6
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
EA       NOP
EA       NOP
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
Clobbers A, Z&N, and C
08       PHP
A9       LDA #11
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #11
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA       NOP
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
90 FC    BCC *-2
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
EA       NOP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
90 FC    BCC *-2
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
A9 E9    LDA #$E9 ;hides 'SBC #$18'
18       CLC ;first loop only
10 FC    BPL *-2
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'
F0 FD    BEQ *-1
28       PLP
Clobbers A; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
68       PLA
Clobbers Z&N, and C; and writes in stack
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-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
30 F9    BMI *-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
30 FA    BMI *-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'
F0 FD    BEQ *-1
Clobbers A, S, Z&N, and C
7 bytes
BA       TSX
68       PLA
9A       TXS
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-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
30 FC    BMI *-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
A2 06    LDX #6
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
EA       NOP
EA       NOP
A0 06    LDY #6
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
08       PHP
A2 05    LDX #5 ;hides 'ORA zp'
EA       NOP
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers A, and X; and writes in stack
08       PHP
A0 05    LDY #5 ;hides 'ORA zp'
EA       NOP
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers A, and Y; and writes in stack
A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
30 FB    BMI *-3
Clobbers A, Z&N, and C
68       PLA
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
90 FC    BCC *-2
28       PLP
Clobbers A, S, and Z&N; and writes in stack
9 bytes
EA       NOP
EA       NOP
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
90 FC    BCC *-2
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
EA       NOP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
90 FC    BCC *-2
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
30 FC    BMI *-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
A9 E9    LDA #$E9 ;hides 'SBC #$18'
18       CLC ;first loop only
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
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
EA       NOP
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-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
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-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'
F0 FD    BEQ *-1
Clobbers A, Z&N, and C
9 bytes
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
30 FC    BMI *-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
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
18       CLC
30 FB    BMI *-3
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
A9 0A    LDA #$0A ;hides 'ASL A'
B8       CLV
50 00    BVC *+2
30 FA    BMI *-4
Clobbers A, Z&N, C, and V
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
18       CLC
30 FA    BMI *-4
Clobbers A, Z&N, and C; and requires @zptemp
48       PHA
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-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'
F0 FD    BEQ *-1
Clobbers A, S, Z&N, and C
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
18       CLC
30 FA    BMI *-4
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'
F0 FD    BEQ *-1
28       PLP
Clobbers A; and writes in stack
C5 00    CMP $00
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-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'
F0 FD    BEQ *-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
30 FB    BMI *-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
A2 07    LDX #7
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
A0 07    LDY #7
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
EA       NOP
90 FB    BCC *-3
Clobbers A, Z&N, C, and V
7 bytes
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts12
30 FA    BMI *-4
Clobbers A, Z&N, and C; requires @rts12; and writes in stack
68       PLA
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-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'
F0 FD    BEQ *-1
Clobbers A, S, Z&N, and C
08       PHP
A9       LDA #16
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #16
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA       NOP
EA       NOP
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
28       PLP
Clobbers A; 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
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
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
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'
F0 FD    BEQ *-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
90 FC    BCC *-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
30 F4    BMI *-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
10 FC    BPL *-2
Clobbers A, Z&N, C, and V
7 bytes
20 xx xx JSR @rts12
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-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'
F0 FD    BEQ *-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
30 FB    BMI *-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
30 FB    BMI *-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'
F0 FD    BEQ *-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'
30 FD    BMI *-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
30 FC    BMI *-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
30 FC    BMI *-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'
F0 FD    BEQ *-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
EA       NOP
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
EA       NOP
90 FB    BCC *-3
Clobbers A, Z&N, C, and V
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
18       CLC
30 FB    BMI *-3
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
EA       NOP
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts12
30 FA    BMI *-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'
F0 FD    BEQ *-1
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-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'
F0 FD    BEQ *-1
Clobbers A, S, Z&N, and C
9 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
28       PLP
Clobbers A; 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
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
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
68       PLA
Clobbers Z&N, and C; and writes in stack
EA       NOP
EA       NOP
EA       NOP
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
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
EA       NOP
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
90 FC    BCC *-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
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
A0 0A    LDY #10
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA       NOP
A2 0A    LDX #10
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
10 FC    BPL *-2
Clobbers A, Z&N, C, and V
A9 2A    LDA #$2A ;hides 'ROL A'
00 00    BRK 0
30 FB    BMI *-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'
F0 FD    BEQ *-1
Clobbers A, Z&N, and C; requires @rts14; and writes in stack
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
18       CLC
30 FB    BMI *-3
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'
F0 FD    BEQ *-1
68       PLA
28       PLP
Writes in stack
68       PLA
48       PHA
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-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
30 FB    BMI *-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
30 FA    BMI *-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'
F0 FD    BEQ *-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'
F0 FD    BEQ *-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'
F0 FD    BEQ *-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'
F0 FD    BEQ *-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
30 FB    BMI *-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
30 FB    BMI *-3
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
90 FC    BCC *-2
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
F0 FC    BEQ *-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
EA       NOP
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-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
30 F1    BMI *-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
30 FA    BMI *-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
10 FC    BPL *-2
Clobbers A, Z&N, C, and V; and requires @zptemp
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
48       PHA
30 FB    BMI *-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
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
18       CLC
30 FA    BMI *-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
A9 0A    LDA #$0A ;hides 'ASL A'
B8       CLV
50 00    BVC *+2
30 FA    BMI *-4
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
A9 0A    LDA #$0A ;hides 'ASL A'
B8       CLV
50 00    BVC *+2
30 FA    BMI *-4
68       PLA
Clobbers Z&N, C, and V; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
18       CLC
30 FA    BMI *-4
68       PLA
Clobbers Z&N, and C; requires @zptemp; and writes in stack
48       PHA
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
68       PLA
28       PLP
Clobbers S; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
18       CLC
30 FA    BMI *-4
68       PLA
Clobbers Z&N, and C; requires support for unofficial opcodes; 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'
F0 FD    BEQ *-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
A2 08    LDX #8
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
A0 08    LDY #8
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
F0 FC    BEQ *-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
90 FB    BCC *-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
90 FB    BCC *-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
30 FA    BMI *-4
68       PLA
Clobbers Z&N, and C; requires @rts12; and writes in stack
08       PHP
48       PHA
A9       LDA #16
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
68       PLA
28       PLP
Writes in stack
15 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
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
30 F1    BMI *-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
F0 FC    BEQ *-2
Clobbers A, S, Z&N, and C; and writes in stack
7 bytes
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
10 FC    BPL *-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
F0 FC    BEQ *-2
Clobbers A, Z&N, and C
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
10 FC    BPL *-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'
F0 FD    BEQ *-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
30 FB    BMI *-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
30 FB    BMI *-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
F0 FC    BEQ *-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
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
F0 FC    BEQ *-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'
F0 FD    BEQ *-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'
F0 FD    BEQ *-1
68       PLA
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
9 bytes
EA       NOP
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
EA       NOP
90 FB    BCC *-3
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
EA       NOP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
EA       NOP
90 FB    BCC *-3
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
EA       NOP
48       PHA
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts12
30 FA    BMI *-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'
F0 FD    BEQ *-1
68       PLA
28       PLP
Clobbers S; and writes in stack
11 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-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
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
30 F0    BMI *-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
F0 FC    BEQ *-2
Clobbers A, Z&N, and C; and requires @zptemp
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
F0 FC    BEQ *-2
Clobbers A, S, Z&N, and C; and writes in stack
08       PHP
A9       LDA #26
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
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
EA       NOP
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
10 FC    BPL *-2
28       PLP
Clobbers A; 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
08       PHP
A2 0A    LDX #10
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
F0 FC    BEQ *-2
Clobbers A, Z&N, and C
EA       NOP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
10 FC    BPL *-2
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
30 FB    BMI *-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'
F0 FD    BEQ *-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'
F0 FD    BEQ *-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
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
30 FB    BMI *-3
Clobbers A, Z&N, and C; and writes in stack
A9 E9    LDA #$E9 ;hides 'SBC #$38'
38       SEC ;first loop only
E6 xx    INC @zptemp
90 FA    BCC *-4
Clobbers A, Z&N, C, and V; and requires @zptemp
EA       NOP
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
F0 FC    BEQ *-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
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
F0 FC    BEQ *-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
10 FC    BPL *-2
28       PLP
Clobbers A, 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
08       PHP
A0 0A    LDY #10
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
10 FC    BPL *-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
30 FA    BMI *-4
28       PLP
Clobbers A; 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
08       PHP
A6 00    LDX $00
A2 0A    LDX #10
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
18       CLC
30 FA    BMI *-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'
F0 FD    BEQ *-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
30 FB    BMI *-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
F0 FC    BEQ *-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
F0 FC    BEQ *-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
F0 FC    BEQ *-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'
F0 FD    BEQ *-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
30 F1    BMI *-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
F0 FC    BEQ *-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
A2 0C    LDX #12
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
A0 0C    LDY #12
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
F0 FB    BEQ *-3
Clobbers A, Z&N, and C; and requires @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
F0 FB    BEQ *-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
F0 FA    BEQ *-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
F0 FC    BEQ *-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'
30 FD    BMI *-1
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
Clobbers A, Z&N, and C
9 bytes
08       PHP
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts14
30 FA    BMI *-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
30 FA    BMI *-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
10 FC    BPL *-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
10 FC    BPL *-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
30 F8    BMI *-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
10 FC    BPL *-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
10 FC    BPL *-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
30 FB    BMI *-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
A9 2A    LDA #$2A ;hides 'ROL A'
08       PHP
28       PLP
08       PHP
28       PLP
30 F9    BMI *-5
28       PLP
Clobbers A; and writes in stack
48       PHA
A9 2A    LDA #$2A ;hides 'ROL A'
08       PHP
28       PLP
08       PHP
28       PLP
30 F9    BMI *-5
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
B8       CLV
50 00    BVC *+2
30 FA    BMI *-4
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
90 FA    BCC *-4
Clobbers A, Z&N, C, and V
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
48       PHA
18       CLC
30 FA    BMI *-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
EA       NOP
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
F0 FC    BEQ *-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
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
F0 FC    BEQ *-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
30 F9    BMI *-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
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
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
30 F1    BMI *-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
A0 08    LDY #8
48       PHA
88       DEY
D0 FA    BNE *-4
Clobbers Y, S, and Z&N; and writes in stack
A2 08    LDX #8
48       PHA
CA       DEX
D0 FA    BNE *-4
Clobbers X, S, and Z&N; and writes in stack
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
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
F0 FC    BEQ *-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
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
F0 FB    BEQ *-3
Clobbers A, Z&N, and C; and requires @zptemp
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
F0 FB    BEQ *-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
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
4C xx xx JMP *+3
F0 FA    BEQ *-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
30 F9    BMI *-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'
F0 FD    BEQ *-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
F0 FC    BEQ *-2
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
F0 FC    BEQ *-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
F0 FC    BEQ *-2
Clobbers A, S, Z&N, and C
9 bytes
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
10 FC    BPL *-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
F0 FC    BEQ *-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
A0 0D    LDY #13
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A2 0D    LDX #13
CA       DEX
D0 FB    BNE *-3
Clobbers X, 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
F0 FC    BEQ *-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
30 FB    BMI *-3
28       PLP
Clobbers A; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
30 FB    BMI *-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
F0 FB    BEQ *-3
Clobbers A, Z&N, and C; and requires @zptemp
48       PHA
08       PHP
A2 0B    LDX #11
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
08       PHP
A0 0B    LDY #11
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
68       PLA
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
F0 FC    BEQ *-2
Clobbers A, S, Z&N, and C
04 00    NOP $00
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
F0 FB    BEQ *-3
Clobbers A, Z&N, and C; and requires support for unofficial opcodes
9 bytes
08       PHP
A6 00    LDX $00
A2 0B    LDX #11
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 00    LDY $00
A0 0B    LDY #11
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
EA       NOP
18       CLC
30 F9    BMI *-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'
F0 FD    BEQ *-1
68       PLA
28       PLP
Requires dummy interrupt handler; and writes in stack
11 bytes
EA       NOP
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
EA       NOP
90 FB    BCC *-3
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
30 F0    BMI *-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
F0 FC    BEQ *-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
F0 FC    BEQ *-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
F0 FB    BEQ *-3
Clobbers A, S, Z&N, and C; and requires @zptemp
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
F0 FB    BEQ *-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
20 xx xx JSR @rts12
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
F0 FC    BEQ *-2
Clobbers A, Z&N, and C; requires @rts12; and writes in stack
A9 E9    LDA #$E9 ;hides 'SBC #$18'
18       CLC ;first loop only
EA       NOP
EA       NOP
EA       NOP
10 F9    BPL *-5
Clobbers A, Z&N, C, and V
EA       NOP
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
F0 FB    BEQ *-3
Clobbers A, Z&N, and C; and requires @zptemp
68       PLA
68       PLA
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
F0 FC    BEQ *-2
Clobbers A, S, Z&N, and C
EA       NOP
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
F0 FB    BEQ *-3
Clobbers A, Z&N, and C; and requires support for unofficial opcodes
9 bytes
98       TYA
48       PHA
A0 0B    LDY #11
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 0B    LDY #11
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; 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
36 00    ROL $00,X
76 00    ROR $00,X
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
F0 FC    BEQ *-2
Clobbers A, Z&N, and C
08       PHP
E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
F0 FC    BEQ *-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
F0 FC    BEQ *-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
F0 FC    BEQ *-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
F0 FC    BEQ *-2
68       PLA
Clobbers S, Z&N, and C; 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
EA       NOP
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
10 FC    BPL *-2
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
30 EE    BMI *-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
F0 FC    BEQ *-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
F0 FC    BEQ *-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
F0 FB    BEQ *-3
Clobbers A, Z&N, and C; and requires @zptemp
9 bytes
EA       NOP
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
30 FB    BMI *-3
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
30 FB    BMI *-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
F0 FC    BEQ *-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
F0 FB    BEQ *-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'
30 FD    BMI *-1
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
30 FB    BMI *-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
10 FC    BPL *-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
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
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
30 FA    BMI *-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
F0 FB    BEQ *-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
F0 FB    BEQ *-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
F0 FC    BEQ *-2
68       PLA
28       PLP
Writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
90 00    BCC *+2
18       CLC
30 F8    BMI *-6
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
30 EE    BMI *-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
A2 0D    LDX #13
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
68       PLA
A0 0D    LDY #13
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, 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
F0 FC    BEQ *-2
Clobbers A, S, Z&N, and C; and writes in stack
08       PHP
A9       LDA #36
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #36
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA       NOP
08       PHP
A0 0C    LDY #12
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 0C    LDX #12
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
20 xx xx JSR @rts15
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
F0 FC    BEQ *-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
F0 FB    BEQ *-3
28       PLP
Clobbers A; requires @zptemp; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
F0 FB    BEQ *-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
F0 FB    BEQ *-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
F0 FC    BEQ *-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
F0 FB    BEQ *-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
F0 FB    BEQ *-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
F0 FB    BEQ *-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
F0 FA    BEQ *-4
68       PLA
Clobbers Z&N, and C; writes in stack; and not relocatable code
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
4C xx xx JMP *+3
F0 FA    BEQ *-4
Clobbers A, Z&N, and C; and not relocatable code
48       PHA
38       SEC
A9 0C    LDA #12
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
68       PLA
68       PLA
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
F0 FC    BEQ *-2
Clobbers A, S, Z&N, and C
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'
30 FD    BMI *-1
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
68       PLA
Clobbers Z&N, and C; and writes in stack
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
30 FD    BMI *-1
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
Clobbers A, Z&N, and C
11 bytes
08       PHP
48       PHA
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts14
30 FA    BMI *-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
10 FC    BPL *-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
30 F8    BMI *-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
10 FC    BPL *-2
68       PLA
28       PLP
Clobbers S; and writes in stack
12 bytes
08       PHP
48       PHA
A9 2A    LDA #$2A ;hides 'ROL A'
08       PHP
28       PLP
08       PHP
28       PLP
30 F9    BMI *-5
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
F0 FB    BEQ *-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
90 FA    BCC *-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
90 FA    BCC *-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
EA       NOP
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
F0 FC    BEQ *-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
30 ED    BMI *-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
30 FB    BMI *-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
F0 FC    BEQ *-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
C5 00    CMP $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
EA       NOP
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
F0 FB    BEQ *-3
28       PLP
Clobbers A; requires @zptemp; and writes in stack
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
F0 FB    BEQ *-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
F0 FB    BEQ *-3
Clobbers A, Z&N, and C; and requires @zptemp
EA       NOP
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
F0 FB    BEQ *-3
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
F0 FB    BEQ *-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
F0 FB    BEQ *-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
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
4C xx xx JMP *+3
F0 FA    BEQ *-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
30 F9    BMI *-5
68       PLA
Clobbers Z&N, and C; requires @rts15; and writes in stack
EA       NOP
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
4C xx xx JMP *+3
F0 FA    BEQ *-4
Clobbers A, Z&N, and C; and not relocatable code
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'
F0 FD    BEQ *-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
F0 FC    BEQ *-2
68       PLA
28       PLP
Clobbers S; and writes in stack
EA       NOP
68       PLA
68       PLA
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
F0 FC    BEQ *-2
Clobbers A, S, Z&N, and C
11 bytes
08       PHP
28       PLP
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
10 FC    BPL *-2
68       PLA
28       PLP
Writes in stack
A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
90 00    BCC *+2
18       CLC
30 F8    BMI *-6
Clobbers A, Z&N, and C
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
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
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
F0 FB    BEQ *-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
F0 FB    BEQ *-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
F0 FB    BEQ *-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
F0 FB    BEQ *-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
F0 FB    BEQ *-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
30 FB    BMI *-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
30 ED    BMI *-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
30 FA    BMI *-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
F0 FB    BEQ *-3
Clobbers A, Z&N, and C
9 bytes
08       PHP
BA       TSX
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
F0 FC    BEQ *-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
F0 FB    BEQ *-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
F0 FB    BEQ *-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
A9 E9    LDA #$E9 ;hides 'SBC #$18'
18       CLC ;first loop only
EA       NOP
EA       NOP
EA       NOP
10 F9    BPL *-5
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
C5 00    CMP $00
88       DEY
D0 F9    BNE *-5
28       PLP
Clobbers Y; and writes in stack
20 xx xx JSR @rts12
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
F0 FC    BEQ *-2
68       PLA
Clobbers Z&N, and C; requires @rts12; and writes in stack
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$18'
18       CLC ;first loop only
EA       NOP
EA       NOP
EA       NOP
10 F9    BPL *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
EA       NOP
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
F0 FB    BEQ *-3
68       PLA
Clobbers Z&N, and C; requires @zptemp; and writes in stack
EA       NOP
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
F0 FB    BEQ *-3
68       PLA
Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
11 bytes
48       PHA
98       TYA
48       PHA
A0 0B    LDY #11
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
E6 xx    INC @zptemp
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
F0 FC    BEQ *-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
F0 FC    BEQ *-2
68       PLA
28       PLP
Clobbers S; and writes in stack
12 bytes
08       PHP
48       PHA
98       TYA
48       PHA
A0 88    LDY #136 ;hides 'DEY'
30 FD    BMI *-1
68       PLA
A8       TAY
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
30 EE    BMI *-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
F0 FB    BEQ *-3
Clobbers A, S, Z&N, and C
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
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
F0 FB    BEQ *-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
F0 FC    BEQ *-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
F0 FB    BEQ *-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
F0 FB    BEQ *-3
68       PLA
Clobbers S, Z&N, and C; requires support for unofficial opcodes; and writes in stack
11 bytes
EA       NOP
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
30 FB    BMI *-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
30 EC    BMI *-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
10 FC    BPL *-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
F0 FC    BEQ *-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
F0 FB    BEQ *-3
Clobbers A, Z&N, and C; and requires @zptemp
48       PHA
08       PHP
A2 0D    LDX #13
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
08       PHP
28       PLP
30 FA    BMI *-4
Clobbers A, S, Z&N, and C; and writes in stack
00 00    BRK 0
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
F0 FB    BEQ *-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
30 FA    BMI *-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
30 FA    BMI *-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
F0 FB    BEQ *-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
F0 FC    BEQ *-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
30 EE    BMI *-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
A0 0E    LDY #14
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
EA       NOP
68       PLA
A2 0E    LDX #14
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
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
A2 0E    LDX #14
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
EA       NOP
EA       NOP
A0 0E    LDY #14
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A9 69    LDA #$69 ;hides 'ADC #$D8'
D8       CLD ;first loop only
20 xx xx JSR @rts14
30 F9    BMI *-5
Clobbers A, Z&N, C, V, and D; requires @rts14; and writes in stack
EA       NOP
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
F0 FB    BEQ *-3
Clobbers A, S, Z&N, and C
A9 4B    LDA #$4B ;hides 'ASR #$EA'
EA       NOP ;first loop only
20 xx xx JSR @rts14
F0 F9    BEQ *-5
Clobbers A, Z&N, and C; requires @rts14, and support for unofficial opcodes; and writes in stack
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
A0 0D    LDY #13
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; 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
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
F0 FB    BEQ *-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
F0 FC    BEQ *-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
F0 FB    BEQ *-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
F0 FC    BEQ *-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
F0 FB    BEQ *-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
EA       NOP
A9 E9    LDA #$E9 ;hides 'SBC #$08'
08       PHP ;first loop only
10 FC    BPL *-2
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
F0 FB    BEQ *-3
28       PLP
Clobbers A; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
F0 FB    BEQ *-3
68       PLA
Clobbers Z&N, and C; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-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
90 FA    BCC *-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
30 ED    BMI *-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
F0 FB    BEQ *-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
A6 00    LDX $00
A2 0F    LDX #15
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A4 00    LDY $00
A0 0F    LDY #15
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A9 0A    LDA #$0A ;hides 'ASL A'
B8       CLV
50 00    BVC *+2
F0 FA    BEQ *-4
Clobbers A, Z&N, C, and V
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
18       CLC
F0 FA    BEQ *-4
Clobbers A, Z&N, and C; and requires @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
18       CLC
F0 FA    BEQ *-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
F0 F9    BEQ *-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
30 F9    BMI *-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
F0 FB    BEQ *-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'
30 FD    BMI *-1
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
F0 FC    BEQ *-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
30 FB    BMI *-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
30 FB    BMI *-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
30 FA    BMI *-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
30 FA    BMI *-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
EA       NOP
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
F0 FB    BEQ *-3
68       PLA
28       PLP
Requires @zptemp; and writes in stack
EA       NOP
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
F0 FB    BEQ *-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
30 EB    BMI *-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
10 FC    BPL *-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
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
F0 FC    BEQ *-2
Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
9 bytes
08       PHP
38       SEC
A9 0E    LDA #14
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
F0 FB    BEQ *-3
68       PLA
Clobbers Z&N, and C; and writes in stack
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-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
F0 FB    BEQ *-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
F0 FB    BEQ *-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
30 FB    BMI *-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
30 ED    BMI *-17
Clobbers A, and Z&N


81 cycles

5 bytes
A2 10    LDX #16
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 10    LDY #16
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A9       LDA #54
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
48       PHA
10 FB    BPL *-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
B0 FA    BCS *-4
Clobbers A, Z&N, C, and V; and requires @zptemp
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
18       CLC
F0 FB    BEQ *-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
10 FA    BPL *-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
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
B8       CLV
50 00    BVC *+2
F0 FA    BEQ *-4
Clobbers A, Z&N, C, and V
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
18       CLC
F0 FA    BEQ *-4
Clobbers A, Z&N, and C; and requires @zptemp
48       PHA
08       PHP
A2 0E    LDX #14
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
08       PHP
A0 0E    LDY #14
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
18       CLC
F0 FA    BEQ *-4
Clobbers A, Z&N, and C; and requires support for unofficial opcodes
9 bytes
08       PHP
A4 00    LDY $00
A0 0E    LDY #14
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A6 00    LDX $00
A2 0E    LDX #14
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
4C xx xx JMP *+3
18       CLC
F0 F9    BEQ *-5
Clobbers A, Z&N, and C; and not relocatable code
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
08       PHP
28       PLP
18       CLC
30 F9    BMI *-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
F0 FB    BEQ *-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
F0 FB    BEQ *-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
F0 FB    BEQ *-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
30 F9    BMI *-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
30 F9    BMI *-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
F0 FB    BEQ *-3
Clobbers A, Z&N, and C
12 bytes
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$18'
18       CLC ;first loop only
EA       NOP
EA       NOP
EA       NOP
10 F9    BPL *-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
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
30 EB    BMI *-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
F0 FB    BEQ *-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
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
F0 FA    BEQ *-4
Clobbers A, Z&N, and C; and requires @zptemp
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
Clobbers A, S, Z&N, and C
04 00    NOP $00
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
18       CLC
F0 FA    BEQ *-4
Clobbers A, Z&N, and C; and requires support for unofficial opcodes
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
38       SEC
A9 0E    LDA #14
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
EA       NOP
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
F0 FB    BEQ *-3
68       PLA
Clobbers Z&N, and C; and writes in stack
EA       NOP
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-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
30 EC    BMI *-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
A0 10    LDY #16
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA       NOP
A2 10    LDX #16
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
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
F0 FB    BEQ *-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
F0 FA    BEQ *-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
F0 FA    BEQ *-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
F0 FB    BEQ *-3
Clobbers A, Z&N, and C; requires @rts12; and writes in stack
EA       NOP
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
18       CLC
F0 FA    BEQ *-4
Clobbers A, Z&N, and C; and requires @zptemp
68       PLA
68       PLA
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
F0 FB    BEQ *-3
Clobbers A, S, Z&N, and C
EA       NOP
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
18       CLC
F0 FA    BEQ *-4
Clobbers A, Z&N, and C; and requires support for unofficial opcodes
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
F0 FB    BEQ *-3
Clobbers A, Z&N, and C
08       PHP
E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
F0 FB    BEQ *-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
F0 FB    BEQ *-3
68       PLA
Clobbers Z&N, and C; requires @zptemp; and writes in stack
48       PHA
08       PHP
38       SEC
A9 0E    LDA #14
E9 01    SBC #1
D0 F9    BNE *-5
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
F0 FB    BEQ *-3
68       PLA
Clobbers S, Z&N, and C; and writes in stack
00 00    BRK 0
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
F0 FB    BEQ *-3
28       PLP
Clobbers A; requires dummy interrupt handler, and 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
F0 FB    BEQ *-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
30 FA    BMI *-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
30 EA    BMI *-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
A2 10    LDX #16
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 10    LDY #16
88       DEY
D0 FB    BNE *-3
Clobbers Y, 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
30 FA    BMI *-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
10 FC    BPL *-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
30 F9    BMI *-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
F0 FB    BEQ *-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
30 F9    BMI *-5
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
24 00    BIT $00
28       PLP
18       CLC
30 F8    BMI *-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
F0 FA    BEQ *-4
Clobbers A, Z&N, and C; and requires @zptemp
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
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
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
A2 0E    LDX #14
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; 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
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
30 F7    BMI *-7
Clobbers A, Z&N, and C
08       PHP
A9 69    LDA #$69 ;hides 'ADC #$D8'
D8       CLD ;first loop only
20 xx xx JSR @rts14
30 F9    BMI *-5
28       PLP
Clobbers A; requires @rts14; and writes in stack
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$D8'
D8       CLD ;first loop only
20 xx xx JSR @rts14
30 F9    BMI *-5
68       PLA
Clobbers Z&N, C, V, and D; requires @rts14; and writes in stack
48       PHA
48       PHA
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
F0 FB    BEQ *-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
F0 FB    BEQ *-3
68       PLA
Clobbers S, Z&N, and C; and writes in stack
48       PHA
A9 4B    LDA #$4B ;hides 'ASR #$EA'
EA       NOP ;first loop only
20 xx xx JSR @rts14
F0 F9    BEQ *-5
68       PLA
Clobbers Z&N, and C; requires @rts14, and 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
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 0E    LDA #14
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 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
90 FA    BCC *-4
Clobbers A, Z&N, C, and V; and writes in stack
08       PHP
A9       LDA #51
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #51
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A2 0B    LDX #11
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0B    LDY #11
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 10    LDA #16
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'
48       PHA
18       CLC
F0 FB    BEQ *-3
Clobbers A, S, Z&N, and C; and writes in stack
A9 4B    LDA #$4B ;hides 'ASR #$7A'
7A       NOP ;first loop only
EA       NOP
08       PHP
28       PLP
F0 F9    BEQ *-5
Clobbers A, Z&N, and C; requires support for unofficial opcodes; and writes in stack
9 bytes
08       PHP
38       SEC
A9 0F    LDA #15
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 0F    LDA #15
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
EA       NOP
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
18       CLC
F0 FA    BEQ *-4
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
18       CLC
F0 FA    BEQ *-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
F0 FB    BEQ *-3
68       PLA
28       PLP
Writes in stack
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-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
30 EA    BMI *-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
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
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
30 FA    BMI *-4
Clobbers A, Z&N, and C; requires @rts12; and writes in stack
48       PHA
08       PHP
A2 0F    LDX #15
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
18       CLC
F0 FB    BEQ *-3
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
B8       CLV
50 00    BVC *+2
F0 FA    BEQ *-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
F0 FA    BEQ *-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
F0 FA    BEQ *-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
F0 FA    BEQ *-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
F0 FA    BEQ *-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
F0 FA    BEQ *-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
30 F9    BMI *-5
68       PLA
Clobbers Z&N, and C; and writes in stack
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
4C xx xx JMP *+3
18       CLC
F0 F9    BEQ *-5
Clobbers A, Z&N, and C; and not relocatable code
68       PLA
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
Clobbers A, S, Z&N, and C
11 bytes
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
30 FD    BMI *-1
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
F0 FC    BEQ *-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
30 FB    BMI *-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
30 FA    BMI *-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
30 EB    BMI *-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
F0 FB    BEQ *-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
F0 FA    BEQ *-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
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
11 bytes
08       PHP
48       PHA
38       SEC
A9 0E    LDA #14
E9 01    SBC #1
D0 F9    BNE *-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
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
30 E9    BMI *-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
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
30 FA    BMI *-4
Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack
9 bytes
EA       NOP
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
30 FA    BMI *-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
B0 FA    BCS *-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
B0 FA    BCS *-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
F0 FB    BEQ *-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
10 FA    BPL *-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
10 FA    BPL *-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
EA       NOP
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
B8       CLV
50 00    BVC *+2
F0 FA    BEQ *-4
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
B8       CLV
50 00    BVC *+2
F0 FA    BEQ *-4
68       PLA
Clobbers Z&N, C, and V; and writes in stack
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
18       CLC
F0 FA    BEQ *-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
F0 FA    BEQ *-4
Clobbers A, Z&N, and C; and requires @zptemp
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
18       CLC
F0 FA    BEQ *-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
F0 FA    BEQ *-4
Clobbers A, Z&N, and C; and requires support for unofficial opcodes
11 bytes
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
08       PHP
28       PLP
18       CLC
30 F9    BMI *-5
68       PLA
Clobbers Z&N, and C; and writes in stack
EA       NOP
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
4C xx xx JMP *+3
18       CLC
F0 F9    BEQ *-5
Clobbers A, Z&N, and C; and not relocatable code
48       PHA
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
F0 FB    BEQ *-3
68       PLA
28       PLP
Clobbers S; and writes in stack
EA       NOP
68       PLA
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
Clobbers A, S, Z&N, and C
12 bytes
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
24 00    BIT $00
28       PLP
30 F9    BMI *-5
68       PLA
28       PLP
Writes in stack
26 00    ROL $00
66 00    ROR $00
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
Clobbers A, Z&N, and C
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
30 FB    BMI *-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
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
48       PHA
F0 FB    BEQ *-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
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
18       CLC
F0 FA    BEQ *-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
F0 FA    BEQ *-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
F0 FA    BEQ *-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
F0 FA    BEQ *-4
68       PLA
Clobbers S, Z&N, and C; requires @zptemp; and writes in stack
48       PHA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
18       CLC
F0 FA    BEQ *-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
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 0E    LDA #14
E9 01    SBC #1
D0 F9    BNE *-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
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
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
48       PHA
F0 FB    BEQ *-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
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
9 bytes
08       PHP
38       SEC
A9 10    LDA #16
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
18       CLC
F0 FA    BEQ *-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
F0 FB    BEQ *-3
68       PLA
Clobbers Z&N, and C; requires @rts12; and writes in stack
EA       NOP
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
18       CLC
F0 FA    BEQ *-4
68       PLA
Clobbers Z&N, and C; requires @zptemp; and writes in stack
EA       NOP
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
18       CLC
F0 FA    BEQ *-4
68       PLA
Clobbers Z&N, and C; 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
F0 FB    BEQ *-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
F0 FB    BEQ *-3
68       PLA
28       PLP
Requires @zptemp; and writes in stack
48       PHA
08       PHP
48       PHA
38       SEC
A9 0E    LDA #14
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Clobbers S; and writes in stack
00 00    BRK 0
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
F0 FB    BEQ *-3
68       PLA
28       PLP
Requires dummy interrupt handler, and 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
30 F9    BMI *-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
10 FA    BPL *-4
Clobbers A, Z&N, C, and V
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
30 FB    BMI *-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
F0 FB    BEQ *-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
F0 FA    BEQ *-4
Clobbers A, S, Z&N, and C
9 bytes
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
30 FA    BMI *-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
30 FA    BMI *-4
68       PLA
Clobbers Z&N, and C; requires @rts12; and writes in stack
EA       NOP
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
18       CLC
F0 FA    BEQ *-4
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
30 F9    BMI *-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
30 F9    BMI *-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
F0 FB    BEQ *-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
F0 FB    BEQ *-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
10 FA    BPL *-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
10 FA    BPL *-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
30 F8    BMI *-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
A9 69    LDA #$69 ;hides 'ADC #$D8'
D8       CLD ;first loop only
20 xx xx JSR @rts14
30 F9    BMI *-5
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
F0 FB    BEQ *-3
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 0E    LDA #14
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
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
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
30 FB    BMI *-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
A9 2A    LDA #$2A ;hides 'ROL A'
00 00    BRK 0
00 00    BRK 0
30 F9    BMI *-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
F0 FB    BEQ *-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
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
08       PHP
28       PLP
90 FA    BCC *-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
90 FA    BCC *-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
F0 FA    BEQ *-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
EA       NOP
A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
18       CLC
F0 FA    BEQ *-4
Clobbers A, Z&N, and C
48       PHA
A9 4B    LDA #$4B ;hides 'ASR #$7A'
7A       NOP ;first loop only
EA       NOP
08       PHP
28       PLP
F0 F9    BEQ *-5
68       PLA
Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 0F    LDA #15
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack
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
30 FB    BMI *-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
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
30 FB    BMI *-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
F0 FB    BEQ *-3
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
EA       NOP
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
18       CLC
F0 FA    BEQ *-4
Clobbers A, S, Z&N, and C
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
EA       NOP
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
30 FA    BMI *-4
28       PLP
Clobbers A; requires @rts12; and writes in stack
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
30 FA    BMI *-4
68       PLA
Clobbers Z&N, and C; requires @rts12; and writes in stack
EA       NOP
EA       NOP
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
18       CLC
F0 FA    BEQ *-4
Clobbers A, Z&N, and C
48       PHA
08       PHP
38       SEC
A9 10    LDA #16
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 10    LDA #16
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
11 bytes
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
B8       CLV
50 00    BVC *+2
F0 FA    BEQ *-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
30 FA    BMI *-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
30 F9    BMI *-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
F0 FA    BEQ *-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
F0 FA    BEQ *-4
68       PLA
Clobbers Z&N, and C; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
F0 FC    BEQ *-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
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
F0 FB    BEQ *-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
A0 12    LDY #18
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 12    LDX #18
CA       DEX
D0 FB    BNE *-3
Clobbers X, 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
EA       NOP
08       PHP
A0 11    LDY #17
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 11    LDX #17
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
90 00    BCC *+2
18       CLC
F0 F9    BEQ *-5
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 11    LDA #17
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
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
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
30 FA    BMI *-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
B0 FA    BCS *-4
68       PLA
28       PLP
Requires @zptemp; and writes in stack
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
04 00    NOP $00
10 FA    BPL *-4
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
B8       CLV
50 00    BVC *+2
F0 FA    BEQ *-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
A0 13    LDY #19
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A2 13    LDX #19
CA       DEX
D0 FB    BNE *-3
Clobbers X, 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
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
30 FA    BMI *-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
30 FB    BMI *-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
30 FB    BMI *-3
68       PLA
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
48       PHA
08       PHP
A2 11    LDX #17
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 12    LDA #18
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V; and writes in stack
9 bytes
08       PHP
A2 0B    LDX #11
24 00    BIT $00
CA       DEX
D0 F9    BNE *-5
28       PLP
Clobbers X; and writes in stack
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
08       PHP
28       PLP
30 F9    BMI *-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
EA       NOP
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
18       CLC
F0 FA    BEQ *-4
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
18       CLC
F0 FA    BEQ *-4
68       PLA
Clobbers Z&N, and C; and writes in stack
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
F0 FC    BEQ *-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
F0 FA    BEQ *-4
68       PLA
28       PLP
Clobbers S; 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
A0 0C    LDY #12
48       PHA
88       DEY
D0 FA    BNE *-4
Clobbers Y, S, and Z&N; and writes in stack
A2 0C    LDX #12
48       PHA
CA       DEX
D0 FA    BNE *-4
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A0 08    LDY #8
08       PHP
28       PLP
88       DEY
D0 F9    BNE *-5
Clobbers Y, and Z&N; and writes in stack
A2 08    LDX #8
08       PHP
28       PLP
CA       DEX
D0 F9    BNE *-5
Clobbers X, and Z&N; and writes in stack
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
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
F0 FB    BEQ *-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
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
85 xx    STA @zptemp
CA       DEX
D0 F9    BNE *-5
Clobbers X, 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
B0 F9    BCS *-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
98       TYA
48       PHA
A0 11    LDY #17
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 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
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
90 00    BCC *+2
18       CLC
F0 F9    BEQ *-5
Clobbers A, Z&N, and C
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
EA       NOP
08       PHP
38       SEC
A9 11    LDA #17
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
EA       NOP
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
48       PHA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
18       CLC
F0 FA    BEQ *-4
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 10    LDA #16
E9 01    SBC #1
D0 F9    BNE *-5
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
F0 FB    BEQ *-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
F0 FB    BEQ *-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
10 FA    BPL *-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
10 FA    BPL *-4
68       PLA
Clobbers Z&N, C, and V; and writes in stack
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
30 FB    BMI *-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
F0 F9    BEQ *-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
30 FA    BMI *-4
68       PLA
28       PLP
Requires @rts12; and writes in stack
EA       NOP
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
18       CLC
F0 FA    BEQ *-4
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
30 F9    BMI *-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
F0 FB    BEQ *-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
10 FA    BPL *-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
30 F8    BMI *-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
30 FA    BMI *-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
30 FA    BMI *-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
F0 FB    BEQ *-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
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
F0 FB    BEQ *-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
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
90 00    BCC *+2
18       CLC
F0 F9    BEQ *-5
Clobbers A, S, Z&N, and C
48       PHA
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
30 FB    BMI *-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
30 FB    BMI *-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
98       TYA
48       PHA
A0 11    LDY #17
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
90 00    BCC *+2
18       CLC
F0 F9    BEQ *-5
Clobbers A, Z&N, and C
08       PHP
A9 2A    LDA #$2A ;hides 'ROL A'
00 00    BRK 0
00 00    BRK 0
30 F9    BMI *-5
28       PLP
Clobbers A; requires dummy interrupt handler; and writes in stack
48       PHA
A9 2A    LDA #$2A ;hides 'ROL A'
00 00    BRK 0
00 00    BRK 0
30 F9    BMI *-5
68       PLA
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
11 bytes
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
08       PHP
28       PLP
90 FA    BCC *-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
F0 FB    BEQ *-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
F0 FB    BEQ *-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
F0 F9    BEQ *-5
Clobbers A, Z&N, and C; and requires @zptemp
EA       NOP
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
30 FB    BMI *-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
F0 F9    BEQ *-5
Clobbers A, Z&N, and C
48       PHA
48       PHA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
18       CLC
F0 FA    BEQ *-4
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
30 FA    BMI *-4
68       PLA
28       PLP
Requires @rts12; and writes in stack
EA       NOP
EA       NOP
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
18       CLC
F0 FA    BEQ *-4
68       PLA
Clobbers Z&N, and C; and writes in stack
48       PHA
08       PHP
48       PHA
38       SEC
A9 10    LDA #16
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
28       PLP
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
B8       CLV
50 00    BVC *+2
F0 FA    BEQ *-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
10 FA    BPL *-4
Clobbers A, S, Z&N, C, and V; and writes in stack
08       PHP
A9       LDA #67
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
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
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
30 FA    BMI *-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
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
18       CLC
30 FA    BMI *-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
F0 FB    BEQ *-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
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
F0 FB    BEQ *-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
30 FA    BMI *-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
30 FA    BMI *-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
30 F9    BMI *-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
F0 F9    BEQ *-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
F0 FA    BEQ *-4
68       PLA
28       PLP
Writes in stack
EA       NOP
EA       NOP
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
90 00    BCC *+2
18       CLC
F0 F9    BEQ *-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
F0 FB    BEQ *-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
F0 FB    BEQ *-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
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
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
90 00    BCC *+2
18       CLC
F0 F9    BEQ *-5
Clobbers A, Z&N, and C
11 bytes
08       PHP
48       PHA
38       SEC
A9 11    LDA #17
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


103 cycles

5 bytes
A9       LDA #76
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
EA       NOP
A2 14    LDX #20
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
A0 14    LDY #20
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
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
F0 FA    BEQ *-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
F0 F9    BEQ *-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
EA       NOP
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
30 FA    BMI *-4
28       PLP
Clobbers A; requires @rts14; and writes in stack
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
30 FA    BMI *-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
30 FB    BMI *-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
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
08       PHP
28       PLP
30 F9    BMI *-5
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
18       CLC
F0 FA    BEQ *-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
30 FA    BMI *-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
30 F9    BMI *-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
30 F9    BMI *-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
10 FA    BPL *-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
30 F9    BMI *-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
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
F0 FB    BEQ *-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
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
F0 FB    BEQ *-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
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
48       PHA
98       TYA
48       PHA
A0 11    LDY #17
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
90 00    BCC *+2
18       CLC
F0 F9    BEQ *-5
Clobbers A, Z&N, and C
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 11    LDA #17
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack


105 cycles

5 bytes
A9       LDA #78
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
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
A2 14    LDX #20
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
EA       NOP
A0 14    LDY #20
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
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
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
48       PHA
18       CLC
F0 FA    BEQ *-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
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
EA       NOP
18       CLC
F0 F9    BEQ *-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
F0 FB    BEQ *-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
F0 FB    BEQ *-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
10 FA    BPL *-4
68       PLA
28       PLP
Writes in stack


106 cycles

5 bytes
A0 15    LDY #21
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A2 15    LDX #21
CA       DEX
D0 FB    BNE *-3
Clobbers X, 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
10 FB    BPL *-3
Clobbers A, S, Z&N, C, and V; and writes in stack
7 bytes
08       PHP
A9       LDA #72
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #72
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A2 0E    LDX #14
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0E    LDY #14
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
48       PHA
18       CLC
F0 FA    BEQ *-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
30 FA    BMI *-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
30 FA    BMI *-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
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
18       CLC
30 F9    BMI *-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
30 FA    BMI *-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
30 FA    BMI *-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
F0 FB    BEQ *-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
EA       NOP
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
F0 FB    BEQ *-3
28       PLP
Clobbers A; and writes in stack
EA       NOP
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
F0 FB    BEQ *-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
F0 F9    BEQ *-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
30 FB    BMI *-3
68       PLA
28       PLP
Clobbers S; requires dummy interrupt handler; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 11    LDY #17
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
48       PHA
A9 2A    LDA #$2A ;hides 'ROL A'
00 00    BRK 0
00 00    BRK 0
30 F9    BMI *-5
68       PLA
28       PLP
Requires dummy interrupt handler; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 11    LDA #17
E9 01    SBC #1
D0 F9    BNE *-5
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
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
F0 FA    BEQ *-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
F0 F9    BEQ *-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
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
EA       NOP
18       CLC
F0 F9    BEQ *-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
F0 FB    BEQ *-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
F0 FB    BEQ *-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
F0 FB    BEQ *-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
F0 FA    BEQ *-4
Clobbers A, S, Z&N, and C; 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
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
30 FA    BMI *-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
F0 F9    BEQ *-5
Clobbers A, Z&N, and C; and requires @zptemp
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
18       CLC
30 FA    BMI *-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
F0 FB    BEQ *-3
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
EA       NOP
EA       NOP
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
F0 FB    BEQ *-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
F0 F9    BEQ *-5
Clobbers A, Z&N, and C
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
30 FA    BMI *-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
30 F9    BMI *-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
A9 E9    LDA #$E9 ;hides 'SBC #$18'
18       CLC ;first loop only
00 00    BRK 0
10 FA    BPL *-4
Clobbers A, Z&N, C, and V; requires dummy interrupt handler; and writes in stack
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$08'
08       PHP ;first loop only
EA       NOP
10 FB    BPL *-3
Clobbers A, S, Z&N, C, and V; and writes in stack
A9 4B    LDA #$4B ;hides 'ASR #$7A'
7A       NOP ;first loop only
00 00    BRK 0
F0 FA    BEQ *-4
Clobbers A, Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; 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
30 F9    BMI *-5
Clobbers A, Z&N, and C; requires @rts15; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
00 00    BRK 0
18       CLC
30 F9    BMI *-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
30 F9    BMI *-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
F0 FB    BEQ *-3
Clobbers A, Z&N, and C; requires @rts14; 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
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
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
08       PHP
28       PLP
08       PHP
28       PLP
30 F8    BMI *-6
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
F0 FB    BEQ *-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
F0 F9    BEQ *-5
Clobbers A, S, Z&N, and C
11 bytes
EA       NOP
EA       NOP
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
EA       NOP
18       CLC
F0 F9    BEQ *-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
A0 15    LDY #21
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 15    LDX #21
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
68       PLA
A9 E9    LDA #$E9 ;hides 'SBC #$08'
08       PHP ;first loop only
EA       NOP
10 FB    BPL *-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
F0 F9    BEQ *-5
68       PLA
Clobbers Z&N, and C; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
F0 FB    BEQ *-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
EA       NOP
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
30 FA    BMI *-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
30 FB    BMI *-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
EA       NOP
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
08       PHP
28       PLP
30 F9    BMI *-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
F0 FC    BEQ *-2
Clobbers A, Z&N, C, and V
7 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
18       CLC
F0 FA    BEQ *-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
F0 F8    BEQ *-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
30 F9    BMI *-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
30 F9    BMI *-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
30 F9    BMI *-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
30 F9    BMI *-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
30 F9    BMI *-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
30 F9    BMI *-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
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
F0 FB    BEQ *-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
A9 4B    LDA #$4B ;hides 'ASR #$7A'
7A       NOP ;first loop only
00 00    BRK 0
F0 FA    BEQ *-4
Clobbers A, S, Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; 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'
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
F0 FB    BEQ *-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
EA       NOP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
F0 FC    BEQ *-2
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
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
18       CLC
F0 FA    BEQ *-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
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
90 00    BCC *+2
18       CLC
F0 F8    BEQ *-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
30 FA    BMI *-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
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
18       CLC
30 F9    BMI *-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
30 FA    BMI *-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
F0 F9    BEQ *-5
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
F0 FB    BEQ *-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
F0 FC    BEQ *-2
Clobbers A, S, Z&N, C, and V; and writes in stack
7 bytes
A4 00    LDY $00
A0 16    LDY #22
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A6 00    LDX $00
A2 16    LDX #22
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A5 00    LDA $00
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
F0 FC    BEQ *-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
F0 FA    BEQ *-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
F0 FA    BEQ *-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
F0 F8    BEQ *-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
F0 FC    BEQ *-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
EA       NOP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
F0 FC    BEQ *-2
Clobbers A, Z&N, C, and V
08       PHP
A9       LDA #81
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #81
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA       NOP
08       PHP
A2 15    LDX #21
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 15    LDY #21
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
18       CLC
F0 FA    BEQ *-4
Clobbers A, S, Z&N, and C; and writes in stack
A9 4B    LDA #$4B ;hides 'ASR #$7A'
7A       NOP ;first loop only
20 xx xx JSR @rts14
F0 F9    BEQ *-5
Clobbers A, Z&N, and C; requires @rts14, and support for unofficial opcodes; and writes in stack
9 bytes
08       PHP
38       SEC
A9 15    LDA #21
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 15    LDA #21
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #74
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
00 00    BRK 0
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
F0 FB    BEQ *-3
68       PLA
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
90 00    BCC *+2
18       CLC
F0 F8    BEQ *-6
Clobbers A, S, Z&N, and C
11 bytes
EA       NOP
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
90 00    BCC *+2
18       CLC
F0 F8    BEQ *-6
Clobbers A, Z&N, and C
12 bytes
08       PHP
48       PHA
38       SEC
A9 0E    LDA #14
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
68       PLA
28       PLP
Writes in stack


116 cycles

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


126 cycles

5 bytes
A2 19    LDX #25
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 19    LDY #25
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A9       LDA #99
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
08       PHP
A9       LDA #92
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #92
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A0 88    LDY #136 ;hides 'DEY'
08       PHP
28       PLP
30 FB    BMI *-3
28       PLP
Clobbers Y; and writes in stack
20 xx xx JSR @rts15
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
F0 FC    BEQ *-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
F0 FC    BEQ *-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
90 FC    BCC *-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
90 FC    BCC *-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
90 FC    BCC *-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
90 FC    BCC *-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
90 FC    BCC *-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
F0 F9    BEQ *-5
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
18       CLC
F0 FA    BEQ *-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
A9 E9    LDA #$E9 ;hides 'SBC #$18'
18       CLC ;first loop only
00 00    BRK 0
10 FA    BPL *-4
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
90 FA    BCC *-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
F0 F9    BEQ *-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
90 FC    BCC *-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
EA       NOP
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
90 FC    BCC *-2
28       PLP
Clobbers A; and writes in stack
EA       NOP
EA       NOP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
90 FC    BCC *-2
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
EA       NOP
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
F0 FC    BEQ *-2
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
F0 F7    BEQ *-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
10 FA    BPL *-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
10 FA    BPL *-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
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
F0 FC    BEQ *-2
68       PLA
28       PLP
Clobbers S; and writes in stack
48       PHA
A9 4B    LDA #$4B ;hides 'ASR #$7A'
7A       NOP ;first loop only
20 xx xx JSR @rts15
F0 F9    BEQ *-5
68       PLA
Clobbers Z&N, and C; requires @rts15, and support for unofficial opcodes; and writes in stack
48       PHA
A9 4B    LDA #$4B ;hides 'ASR #$7A'
7A       NOP ;first loop only
EA       NOP
00 00    BRK 0
F0 F9    BEQ *-5
68       PLA
Clobbers Z&N, and C; requires dummy interrupt handler, 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
F0 FC    BEQ *-2
68       PLA
28       PLP
Writes in stack
12 bytes
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
18       CLC
F0 FA    BEQ *-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
90 FC    BCC *-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
EA       NOP
08       PHP
A2 11    LDX #17
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 11    LDY #17
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
08       PHP
28       PLP
18       CLC
F0 F9    BEQ *-5
Clobbers A, Z&N, and C; and writes in stack
48       PHA
48       PHA
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
90 FC    BCC *-2
28       PLP
Clobbers A, 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
90 FC    BCC *-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
08       PHP
38       SEC
A9 11    LDA #17
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
28       PLP
Clobbers A; and writes in stack
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
EA       NOP
EA       NOP
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
F0 FC    BEQ *-2
68       PLA
28       PLP
Writes in stack
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
18       CLC
F0 F7    BEQ *-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
90 FC    BCC *-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
F0 F7    BEQ *-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
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
90 FC    BCC *-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
90 FC    BCC *-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
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
F0 FC    BEQ *-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
F0 FC    BEQ *-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
90 FC    BCC *-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
8C       TXA
48       PHA
A2 11    LDX #17
EA       NOP
CA       DEX
D0 FA    BNE *-4
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
00 00    BRK 0
30 F9    BMI *-5
68       PLA
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
EA       NOP
48       PHA
48       PHA
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
90 FC    BCC *-2
28       PLP
Clobbers A, and S; 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
90 FC    BCC *-2
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
11 bytes
EA       NOP
08       PHP
38       SEC
A9 11    LDA #17
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 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
F0 FC    BEQ *-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
F0 F7    BEQ *-7
Clobbers A, S, Z&N, and C
12 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
F0 FC    BEQ *-2
68       PLA
28       PLP
Writes in stack
EA       NOP
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
18       CLC
F0 F7    BEQ *-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
A0 18    LDY #24
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; 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
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
EA       NOP
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
90 FC    BCC *-2
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
F0 F7    BEQ *-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
F0 F7    BEQ *-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
A0 19    LDY #25
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 19    LDX #25
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 1A    LDA #26
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
A9       LDA #99
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #99
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
9 bytes
A9 4B    LDA #$4B ;hides 'ASR #$7A'
7A       NOP ;first loop only
EA       NOP
20 xx xx JSR @rts15
F0 F8    BEQ *-6
Clobbers A, Z&N, and C; requires @rts15, and support for unofficial opcodes; and writes in stack
A9 4B    LDA #$4B ;hides 'ASR #$7A'
7A       NOP ;first loop only
EA       NOP
EA       NOP
00 00    BRK 0
F0 F8    BEQ *-6
Clobbers A, Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
A9 4B    LDA #$4B ;hides 'ASR #$7A'
7A       NOP ;first loop only
48       PHA
20 xx xx JSR @rts14
F0 F8    BEQ *-6
Clobbers A, S, Z&N, and C; requires @rts14, and support for unofficial opcodes; 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
F0 FC    BEQ *-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
F0 FC    BEQ *-2
68       PLA
Clobbers Z&N, C, and V; requires @rts15; 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
F0 FC    BEQ *-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
F0 FC    BEQ *-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
90 FC    BCC *-2
68       PLA
28       PLP
Clobbers S; and writes in stack
A9 4B    LDA #$4B ;hides 'ASR #$7A'
7A       NOP ;first loop only
85 xx    STA @zptemp
20 xx xx JSR @rts14
F0 F7    BEQ *-7
Clobbers A, Z&N, and C; requires @zptemp, @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
90 FC    BCC *-2
68       PLA
28       PLP
Writes in stack
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
F0 F7    BEQ *-7
Clobbers A, S, Z&N, and C
13 bytes
EA       NOP
EA       NOP
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
18       CLC
F0 F7    BEQ *-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
90 F9    BCC *-5
Clobbers A, Z&N, C, and V; requires @rts14; and writes in stack
9 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
20 xx xx JSR @rts15
30 F8    BMI *-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
90 F8    BCC *-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
90 FA    BCC *-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
90 FA    BCC *-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
F0 F9    BEQ *-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
F0 F9    BEQ *-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
EA       NOP
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
90 FC    BCC *-2
68       PLA
28       PLP
Writes in stack
12 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
90 00    BCC *+2
18       CLC
F0 F9    BEQ *-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
F0 FA    BEQ *-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
A0 19    LDY #25
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; 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
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
F0 F7    BEQ *-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
10 FA    BPL *-4
68       PLA
28       PLP
Writes in stack


136 cycles

5 bytes
A0 1B    LDY #27
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A2 1B    LDX #27
CA       DEX
D0 FB    BNE *-3
Clobbers X, 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
10 FA    BPL *-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
90 FC    BCC *-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
90 FC    BCC *-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
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
08       PHP
28       PLP
18       CLC
F0 F9    BEQ *-5
68       PLA
Clobbers Z&N, and C; 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
90 FC    BCC *-2
68       PLA
28       PLP
Clobbers S; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 11    LDA #17
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
68       PLA
28       PLP
Writes in stack
13 bytes
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
90 00    BCC *+2
18       CLC
F0 F9    BEQ *-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
A2 11    LDX #17
48       PHA
CA       DEX
D0 FA    BNE *-4
Clobbers X, S, and Z&N; and writes in stack
A0 11    LDY #17
48       PHA
88       DEY
D0 FA    BNE *-4
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A2 11    LDX #17
A5 00    LDA $00
CA       DEX
D0 F9    BNE *-5
Clobbers A, X, and Z&N
A0 11    LDY #17
A5 00    LDA $00
88       DEY
D0 F9    BNE *-5
Clobbers A, Y, 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
A2 11    LDX #17
24 00    BIT $00
CA       DEX
D0 F9    BNE *-5
Clobbers X, Z&N, and V
A0 11    LDY #17
24 00    BIT $00
88       DEY
D0 F9    BNE *-5
Clobbers Y, 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
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
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
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
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
F0 FA    BEQ *-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
90 FC    BCC *-2
68       PLA
28       PLP
Writes in stack
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
F0 F7    BEQ *-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
7 bytes
08       PHP
A2 1A    LDX #26
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 1A    LDY #26
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 1B    LDA #27
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
A9       LDA #104
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #104
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
F0 FA    BEQ *-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
F0 FA    BEQ *-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
90 FC    BCC *-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
90 FC    BCC *-2
68       PLA
Clobbers Z&N, C, and V; requires @rts15; 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
90 FC    BCC *-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
90 FC    BCC *-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
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
F0 FC    BEQ *-2
68       PLA
28       PLP
Requires dummy interrupt handler; and writes in stack
12 bytes
48       PHA
8C       TXA
48       PHA
A2 11    LDX #17
EA       NOP
CA       DEX
D0 FA    BNE *-4
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and 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
F0 F7    BEQ *-7
Clobbers A, Z&N, and C
EA       NOP
48       PHA
48       PHA
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
90 FC    BCC *-2
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
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
Writes in stack


139 cycles

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


141 cycles

5 bytes
A2 1C    LDX #28
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 1C    LDY #28
88       DEY
D0 FB    BNE *-3
Clobbers Y, 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
08       PHP
A9       LDA #107
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #107
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A0 13    LDY #19
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 13    LDX #19
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
08       PHP
28       PLP
10 F9    BPL *-5
Clobbers A, Z&N, C, and V; and writes in stack
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
F0 FA    BEQ *-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
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
F0 FA    BEQ *-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
90 F9    BCC *-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
90 F9    BCC *-5
68       PLA
Clobbers Z&N, C, and V; requires @rts14; 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
90 F8    BCC *-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
30 F8    BMI *-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
90 F8    BCC *-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
90 FA    BCC *-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
F0 F9    BEQ *-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
F0 F7    BEQ *-7
Clobbers A, S, Z&N, and C
13 bytes
EA       NOP
EA       NOP
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
F0 F7    BEQ *-7
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
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
9 bytes
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
F0 FA    BEQ *-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
F0 FA    BEQ *-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'
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
EA       NOP
18       CLC
F0 F9    BEQ *-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
F0 FB    BEQ *-3
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
7 bytes
08       PHP
A2 1B    LDX #27
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 1B    LDY #27
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; 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
F0 F9    BEQ *-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
F0 F8    BEQ *-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
F0 F6    BEQ *-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
90 FC    BCC *-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
9 bytes
08       PHP
A0 11    LDY #17
C5 00    CMP $00
88       DEY
D0 F9    BNE *-5
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 11    LDX #17
C5 00    CMP $00
CA       DEX
D0 F9    BNE *-5
28       PLP
Clobbers X; 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
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
EA       NOP
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
F0 FA    BEQ *-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
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
F0 FA    BEQ *-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'
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
EA       NOP
18       CLC
F0 F9    BEQ *-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
A0 10    LDY #16
68       PLA
88       DEY
D0 FA    BNE *-4
Clobbers A, Y, S, and Z&N
A2 10    LDX #16
68       PLA
CA       DEX
D0 FA    BNE *-4
Clobbers A, X, S, and Z&N
7 bytes
A0 10    LDY #16
EA       NOP
EA       NOP
88       DEY
D0 F9    BNE *-5
Clobbers Y, and Z&N
A2 10    LDX #16
EA       NOP
EA       NOP
CA       DEX
D0 F9    BNE *-5
Clobbers X, and Z&N
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
F0 FB    BEQ *-3
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
08       PHP
A9       LDA #111
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
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
A2 1B    LDX #27
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 1B    LDY #27
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; 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
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
F0 FA    BEQ *-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
F0 FA    BEQ *-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
90 FC    BCC *-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
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
18       CLC
F0 F6    BEQ *-8
Clobbers A, Z&N, and C
EA       NOP
00 00    BRK 0
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
90 FC    BCC *-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
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
F0 FB    BEQ *-3
Clobbers A, S, Z&N, and C; requires dummy interrupt handler; 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
F0 FB    BEQ *-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
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
F0 F9    BEQ *-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
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
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
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
F0 FA    BEQ *-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
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
90 FC    BCC *-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
F0 F6    BEQ *-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
F0 FB    BEQ *-3
Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
08       PHP
A9       LDA #113
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
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
EA       NOP
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
F0 FB    BEQ *-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
9 bytes
8C       TXA
48       PHA
A2 1B    LDX #27
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA       NOP
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
08       PHP
A2 1B    LDX #27
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; 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
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
F0 F6    BEQ *-8
Clobbers A, S, Z&N, and C
13 bytes
EA       NOP
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
18       CLC
F0 F6    BEQ *-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
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
F0 FB    BEQ *-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
F0 FB    BEQ *-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
F0 FB    BEQ *-3
Clobbers A, Z&N, and C; requires dummy interrupt handler; 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
10 F9    BPL *-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
10 F9    BPL *-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
F0 FA    BEQ *-4
68       PLA
Clobbers S, Z&N, and C; requires @rts12; and writes in stack
12 bytes
EA       NOP
EA       NOP
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
F0 FA    BEQ *-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
90 F9    BCC *-5
68       PLA
28       PLP
Requires @rts14; 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
90 F8    BCC *-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
F0 F6    BEQ *-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
F0 F6    BEQ *-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
F0 FB    BEQ *-3
Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
9 bytes
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
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
EA       NOP
EA       NOP
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
F0 FB    BEQ *-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
08       PHP
48       PHA
A9       LDA #108
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
8C       TXA
48       PHA
A2 1B    LDX #27
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA       NOP
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
11 bytes
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
F0 FA    BEQ *-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
F0 F6    BEQ *-8
Clobbers A, S, Z&N, and C
14 bytes
EA       NOP
EA       NOP
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
18       CLC
F0 F6    BEQ *-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
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
F0 FB    BEQ *-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
F0 FB    BEQ *-3
68       PLA
Clobbers Z&N, and C; requires dummy interrupt handler; 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
F0 F8    BEQ *-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'
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
90 00    BCC *+2
18       CLC
F0 F8    BEQ *-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
F0 FA    BEQ *-4
Clobbers A, Z&N, and C; requires @rts14; 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
F0 F9    BEQ *-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
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
8C       TXA
48       PHA
A2 1B    LDX #27
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, S, and Z&N; and writes in stack
11 bytes
EA       NOP
EA       NOP
8C       TXA
48       PHA
A2 1B    LDX #27
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
F0 F6    BEQ *-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
12 bytes
EA       NOP
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
F0 FA    BEQ *-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
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
68       PLA
38       SEC
A9 1D    LDA #29
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V
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
EA       NOP
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
F0 FB    BEQ *-3
28       PLP
Clobbers A; requires dummy interrupt handler; and writes in stack
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
F0 FB    BEQ *-3
68       PLA
Clobbers Z&N, and C; requires dummy interrupt handler; 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
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'
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
90 00    BCC *+2
18       CLC
F0 F8    BEQ *-6
Clobbers A, Z&N, and C


153 cycles

5 bytes
A0 EA    LDY #234 ;hides 'NOP'
C8       INY
D0 FC    BNE *-2
Clobbers Y, and Z&N
A2 EA    LDX #234 ;hides 'NOP'
E8       INX
D0 FC    BNE *-2
Clobbers X, and Z&N
A9       LDA #126
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
08       PHP
A2 1D    LDX #29
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 1D    LDY #29
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 1E    LDA #30
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
A9       LDA #119
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #119
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
F0 FA    BEQ *-4
Clobbers A, Z&N, and C; requires @rts14; and writes in stack
9 bytes
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
08       PHP
28       PLP
F0 F9    BEQ *-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
F0 FB    BEQ *-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
F0 FB    BEQ *-3
68       PLA
Clobbers S, Z&N, and C; requires dummy interrupt handler; 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
F0 FB    BEQ *-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
F0 FB    BEQ *-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
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
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
F0 F6    BEQ *-8
Clobbers A, Z&N, and C
48       PHA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
08       PHP
28       PLP
18       CLC
F0 F8    BEQ *-6
68       PLA
Clobbers S, Z&N, and C; and writes in stack
13 bytes
08       PHP
48       PHA
38       SEC
A9 11    LDA #17
24 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
30 F9    BMI *-5
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
F0 FA    BEQ *-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
F0 FA    BEQ *-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
F0 F9    BEQ *-5
Clobbers A, S, Z&N, and C; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 1D    LDA #29
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V
68       PLA
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
F0 FB    BEQ *-3
28       PLP
Clobbers A, S, and Z&N; requires dummy interrupt handler; 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
EA       NOP
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
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
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
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
EA       NOP
EA       NOP
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
F0 FB    BEQ *-3
28       PLP
Clobbers A; requires dummy interrupt handler; and writes in stack
EA       NOP
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
F0 FB    BEQ *-3
68       PLA
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
11 bytes
48       PHA
8C       TXA
48       PHA
A2 1B    LDX #27
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
38       SEC
A9 12    LDA #18
24 00    BIT $00
E9 01    SBC #1
D0 F7    BNE *-7
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 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
F0 F6    BEQ *-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
F0 FB    BEQ *-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
F0 FA    BEQ *-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
F0 FB    BEQ *-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
F0 FB    BEQ *-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
F0 FB    BEQ *-3
68       PLA
Clobbers Z&N, and C; requires dummy interrupt handler; 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
10 F9    BPL *-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
F0 F6    BEQ *-8
Clobbers A, S, Z&N, and C
13 bytes
EA       NOP
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
F0 F6    BEQ *-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
F0 FC    BEQ *-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
F0 FB    BEQ *-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
F0 FA    BEQ *-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
F0 FA    BEQ *-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
F0 FA    BEQ *-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
F0 F9    BEQ *-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
F0 FB    BEQ *-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
F0 FB    BEQ *-3
68       PLA
Clobbers S, Z&N, and C; requires dummy interrupt handler; and writes in stack
11 bytes
8C       TXA
48       PHA
A2 10    LDX #16
EA       NOP
EA       NOP
CA       DEX
D0 F9    BNE *-5
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
F0 FB    BEQ *-3
28       PLP
Clobbers A; requires dummy interrupt handler; and writes in stack
EA       NOP
EA       NOP
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
F0 FB    BEQ *-3
68       PLA
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
48       PHA
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
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
12 bytes
EA       NOP
48       PHA
8C       TXA
48       PHA
A2 1B    LDX #27
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
08       PHP
38       SEC
A9 12    LDA #18
24 00    BIT $00
E9 01    SBC #1
D0 F7    BNE *-7
28       PLP
Clobbers A; 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
F0 F6    BEQ *-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
F0 F6    BEQ *-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
A2 EA    LDX #234 ;hides 'NOP'
E8       INX
D0 FC    BNE *-2
Clobbers A, X, S, and Z&N
68       PLA
A0 EA    LDY #234 ;hides 'NOP'
C8       INY
D0 FC    BNE *-2
Clobbers A, Y, S, and Z&N
7 bytes
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
EA       NOP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
F0 FB    BEQ *-3
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
F0 FB    BEQ *-3
68       PLA
28       PLP
Requires dummy interrupt handler; 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
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
F0 F6    BEQ *-8
Clobbers A, S, Z&N, and C
14 bytes
EA       NOP
EA       NOP
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
F0 F6    BEQ *-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
EA       NOP
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
F0 FC    BEQ *-2
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
F0 FA    BEQ *-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
F0 FA    BEQ *-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
F0 FB    BEQ *-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
F0 F9    BEQ *-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
F0 F9    BEQ *-5
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
EA       NOP
EA       NOP
48       PHA
8C       TXA
48       PHA
A2 1B    LDX #27
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
F0 F8    BEQ *-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
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
F0 FC    BEQ *-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
F0 FA    BEQ *-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
F0 FC    BEQ *-2
Clobbers A, Z&N, C, and V
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
18       CLC
F0 FA    BEQ *-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
F0 F9    BEQ *-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
F0 F8    BEQ *-6
Clobbers A, Z&N, and C; requires @zptemp, and @rts12; 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
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
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
48       PHA
08       PHP
28       PLP
18       CLC
F0 F8    BEQ *-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
F0 F8    BEQ *-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
EA       NOP
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
F0 FB    BEQ *-3
68       PLA
28       PLP
Requires dummy interrupt handler; 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
F0 F5    BEQ *-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
F0 FC    BEQ *-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
EA       NOP
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
F0 FC    BEQ *-2
Clobbers A, Z&N, C, and V
08       PHP
A9       LDA #126
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #126
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
9 bytes
08       PHP
38       SEC
A9 1E    LDA #30
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 1E    LDA #30
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #119
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
F0 FA    BEQ *-4
68       PLA
Clobbers Z&N, and C; requires @rts14; and writes in stack
11 bytes
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
08       PHP
28       PLP
F0 F9    BEQ *-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
F0 FB    BEQ *-3
68       PLA
28       PLP
Clobbers S; requires dummy interrupt handler; 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
F0 FB    BEQ *-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
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'
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
F0 F8    BEQ *-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
F0 FC    BEQ *-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
F0 FC    BEQ *-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
F0 FC    BEQ *-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
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
F0 FA    BEQ *-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
F0 FC    BEQ *-2
Clobbers A, Z&N, C, and V
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
18       CLC
F0 FA    BEQ *-4
Clobbers A, Z&N, and C; requires dummy interrupt handler; 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
48       PHA
08       PHP
A2 1E    LDX #30
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 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
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
20 xx xx JSR @rts12
F0 F9    BEQ *-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
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
20 xx xx JSR @rts12
F0 F8    BEQ *-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
30 F9    BMI *-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
30 F9    BMI *-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
F0 FA    BEQ *-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
F0 FA    BEQ *-4
68       PLA
Clobbers S, Z&N, and C; requires @rts14; and writes in stack
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
20 xx xx JSR @rts12
F0 F8    BEQ *-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
F0 FA    BEQ *-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
F0 FA    BEQ *-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
F0 F9    BEQ *-5
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
8C       TXA
48       PHA
A2 1C    LDX #28
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 15    LDA #21
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
28       PLP
Clobbers A; and writes in stack
EA       NOP
EA       NOP
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
F0 FB    BEQ *-3
68       PLA
28       PLP
Requires dummy interrupt handler; and writes in stack
13 bytes
EA       NOP
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
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
F0 F5    BEQ *-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
90 FB    BCC *-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
F0 FB    BEQ *-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
F0 FB    BEQ *-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
F0 F5    BEQ *-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
EA       NOP
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
F0 FC    BEQ *-2
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
F0 FC    BEQ *-2
28       PLP
Clobbers A; and writes in stack
08       PHP
A2 1F    LDX #31
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 1F    LDY #31
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
F0 FC    BEQ *-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
F0 FB    BEQ *-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
F0 FA    BEQ *-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
F0 FA    BEQ *-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
F0 FA    BEQ *-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
F0 F9    BEQ *-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
F0 F9    BEQ *-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
F0 FB    BEQ *-3
68       PLA
28       PLP
Clobbers S; requires dummy interrupt handler; and writes in stack
13 bytes
48       PHA
8C       TXA
48       PHA
A2 10    LDX #16
EA       NOP
EA       NOP
CA       DEX
D0 F9    BNE *-5
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
F0 FB    BEQ *-3
68       PLA
28       PLP
Requires dummy interrupt handler; and writes in stack
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
Clobbers S; and writes in stack
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
F0 F5    BEQ *-9
Clobbers A, S, Z&N, and C
14 bytes
EA       NOP
EA       NOP
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
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
F0 F5    BEQ *-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
F0 FC    BEQ *-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
EA       NOP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
90 FB    BCC *-3
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
EA       NOP
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
F0 FB    BEQ *-3
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
EA       NOP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
F0 FB    BEQ *-3
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
F0 F5    BEQ *-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
F0 F5    BEQ *-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
F0 FC    BEQ *-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
90 FB    BCC *-3
Clobbers A, S, Z&N, C, and V; and writes in stack
EA       NOP
EA       NOP
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
F0 FC    BEQ *-2
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
08       PHP
A9       LDA #131
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #131
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA       NOP
08       PHP
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
F0 FC    BEQ *-2
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
EA       NOP
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
F0 FC    BEQ *-2
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
F0 FA    BEQ *-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
F0 FB    BEQ *-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
F0 F9    BEQ *-5
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
18       CLC
90 00    BCC *+2
18       CLC
F0 F5    BEQ *-9
Clobbers A, S, Z&N, and C
15 bytes
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
F0 F5    BEQ *-9
Clobbers A, Z&N, and C


166 cycles

5 bytes
A0 21    LDY #33
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A2 21    LDX #33
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A9       LDA #139
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
68       PLA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
90 FB    BCC *-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
F0 FC    BEQ *-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
EA       NOP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
90 FB    BCC *-3
Clobbers A, Z&N, C, and V
48       PHA
08       PHP
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
F0 FC    BEQ *-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
F0 FC    BEQ *-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
F0 FC    BEQ *-2
28       PLP
Clobbers A; 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
08       PHP
A4 00    LDY $00
A0 1F    LDY #31
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
F0 FA    BEQ *-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
F0 FC    BEQ *-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
F0 FA    BEQ *-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
F0 F8    BEQ *-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
F0 F8    BEQ *-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'
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
18       CLC
F0 F7    BEQ *-7
Clobbers A, Z&N, and C


167 cycles

5 bytes
A2 18    LDX #24 ;hides 'CLC'
CA       DEX
D0 FC    BNE *-2
Clobbers X, and Z&N
A0 18    LDY #24 ;hides 'CLC'
88       DEY
D0 FC    BNE *-2
Clobbers Y, and Z&N
A9       LDA #140
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
00 00    BRK 0
F0 FA    BEQ *-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
F0 FC    BEQ *-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
F0 F9    BEQ *-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
90 FB    BCC *-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
F0 F9    BEQ *-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
F0 FC    BEQ *-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
EA       NOP
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
F0 FC    BEQ *-2
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
F0 F9    BEQ *-5
Clobbers A, Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
9 bytes
EA       NOP
EA       NOP
08       PHP
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
F0 FC    BEQ *-2
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
EA       NOP
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
F0 FC    BEQ *-2
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
F0 F5    BEQ *-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
F0 FC    BEQ *-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
F0 FC    BEQ *-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
F0 FC    BEQ *-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
F0 FC    BEQ *-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
F0 FC    BEQ *-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
F0 FC    BEQ *-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
F0 FC    BEQ *-2
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
F0 FA    BEQ *-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
F0 FC    BEQ *-2
68       PLA
Clobbers Z&N, C, and V; and writes in stack
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
18       CLC
F0 FA    BEQ *-4
68       PLA
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
12 bytes
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
20 xx xx JSR @rts12
F0 F8    BEQ *-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
30 F9    BMI *-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
F0 FA    BEQ *-4
68       PLA
28       PLP
Clobbers S; requires @rts14; and writes in stack
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
20 xx xx JSR @rts12
F0 F8    BEQ *-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
F0 FA    BEQ *-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'
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
18       CLC
F0 F7    BEQ *-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
A2 18    LDX #24
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
A0 18    LDY #24
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
7 bytes
00 00    BRK 0
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
F0 FC    BEQ *-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
F0 FC    BEQ *-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
90 FB    BCC *-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
90 FB    BCC *-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
90 FB    BCC *-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
F0 FB    BEQ *-3
68       PLA
28       PLP
Writes in stack
13 bytes
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
F0 F5    BEQ *-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
F0 FA    BEQ *-4
Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
EA       NOP
08       PHP
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
F0 FC    BEQ *-2
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
EA       NOP
48       PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
F0 FC    BEQ *-2
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
F0 FC    BEQ *-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
F0 F5    BEQ *-9
Clobbers A, Z&N, and C


171 cycles

5 bytes
A0 22    LDY #34
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A2 22    LDX #34
CA       DEX
D0 FB    BNE *-3
Clobbers X, 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
F0 FA    BEQ *-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
F0 FC    BEQ *-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
F0 FC    BEQ *-2
68       PLA
Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
9 bytes
EA       NOP
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
90 FB    BCC *-3
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
EA       NOP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
90 FB    BCC *-3
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
EA       NOP
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
F0 FB    BEQ *-3
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
F0 F5    BEQ *-9
Clobbers A, S, Z&N, and C
14 bytes
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
18       CLC
F0 F5    BEQ *-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
F0 FC    BEQ *-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
90 FB    BCC *-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
90 FB    BCC *-3
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
EA       NOP
EA       NOP
08       PHP
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
F0 FC    BEQ *-2
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
EA       NOP
EA       NOP
48       PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
F0 FC    BEQ *-2
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
08       PHP
48       PHA
A9       LDA #131
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
08       PHP
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
F0 FC    BEQ *-2
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
F0 F5    BEQ *-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
F0 F5    BEQ *-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
A2 22    LDX #34
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
A0 22    LDY #34
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
7 bytes
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
90 FB    BCC *-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
F0 FC    BEQ *-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
F0 FC    BEQ *-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
F0 FC    BEQ *-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
F0 FC    BEQ *-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
EA       NOP
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
90 FB    BCC *-3
28       PLP
Clobbers A; and writes in stack
EA       NOP
EA       NOP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
90 FB    BCC *-3
68       PLA
Clobbers Z&N, C, and V; and writes in stack
48       PHA
08       PHP
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
F0 FC    BEQ *-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
F0 FC    BEQ *-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
F0 F5    BEQ *-9
Clobbers A, S, Z&N, and C
15 bytes
EA       NOP
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
18       CLC
F0 F5    BEQ *-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
F0 FC    BEQ *-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
F0 FA    BEQ *-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
F0 FC    BEQ *-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
F0 FC    BEQ *-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
F0 F9    BEQ *-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
F0 F9    BEQ *-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
90 FB    BCC *-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
90 FB    BCC *-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
F0 F9    BEQ *-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
90 FB    BCC *-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
90 FB    BCC *-3
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
F0 FC    BEQ *-2
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
EA       NOP
EA       NOP
EA       NOP
48       PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
F0 FC    BEQ *-2
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
F0 F9    BEQ *-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
EA       NOP
08       PHP
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
F0 FC    BEQ *-2
68       PLA
28       PLP
Writes in stack
14 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
F0 F7    BEQ *-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
F0 F9    BEQ *-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
F0 F9    BEQ *-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
F0 F9    BEQ *-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
F0 FC    BEQ *-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
F0 FC    BEQ *-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
F0 FC    BEQ *-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
F0 FC    BEQ *-2
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
18       CLC
90 00    BCC *+2
18       CLC
F0 F4    BEQ *-10
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
F0 FC    BEQ *-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
F0 FC    BEQ *-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
F0 FC    BEQ *-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
F0 FC    BEQ *-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
F0 FC    BEQ *-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
90 FB    BCC *-3
68       PLA
28       PLP
Writes in stack
15 bytes
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
F0 F7    BEQ *-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
F0 FB    BEQ *-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
F0 FA    BEQ *-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
F0 FA    BEQ *-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
F0 F9    BEQ *-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
EA       NOP
08       PHP
48       PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
F0 FC    BEQ *-2
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
F0 FC    BEQ *-2
68       PLA
28       PLP
Writes in stack
14 bytes
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
18       CLC
F0 F4    BEQ *-10
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
F0 FC    BEQ *-2
68       PLA
28       PLP
Clobbers S; requires support for unofficial opcodes; and writes in stack
11 bytes
EA       NOP
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
90 FB    BCC *-3
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
18       CLC
90 00    BCC *+2
18       CLC
F0 F4    BEQ *-10
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
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
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
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
EA       NOP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
48       PHA
F0 FB    BEQ *-3
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
EA       NOP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
85 xx    STA @zptemp
F0 FA    BEQ *-4
Clobbers A, Z&N, C, and V; and requires @zptemp
EA       NOP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
04 00    NOP $00
F0 FA    BEQ *-4
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
9 bytes
08       PHP
A2 13    LDX #19
EA       NOP
EA       NOP
CA       DEX
D0 F9    BNE *-5
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 13    LDY #19
EA       NOP
EA       NOP
88       DEY
D0 F9    BNE *-5
28       PLP
Clobbers Y; 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
F0 F9    BEQ *-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
F0 F9    BEQ *-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
F0 F9    BEQ *-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
F0 FC    BEQ *-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
F0 FC    BEQ *-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
90 FB    BCC *-3
68       PLA
28       PLP
Clobbers S; and writes in stack
EA       NOP
EA       NOP
08       PHP
48       PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
F0 FC    BEQ *-2
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
12 bytes
EA       NOP
08       PHP
28       PLP
08       PHP
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$38'
38       SEC ;first loop only
F0 FC    BEQ *-2
68       PLA
28       PLP
Writes in stack
14 bytes
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
18       CLC
F0 F4    BEQ *-10
Clobbers A, S, Z&N, and C
15 bytes
EA       NOP
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
18       CLC
F0 F4    BEQ *-10
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
A2 23    LDX #35
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
EA       NOP
A0 23    LDY #35
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
48       PHA
F0 FB    BEQ *-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
A2 22    LDX #34
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 22    LDY #34
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
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
F0 FC    BEQ *-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
F0 FC    BEQ *-2
68       PLA
28       PLP
Clobbers S; requires support for unofficial opcodes; and writes in stack
12 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
90 FB    BCC *-3
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
18       CLC
90 00    BCC *+2
18       CLC
F0 F4    BEQ *-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
18       CLC
90 00    BCC *+2
18       CLC
F0 F4    BEQ *-10
Clobbers A, Z&N, and C


181 cycles

5 bytes
A0 24    LDY #36
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A2 24    LDX #36
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A9       LDA #154
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
08       PHP
A2 E8    LDX #232 ;hides 'INX'
EA       NOP
D0 FC    BNE *-2
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 98    LDY #152 ;hides 'TYA'
88       DEY
30 FC    BMI *-2
28       PLP
Clobbers A, and Y; and writes in stack
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
00 00    BRK 0
10 FA    BPL *-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
F0 FB    BEQ *-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
F0 FA    BEQ *-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
F0 FC    BEQ *-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
F0 FC    BEQ *-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
F0 FC    BEQ *-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
F0 F9    BEQ *-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
90 FB    BCC *-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
90 FB    BCC *-3
68       PLA
28       PLP
Clobbers S; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
F0 FC    BEQ *-2
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
EA       NOP
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
18       CLC
F0 F4    BEQ *-10
Clobbers A, S, Z&N, and C
16 bytes
EA       NOP
EA       NOP
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
18       CLC
F0 F4    BEQ *-10
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
A2 23    LDX #35
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
EA       NOP
EA       NOP
A0 23    LDY #35
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 23    LDA #35
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V
9 bytes
8C       TXA
48       PHA
A2 22    LDX #34
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA       NOP
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
F0 F9    BEQ *-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
F0 F9    BEQ *-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
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
18       CLC
F0 F6    BEQ *-8
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
A2 1A    LDX #26
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
A0 1A    LDY #26
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
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
F0 F9    BEQ *-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
F0 F9    BEQ *-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
F0 F8    BEQ *-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
F0 F8    BEQ *-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
F0 F8    BEQ *-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
F0 F8    BEQ *-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
F0 F8    BEQ *-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
F0 F8    BEQ *-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
F0 F7    BEQ *-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
F0 FC    BEQ *-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
F0 FC    BEQ *-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
F0 FC    BEQ *-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
F0 FC    BEQ *-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
F0 FC    BEQ *-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
90 FB    BCC *-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
F0 F4    BEQ *-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
F0 FB    BEQ *-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
F0 FA    BEQ *-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
F0 FA    BEQ *-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
F0 FA    BEQ *-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
10 FA    BPL *-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
F0 FA    BEQ *-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
F0 FA    BEQ *-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
F0 FA    BEQ *-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
F0 F9    BEQ *-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
F0 F9    BEQ *-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
A9 0A    LDA #$0A ;hides 'ASL A'
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
18       CLC
F0 F6    BEQ *-8
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
A2 24    LDX #36
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
68       PLA
A0 24    LDY #36
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
48       PHA
90 FB    BCC *-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
90 FA    BCC *-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
90 FA    BCC *-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
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
F0 F4    BEQ *-10
Clobbers A, Z&N, and C


186 cycles

5 bytes
A2 25    LDX #37
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 25    LDY #37
88       DEY
D0 FB    BNE *-3
Clobbers Y, 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
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
A2 D8    LDX #216 ;hides 'CLD'
E8       INX
E8       INX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 D8    LDY #216 ;hides 'CLD'
C8       INY
C8       INY
D0 FB    BNE *-3
28       PLP
Clobbers Y; 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
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
F0 F9    BEQ *-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
F0 F9    BEQ *-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
EA       NOP
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
85 xx    STA @zptemp
F0 FA    BEQ *-4
28       PLP
Clobbers A; requires @zptemp; and writes in stack
EA       NOP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
85 xx    STA @zptemp
F0 FA    BEQ *-4
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
EA       NOP
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
04 00    NOP $00
F0 FA    BEQ *-4
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
EA       NOP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
04 00    NOP $00
F0 FA    BEQ *-4
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
F0 FC    BEQ *-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
F0 F4    BEQ *-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
EA       NOP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
48       PHA
90 FB    BCC *-3
Clobbers A, S, Z&N, C, and V; and writes in stack
08       PHP
A9       LDA #153
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #153
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA       NOP
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
EA       NOP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
85 xx    STA @zptemp
90 FA    BCC *-4
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
EA       NOP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
04 00    NOP $00
90 FA    BCC *-4
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
A0 23    LDY #35
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; 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
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
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
F0 F4    BEQ *-10
Clobbers A, S, Z&N, and C
15 bytes
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
F0 F4    BEQ *-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
10 FA    BPL *-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
10 FA    BPL *-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
F0 FC    BEQ *-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
F0 F4    BEQ *-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
F0 F4    BEQ *-10
Clobbers A, Z&N, and C


189 cycles

6 bytes
48       PHA
A2 25    LDX #37
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 25    LDY #37
88       DEY
D0 FB    BNE *-3
Clobbers Y, 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
90 FB    BCC *-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
90 FA    BCC *-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
90 FA    BCC *-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
EA       NOP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
85 xx    STA @zptemp
90 FA    BCC *-4
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
EA       NOP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
04 00    NOP $00
90 FA    BCC *-4
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
08       PHP
48       PHA
A9       LDA #148
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
8C       TXA
48       PHA
A2 23    LDX #35
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA       NOP
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
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
F0 F4    BEQ *-10
Clobbers A, S, Z&N, and C
16 bytes
EA       NOP
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
F0 F4    BEQ *-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
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
F0 F8    BEQ *-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
F0 F8    BEQ *-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
F0 F8    BEQ *-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
F0 F8    BEQ *-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
F0 F8    BEQ *-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
F0 F7    BEQ *-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
F0 FC    BEQ *-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
F0 FC    BEQ *-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'
F0 FD    BEQ *-1
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
F0 F6    BEQ *-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
10 F9    BPL *-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
F0 F9    BEQ *-5
Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
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
F0 F8    BEQ *-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
F0 F8    BEQ *-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
F0 F8    BEQ *-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
F0 F8    BEQ *-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
F0 F7    BEQ *-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
10 FA    BPL *-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
10 FA    BPL *-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
F0 FA    BEQ *-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
10 FA    BPL *-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
10 FA    BPL *-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
F0 FA    BEQ *-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
F0 F9    BEQ *-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
F0 F3    BEQ *-11
Clobbers A, Z&N, and C


192 cycles

7 bytes
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
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
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
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
85 xx    STA @zptemp
90 FA    BCC *-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
90 FA    BCC *-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
90 FA    BCC *-4
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
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
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
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
04 00    NOP $00
90 FA    BCC *-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
A9 0A    LDA #$0A ;hides 'ASL A'
A2 25    LDX #37
CA       DEX
D0 FB    BNE *-3
18       CLC
90 F7    BCC *-7
Clobbers A, X, Z&N, and C
A9 0A    LDA #$0A ;hides 'ASL A'
A0 25    LDY #37
88       DEY
D0 FB    BNE *-3
18       CLC
90 F7    BCC *-7
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
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
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


See also