Fixed cycle delay: Difference between revisions

From NESdev Wiki
Jump to navigationJump to search
(Compact the layout a bit)
(Further tweak code to prefer repeated sequences, because reducing the page size helps fend off MediaWiki crashing)
Line 191: Line 191:
!colspan="2"|4 bytes
!colspan="2"|4 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>A6 00    LDX $00
A6 00    LDX $00</pre>||Clobbers X, and Z&N
EA  ... NOP      &times; 2</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>A4 00    LDY $00
A4 00    LDY $00</pre>||Clobbers Y, and Z&N
EA  ... NOP      &times; 2</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>18  ... CLC      &times; 2
|<pre>18  ... CLC      &times; 2
Line 203: Line 203:
50 00    BVC *+2</pre>||Clobbers V
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>85 xx    STA @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
EA  ... NOP      &times; 2</pre>||Requires @zptemp
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>04 00    NOP $00
04 00    NOP $00</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 2</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>4C xx xx JMP *+3
4C xx xx JMP *+3</pre>||Not relocatable code
EA  ... NOP      &times; 2</pre>||Not relocatable code
|-
|-
|}
|}
Line 268: Line 268:
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|-
|<pre>18   ... CLC     &times; 3
|<pre>EA   ... NOP     &times; 2
18      CLC
90 00    BCC *+2</pre>||Clobbers C
90 00    BCC *+2</pre>||Clobbers C
|-
|-
|<pre>B8   ... CLV     &times; 3
|<pre>EA   ... NOP     &times; 2
B8      CLV
50 00    BVC *+2</pre>||Clobbers V
50 00    BVC *+2</pre>||Clobbers V
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>85 xx    STA @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
EA  ... NOP      &times; 3</pre>||Requires @zptemp
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>04 00    NOP $00
04 00    NOP $00</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 3</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>4C xx xx JMP *+3
4C xx xx JMP *+3</pre>||Not relocatable code
EA  ... NOP      &times; 3</pre>||Not relocatable code
|-
|-
|}
|}
Line 344: Line 346:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>E6 xx    INC @zptemp
E6 xx    INC @zptemp</pre>||Clobbers Z&N; and requires @zptemp
EA  ... NOP      &times; 3</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|-
|<pre>18   ... CLC     &times; 4
|<pre>18       CLC
90 00    BCC *+2</pre>||Clobbers C
90 00    BCC *+2
EA  ... NOP      &times; 3</pre>||Clobbers C
|-
|-
|<pre>B8   ... CLV     &times; 4
|<pre>B8       CLV
50 00    BVC *+2</pre>||Clobbers V
50 00    BVC *+2
EA  ... NOP      &times; 3</pre>||Clobbers V
|-
|-
|<pre>EA  ... NOP      &times; 4
|<pre>85 xx    STA @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
EA  ... NOP      &times; 4</pre>||Requires @zptemp
|-
|-
|<pre>EA  ... NOP      &times; 4
|<pre>04 00    NOP $00
04 00    NOP $00</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 4</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>EA  ... NOP      &times; 4
|<pre>4C xx xx JMP *+3
4C xx xx JMP *+3</pre>||Not relocatable code
EA  ... NOP      &times; 4</pre>||Not relocatable code
|-
|-
|}
|}
Line 386: Line 390:
28      PLP</pre>||Requires @zptemp; and writes in stack
28      PLP</pre>||Requires @zptemp; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>48   ... PHA     &times; 4</pre>||Clobbers S; and writes in stack
48       PHA
08      PHP
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|5 bytes
!colspan="2"|5 bytes
Line 434: Line 435:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A6 00    LDX $00
26 00    ROL $00
66 00    ROR $00</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
26 00    ROL $00
26 00    ROL $00
66 00    ROR $00</pre>||Clobbers Y, and Z&N
66 00    ROR $00</pre>||Clobbers Y, and Z&N
|-
|<pre>A6 00    LDX $00
26 00    ROL $00
66 00    ROR $00</pre>||Clobbers X, and Z&N
|-
|-
|<pre>C5 00    CMP $00
|<pre>C5 00    CMP $00
Line 465: Line 466:
66 00    ROR $00</pre>||Clobbers Z&N; and not relocatable code
66 00    ROR $00</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|<pre>18   ... CLC     &times; 5
|<pre>18       CLC
90 00    BCC *+2</pre>||Clobbers C
90 00    BCC *+2
EA  ... NOP      &times; 4</pre>||Clobbers C
|-
|-
|<pre>B8   ... CLV     &times; 5
|<pre>B8       CLV
50 00    BVC *+2</pre>||Clobbers V
50 00    BVC *+2
EA  ... NOP      &times; 4</pre>||Clobbers V
|-
|-
|<pre>EA  ... NOP      &times; 5
|<pre>85 xx    STA @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
EA  ... NOP      &times; 5</pre>||Requires @zptemp
|-
|-
|<pre>EA  ... NOP      &times; 5
|<pre>04 00    NOP $00
04 00    NOP $00</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 5</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA  ... NOP      &times; 5
|<pre>4C xx xx JMP *+3
4C xx xx JMP *+3</pre>||Not relocatable code
EA  ... NOP      &times; 5</pre>||Not relocatable code
|-
|-
|}
|}
Line 526: Line 529:
20 xx xx JSR @rts12</pre>||Clobbers S; requires @rts12; and writes in stack
20 xx xx JSR @rts12</pre>||Clobbers S; requires @rts12; and writes in stack
|-
|-
|<pre>68  ... PLA      &times; 3
|<pre>68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 2</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|5 bytes
!colspan="2"|5 bytes
Line 564: Line 568:
20 xx xx JSR @rts12</pre>||Requires @zptemp, and @rts12; and writes in stack
20 xx xx JSR @rts12</pre>||Requires @zptemp, and @rts12; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>48  ... PHA      &times; 5</pre>||Clobbers S; and writes in stack
48  ... PHA      &times; 2
08      PHP
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
Line 574: Line 575:
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|-
|<pre>EA  ... NOP      &times; 4
|<pre>08      PHP
08      PHP
28      PLP
28      PLP</pre>||Writes in stack
EA  ... NOP      &times; 4</pre>||Writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
|-
|<pre>A4 00    LDY $00
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers X, and Z&N
76 00    ROR $00,X</pre>||Clobbers X, and Z&N
|-
|<pre>A4 00    LDY $00
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>C5 00    CMP $00
|<pre>C5 00    CMP $00
Line 614: Line 615:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>18   ... CLC     &times; 6
|<pre>18       CLC
90 00    BCC *+2</pre>||Clobbers C
90 00    BCC *+2
EA  ... NOP      &times; 5</pre>||Clobbers C
|-
|-
|<pre>B8   ... CLV     &times; 6
|<pre>B8       CLV
50 00    BVC *+2</pre>||Clobbers V
50 00    BVC *+2
EA  ... NOP      &times; 5</pre>||Clobbers V
|-
|-
|<pre>EA  ... NOP      &times; 6
|<pre>85 xx    STA @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
EA  ... NOP      &times; 6</pre>||Requires @zptemp
|-
|-
|<pre>EA  ... NOP      &times; 6
|<pre>04 00    NOP $00
04 00    NOP $00</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 6</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>EA  ... NOP      &times; 6
|<pre>4C xx xx JMP *+3
4C xx xx JMP *+3</pre>||Not relocatable code
EA  ... NOP      &times; 6</pre>||Not relocatable code
|-
|-
|}
|}
Line 648: Line 651:
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
00 00    BRK 0</pre>||Clobbers A, and Z&N; requires dummy interrupt handler; and writes in stack
00 00    BRK 0</pre>||Clobbers A, and Z&N; requires dummy interrupt handler; and writes in stack
|-
|<pre>A6 00    LDX $00
00 00    BRK 0</pre>||Clobbers X, and Z&N; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
00 00    BRK 0</pre>||Clobbers Y, and Z&N; requires dummy interrupt handler; and writes in stack
00 00    BRK 0</pre>||Clobbers Y, and Z&N; requires dummy interrupt handler; and writes in stack
|-
|<pre>A6 00    LDX $00
00 00    BRK 0</pre>||Clobbers X, and Z&N; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>C5 00    CMP $00
|<pre>C5 00    CMP $00
Line 746: Line 749:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68  ... PLA      &times; 3
68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 2</pre>||Clobbers A, S, and Z&N
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
Line 769: Line 773:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>EA      NOP
A4 00    LDY $00
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 776: Line 785:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A4 00    LDY $00
C5 00    CMP $00
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
C5 00    CMP $00
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
Line 804: Line 808:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>18   ... CLC     &times; 7
|<pre>18       CLC
90 00    BCC *+2</pre>||Clobbers C
90 00    BCC *+2
EA  ... NOP      &times; 6</pre>||Clobbers C
|-
|-
|<pre>B8   ... CLV     &times; 7
|<pre>B8       CLV
50 00    BVC *+2</pre>||Clobbers V
50 00    BVC *+2
EA  ... NOP      &times; 6</pre>||Clobbers V
|-
|-
|<pre>EA  ... NOP      &times; 7
|<pre>85 xx    STA @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
EA  ... NOP      &times; 7</pre>||Requires @zptemp
|-
|-
|<pre>EA  ... NOP      &times; 7
|<pre>04 00    NOP $00
04 00    NOP $00</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 7</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA  ... NOP      &times; 7
|<pre>4C xx xx JMP *+3
4C xx xx JMP *+3</pre>||Not relocatable code
EA  ... NOP      &times; 7</pre>||Not relocatable code
|-
|-
|}
|}
Line 867: Line 873:
A5 00    LDA $00
A5 00    LDA $00
00 00    BRK 0</pre>||Clobbers A, and Z&N; requires dummy interrupt handler; and writes in stack
00 00    BRK 0</pre>||Clobbers A, and Z&N; requires dummy interrupt handler; and writes in stack
|-
|<pre>EA      NOP
A6 00    LDX $00
00 00    BRK 0</pre>||Clobbers X, and Z&N; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A4 00    LDY $00
A4 00    LDY $00
00 00    BRK 0</pre>||Clobbers Y, and Z&N; requires dummy interrupt handler; and writes in stack
00 00    BRK 0</pre>||Clobbers Y, and Z&N; requires dummy interrupt handler; and writes in stack
|-
|<pre>EA      NOP
A6 00    LDX $00
00 00    BRK 0</pre>||Clobbers X, and Z&N; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 962: Line 968:
20 xx xx JSR @rts14</pre>||Clobbers Z&N; requires @zptemp, and @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers Z&N; requires @zptemp, and @rts14; and writes in stack
|-
|-
|<pre>68  ... PLA      &times; 4
|<pre>68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 3</pre>||Clobbers A, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,000: Line 1,007:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>C5 00    CMP $00
C5 00    CMP $00
EA  ... NOP      &times; 2
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>24 00    BIT $00
24 00    BIT $00
EA  ... NOP      &times; 2
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>04 00    NOP $00
04 00    NOP $00
EA  ... NOP      &times; 2
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
Line 1,017: Line 1,024:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>4C xx xx JMP *+3
4C xx xx JMP *+3
EA  ... NOP      &times; 2
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
Line 1,024: Line 1,031:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>18   ... CLC     &times; 8
|<pre>18       CLC
90 00    BCC *+2</pre>||Clobbers C
90 00    BCC *+2
EA  ... NOP      &times; 7</pre>||Clobbers C
|-
|-
|<pre>B8   ... CLV     &times; 8
|<pre>B8       CLV
50 00    BVC *+2</pre>||Clobbers V
50 00    BVC *+2
EA  ... NOP      &times; 7</pre>||Clobbers V
|-
|-
|<pre>EA  ... NOP      &times; 8
|<pre>85 xx    STA @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
EA  ... NOP      &times; 8</pre>||Requires @zptemp
|-
|-
|<pre>EA  ... NOP      &times; 8
|<pre>04 00    NOP $00
04 00    NOP $00</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 8</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>EA  ... NOP      &times; 8
|<pre>4C xx xx JMP *+3
4C xx xx JMP *+3</pre>||Not relocatable code
EA  ... NOP      &times; 8</pre>||Not relocatable code
|-
|-
|}
|}
Line 1,075: Line 1,084:
A5 00    LDA $00
A5 00    LDA $00
20 xx xx JSR @rts15</pre>||Clobbers A, and Z&N; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers A, and Z&N; requires @rts15; and writes in stack
|-
|<pre>EA      NOP
A6 00    LDX $00
20 xx xx JSR @rts15</pre>||Clobbers X, and Z&N; requires @rts15; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A4 00    LDY $00
A4 00    LDY $00
20 xx xx JSR @rts15</pre>||Clobbers Y, and Z&N; requires @rts15; and writes in stack
20 xx xx JSR @rts15</pre>||Clobbers Y, and Z&N; requires @rts15; and writes in stack
|-
|<pre>EA      NOP
A6 00    LDX $00
20 xx xx JSR @rts15</pre>||Clobbers X, and Z&N; requires @rts15; and writes in stack
|-
|-
|<pre>BA      TSX
|<pre>BA      TSX
Line 1,120: Line 1,129:
68      PLA      \ &times; 2
68      PLA      \ &times; 2
48      PHA      /</pre>||Clobbers A, and Z&N
48      PHA      /</pre>||Clobbers A, and Z&N
|-
|<pre>EA  ... NOP      &times; 2
A2 03    LDX #3
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 1,125: Line 1,139:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>EA  ... NOP      &times; 2
A2 03    LDX #3
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 1,177: Line 1,186:
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP      \ &times; 3
48      PHA       \ &times; 2
28       PLP       /</pre>||Writes in stack
68       PLA       /
28      PLP</pre>||Writes in stack
|-
|-
|<pre>68      PLA      \ &times; 3
|<pre>68      PLA      \ &times; 3
Line 1,194: Line 1,201:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>C5 00    CMP $00
C5 00    CMP $00
EA  ... NOP      &times; 3
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>24 00    BIT $00
24 00    BIT $00
EA  ... NOP      &times; 3
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>04 00    NOP $00
04 00    NOP $00
EA  ... NOP      &times; 3
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
Line 1,211: Line 1,218:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>4C xx xx JMP *+3
4C xx xx JMP *+3
EA  ... NOP      &times; 3
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
Line 1,218: Line 1,225:
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>18   ... CLC     &times; 9
|<pre>18       CLC
90 00    BCC *+2</pre>||Clobbers C
90 00    BCC *+2
EA  ... NOP      &times; 8</pre>||Clobbers C
|-
|-
|<pre>B8   ... CLV     &times; 9
|<pre>B8       CLV
50 00    BVC *+2</pre>||Clobbers V
50 00    BVC *+2
EA  ... NOP      &times; 8</pre>||Clobbers V
|-
|-
|<pre>EA  ... NOP      &times; 9
|<pre>85 xx    STA @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
EA  ... NOP      &times; 9</pre>||Requires @zptemp
|-
|-
|<pre>EA  ... NOP      &times; 9
|<pre>04 00    NOP $00
04 00    NOP $00</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 9</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>EA  ... NOP      &times; 9
|<pre>4C xx xx JMP *+3
4C xx xx JMP *+3</pre>||Not relocatable code
EA  ... NOP      &times; 9</pre>||Not relocatable code
|-
|-
|}
|}
Line 1,373: Line 1,382:
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>68  ... PLA      &times; 5
|<pre>68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 4</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP      \ &times; 3
48      PHA       \ &times; 2
28       PLP       /</pre>||Writes in stack
68       PLA       /
28      PLP</pre>||Writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 1,390: Line 1,398:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>E6 xx    INC @zptemp
E6 xx    INC @zptemp
EA  ... NOP      &times; 3
36 00    ROL $00,X
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
Line 1,417: Line 1,425:
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>18   ... CLC     &times; 10
|<pre>18       CLC
90 00    BCC *+2</pre>||Clobbers C
90 00    BCC *+2
EA  ... NOP      &times; 9</pre>||Clobbers C
|-
|-
|<pre>B8   ... CLV     &times; 10
|<pre>B8       CLV
50 00    BVC *+2</pre>||Clobbers V
50 00    BVC *+2
EA  ... NOP      &times; 9</pre>||Clobbers V
|-
|-
|<pre>EA  ... NOP      &times; 10
|<pre>85 xx    STA @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
EA  ... NOP      &times; 10</pre>||Requires @zptemp
|-
|-
|<pre>EA  ... NOP      &times; 10
|<pre>04 00    NOP $00
04 00    NOP $00</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 10</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
|-
|-
|<pre>EA  ... NOP      &times; 10
|<pre>4C xx xx JMP *+3
4C xx xx JMP *+3</pre>||Not relocatable code
EA  ... NOP      &times; 10</pre>||Not relocatable code
|-
|-
|}
|}
Line 1,499: Line 1,509:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP      \ &times; 3
48      PHA       \ &times; 2
28       PLP       /</pre>||Clobbers S; and writes in stack
68       PLA       /
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
Line 1,548: Line 1,556:
28      PLP
28      PLP
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>A0 03    LDY #3
48      PHA
88      DEY
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
Line 1,554: Line 1,567:
D0 FA    BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 03   LDY #3
|<pre>68      PLA
48      PHA
A0 04   LDY #4
88      DEY
88      DEY
D0 FA   BNE *-4</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
Line 1,563: Line 1,576:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|<pre>68      PLA
A0 04    LDY #4
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 1,578: Line 1,586:
20 xx xx JSR @rts14</pre>||Clobbers A, S, and Z&N; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers A, S, and Z&N; requires @rts14; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>48   ... PHA     &times; 4
48       PHA
08      PHP
28      PLP
00 00    BRK 0</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack
00 00    BRK 0</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack
|-
|-
Line 1,607: Line 1,612:
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>18   ... CLC     &times; 3
|<pre>EA   ... NOP     &times; 2
18      CLC
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
90 FD    BCC *-1</pre>||Clobbers A, Z&N, and C
90 FD    BCC *-1</pre>||Clobbers A, Z&N, and C
Line 1,628: Line 1,634:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68  ... PLA      &times; 5
68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 4</pre>||Clobbers A, S, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 1,644: Line 1,651:
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
08      PHP
08      PHP      \ &times; 3
48      PHA       \ &times; 2
28       PLP       /</pre>||Writes in stack
68       PLA       /
28      PLP</pre>||Writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 1,687: Line 1,692:
!colspan="2"|13 bytes
!colspan="2"|13 bytes
|-
|-
|<pre>18   ... CLC     &times; 11
|<pre>18       CLC
90 00    BCC *+2</pre>||Clobbers C
90 00    BCC *+2
EA  ... NOP      &times; 10</pre>||Clobbers C
|-
|-
|<pre>B8   ... CLV     &times; 11
|<pre>B8       CLV
50 00    BVC *+2</pre>||Clobbers V
50 00    BVC *+2
EA  ... NOP      &times; 10</pre>||Clobbers V
|-
|-
|<pre>EA  ... NOP      &times; 11
|<pre>85 xx    STA @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
EA  ... NOP      &times; 11</pre>||Requires @zptemp
|-
|-
|<pre>EA  ... NOP      &times; 11
|<pre>04 00    NOP $00
04 00    NOP $00</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 11</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
|-
|-
|<pre>EA  ... NOP      &times; 11
|<pre>4C xx xx JMP *+3
4C xx xx JMP *+3</pre>||Not relocatable code
EA  ... NOP      &times; 11</pre>||Not relocatable code
|-
|-
|}
|}
Line 1,761: Line 1,768:
68  ... PLA      &times; 6</pre>||Clobbers A, S, and Z&N
68  ... PLA      &times; 6</pre>||Clobbers A, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>48   ... PHA     &times; 4
48       PHA
08      PHP
28      PLP
20 xx xx JSR @rts14</pre>||Clobbers S; requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Clobbers S; requires @rts14; and writes in stack
|-
|-
Line 1,776: Line 1,780:
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>68      PLA      \ &times; 2
|<pre>36 00    ROL $00,X
48      PHA      /
76 00    ROR $00,X
36 00    ROL $00,X
68      PLA      \ &times; 2
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
48      PHA      /</pre>||Clobbers A, and Z&N
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 1,817: Line 1,821:
10 FD    BPL *-1</pre>||Clobbers A, Z&N, and C
10 FD    BPL *-1</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP      \ &times; 2
|<pre>00 00    BRK 0
28      PLP      /
08      PHP      \ &times; 2
00 00    BRK 0</pre>||Requires dummy interrupt handler; and writes in stack
28      PLP      /</pre>||Requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>68  ... PLA      &times; 3
|<pre>68  ... PLA      &times; 3
Line 1,850: Line 1,854:
20 xx xx JSR @rts12&times; 2</pre>||Clobbers S; requires @rts12; and writes in stack
20 xx xx JSR @rts12&times; 2</pre>||Clobbers S; requires @rts12; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>48   ... PHA     &times; 4
48       PHA
08      PHP
28      PLP
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>68  ... PLA      &times; 6
|<pre>68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 5</pre>||Clobbers A, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>48  ... PHA      &times; 2
A0 03   LDY #3
A0 04   LDY #4
48      PHA
88      DEY
88      DEY
D0 FA   BNE *-4</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>48  ... PHA      &times; 2
A2 03   LDX #3
A2 04   LDX #4
48      PHA
CA      DEX
CA      DEX
D0 FA   BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FB   BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 1,916: Line 1,916:
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
08      PHP
08      PHP      \ &times; 3
48      PHA       \ &times; 2
28       PLP       /</pre>||Clobbers S; and writes in stack
68       PLA       /
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
Line 1,966: Line 1,964:
!colspan="2"|14 bytes
!colspan="2"|14 bytes
|-
|-
|<pre>18   ... CLC     &times; 12
|<pre>18       CLC
90 00    BCC *+2</pre>||Clobbers C
90 00    BCC *+2
EA  ... NOP      &times; 11</pre>||Clobbers C
|-
|-
|<pre>B8   ... CLV     &times; 12
|<pre>B8       CLV
50 00    BVC *+2</pre>||Clobbers V
50 00    BVC *+2
EA  ... NOP      &times; 11</pre>||Clobbers V
|-
|-
|<pre>EA  ... NOP      &times; 12
|<pre>85 xx    STA @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
EA  ... NOP      &times; 12</pre>||Requires @zptemp
|-
|-
|<pre>EA  ... NOP      &times; 12
|<pre>04 00    NOP $00
04 00    NOP $00</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 12</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|15 bytes
!colspan="2"|15 bytes
|-
|-
|<pre>EA  ... NOP      &times; 12
|<pre>4C xx xx JMP *+3
4C xx xx JMP *+3</pre>||Not relocatable code
EA  ... NOP      &times; 12</pre>||Not relocatable code
|-
|-
|}
|}
Line 2,012: Line 2,012:
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>18   ... CLC     &times; 2
|<pre>EA   ... NOP     &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1</pre>||Clobbers A, Z&N, and C
10 FD    BPL *-1</pre>||Clobbers A, Z&N, and C
Line 2,053: Line 2,053:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP      \ &times; 4
28      PLP
28       PLP       /</pre>||Writes in stack
08      PHP
48      PHA       \ &times; 2
68       PLA       /
28      PLP</pre>||Writes in stack
|-
|-
|<pre>68      PLA      \ &times; 4
|<pre>68      PLA      \ &times; 4
Line 2,132: Line 2,128:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
00 00    BRK 0
08      PHP      \ &times; 2
08      PHP      \ &times; 2
28      PLP      /
28      PLP      /</pre>||Requires dummy interrupt handler; and writes in stack
00 00    BRK 0</pre>||Requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 2,154: Line 2,150:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 03    LDY #3
A2 03    LDX #3
EA      NOP
EA      NOP
88       DEY
CA       DEX
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 03    LDX #3
A0 03    LDY #3
EA      NOP
EA      NOP
CA       DEX
88       DEY
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 2,190: Line 2,186:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68  ... PLA      &times; 6
68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 5</pre>||Clobbers A, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>20 xx xx JSR @rts14
48  ... PHA      &times; 2
48  ... PHA      &times; 5</pre>||Clobbers S; requires @rts14; and writes in stack
08      PHP
28      PLP
20 xx xx JSR @rts14</pre>||Clobbers S; requires @rts14; and writes in stack
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
Line 2,211: Line 2,205:
28      PLP</pre>||Requires @rts12; and writes in stack
28      PLP</pre>||Requires @rts12; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 4
|<pre>08      PHP
08      PHP
28      PLP
28      PLP
EA  ... NOP      &times; 4
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack
|-
|-
Line 2,270: Line 2,264:
!colspan="2"|15 bytes
!colspan="2"|15 bytes
|-
|-
|<pre>18   ... CLC     &times; 13
|<pre>18       CLC
90 00    BCC *+2</pre>||Clobbers C
90 00    BCC *+2
EA  ... NOP      &times; 12</pre>||Clobbers C
|-
|-
|<pre>B8   ... CLV     &times; 13
|<pre>B8       CLV
50 00    BVC *+2</pre>||Clobbers V
50 00    BVC *+2
EA  ... NOP      &times; 12</pre>||Clobbers V
|-
|-
|<pre>EA  ... NOP      &times; 13
|<pre>85 xx    STA @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
EA  ... NOP      &times; 13</pre>||Requires @zptemp
|-
|-
|<pre>EA  ... NOP      &times; 13
|<pre>04 00    NOP $00
04 00    NOP $00</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 13</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|16 bytes
!colspan="2"|16 bytes
|-
|-
|<pre>EA  ... NOP      &times; 13
|<pre>4C xx xx JMP *+3
4C xx xx JMP *+3</pre>||Not relocatable code
EA  ... NOP      &times; 13</pre>||Not relocatable code
|-
|-
|}
|}
Line 2,306: Line 2,302:
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
00 00... BRK 0    &times; 2</pre>||Requires dummy interrupt handler; and writes in stack
00 00... BRK 0    &times; 2</pre>||Requires dummy interrupt handler; and writes in stack
|-
|<pre>68      PLA
A2 05    LDX #5
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 2,311: Line 2,312:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|<pre>68      PLA
A2 05    LDX #5
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,323: Line 2,319:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>EA  ... NOP      &times; 2
A2 05    LDX #5
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 2,329: Line 2,330:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA  ... NOP     &times; 2
|<pre>EA  ... NOP      &times; 3
A2 05    LDX #5
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>18  ... CLC     &times; 3
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1</pre>||Clobbers A, Z&N, and C
10 FD    BPL *-1</pre>||Clobbers A, Z&N, and C
Line 2,351: Line 2,347:
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A0 04    LDY #4
A2 04    LDX #4
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A2 04    LDX #4
A0 04    LDY #4
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 2,479: Line 2,475:
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
20 xx xx JSR @rts14&times; 2</pre>||Clobbers Z&N, and V; requires @rts14; and writes in stack
20 xx xx JSR @rts14&times; 2</pre>||Clobbers Z&N, and V; requires @rts14; and writes in stack
|-
|<pre>85 xx    STA @zptemp
20 xx xx JSR @rts14&times; 2</pre>||Requires @zptemp, and @rts14; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
00 00    BRK 0
08      PHP      \ &times; 2
08      PHP      \ &times; 2
28      PLP      /
28      PLP      /</pre>||Requires dummy interrupt handler; and writes in stack
00 00    BRK 0</pre>||Requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>85 xx    STA @zptemp
|<pre>68      PLA
20 xx xx JSR @rts14&times; 2</pre>||Requires @zptemp, and @rts14; and writes in stack
48      PHA
|-
68  ... PLA      &times; 6</pre>||Clobbers A, S, and Z&N
|<pre>68  ... PLA      &times; 7
48      PHA</pre>||Clobbers A, S, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 2,509: Line 2,506:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>08      PHP
A4 00    LDY $00
A0 04    LDY #4
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 2,516: Line 2,520:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A4 00    LDY $00
A0 04    LDY #4
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>20 xx xx JSR @rts14
|<pre>20 xx xx JSR @rts14
Line 2,531: Line 2,528:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP      \ &times; 4
28      PLP
28       PLP       /</pre>||Clobbers S; and writes in stack
08      PHP
48      PHA       \ &times; 2
68       PLA       /
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 2,583: Line 2,576:
!colspan="2"|16 bytes
!colspan="2"|16 bytes
|-
|-
|<pre>18   ... CLC     &times; 14
|<pre>18       CLC
90 00    BCC *+2</pre>||Clobbers C
90 00    BCC *+2
EA  ... NOP      &times; 13</pre>||Clobbers C
|-
|-
|<pre>B8   ... CLV     &times; 14
|<pre>B8       CLV
50 00    BVC *+2</pre>||Clobbers V
50 00    BVC *+2
EA  ... NOP      &times; 13</pre>||Clobbers V
|-
|-
|<pre>EA  ... NOP      &times; 14
|<pre>85 xx    STA @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
EA  ... NOP      &times; 14</pre>||Requires @zptemp
|-
|-
|<pre>EA  ... NOP      &times; 14
|<pre>04 00    NOP $00
04 00    NOP $00</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 14</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|17 bytes
!colspan="2"|17 bytes
|-
|-
|<pre>EA  ... NOP      &times; 14
|<pre>4C xx xx JMP *+3
4C xx xx JMP *+3</pre>||Not relocatable code
EA  ... NOP      &times; 14</pre>||Not relocatable code
|-
|-
|}
|}
Line 2,642: Line 2,637:
00 00... BRK 0    &times; 2</pre>||Requires dummy interrupt handler; and writes in stack
00 00... BRK 0    &times; 2</pre>||Requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>48   ... PHA     &times; 2
A0 04   LDY #4
A0 05   LDY #5
EA      NOP
88      DEY
88      DEY
D0 FA   BNE *-4</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     &times; 2
A2 04   LDX #4
A2 05   LDX #5
EA      NOP
CA      DEX
CA      DEX
D0 FA   BNE *-4</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 2,696: Line 2,689:
68      PLA</pre>||Clobbers Z&N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>EA   ... NOP     &times; 2
18   ... CLC     &times; 3
08      PHP
18      CLC
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
90 FD    BCC *-1
90 FD    BCC *-1
Line 2,743: Line 2,737:
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>26 00    ROL $00   \ &times; 2
|<pre>36 00    ROL $00,X
66 00    ROR $00   /
76 00    ROR $00,X
36 00    ROL $00,X
26 00    ROL $00   \ &times; 2
76 00    ROR $00,X</pre>||Clobbers Z&N
66 00    ROR $00   /</pre>||Clobbers Z&N
|-
|-
!colspan="2"|16 bytes
!colspan="2"|16 bytes
Line 2,763: Line 2,757:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A2 06    LDX #6
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 2,768: Line 2,767:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
A2 06    LDX #6
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>18  ... CLC      &times; 2
|<pre>18  ... CLC      &times; 2
Line 2,789: Line 2,783:
10 FD    BPL *-1
10 FD    BPL *-1
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
A0 05    LDY #5
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 2,795: Line 2,795:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A0 05    LDY #5
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 2,857: Line 2,851:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68  ... PLA      &times; 7
68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 6</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 2,869: Line 2,864:
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>68      PLA      \ &times; 3
|<pre>36 00    ROL $00,X
48      PHA      /
76 00    ROR $00,X
36 00    ROL $00,X
68      PLA      \ &times; 3
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
48      PHA      /</pre>||Clobbers A, and Z&N
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 2,883: Line 2,878:
!colspan="2"|13 bytes
!colspan="2"|13 bytes
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>C5 00    CMP $00
C5 00    CMP $00
EA  ... NOP      &times; 3
36 00    ROL $00,X \ &times; 2
36 00    ROL $00,X \ &times; 2
76 00    ROR $00,X /</pre>||Clobbers Z&N, and C
76 00    ROR $00,X /</pre>||Clobbers Z&N, and C
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>24 00    BIT $00
24 00    BIT $00
EA  ... NOP      &times; 3
36 00    ROL $00,X \ &times; 2
36 00    ROL $00,X \ &times; 2
76 00    ROR $00,X /</pre>||Clobbers Z&N, and V
76 00    ROR $00,X /</pre>||Clobbers Z&N, and V
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>04 00    NOP $00
04 00    NOP $00
EA  ... NOP      &times; 3
36 00    ROL $00,X \ &times; 2
36 00    ROL $00,X \ &times; 2
76 00    ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
76 00    ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
Line 2,900: Line 2,895:
!colspan="2"|14 bytes
!colspan="2"|14 bytes
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>4C xx xx JMP *+3
4C xx xx JMP *+3
EA  ... NOP      &times; 3
36 00    ROL $00,X \ &times; 2
36 00    ROL $00,X \ &times; 2
76 00    ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code
76 00    ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code
Line 2,907: Line 2,902:
!colspan="2"|17 bytes
!colspan="2"|17 bytes
|-
|-
|<pre>18   ... CLC     &times; 15
|<pre>18       CLC
90 00    BCC *+2</pre>||Clobbers C
90 00    BCC *+2
EA  ... NOP      &times; 14</pre>||Clobbers C
|-
|-
|<pre>B8   ... CLV     &times; 15
|<pre>B8       CLV
50 00    BVC *+2</pre>||Clobbers V
50 00    BVC *+2
EA  ... NOP      &times; 14</pre>||Clobbers V
|-
|-
|<pre>EA  ... NOP      &times; 15
|<pre>85 xx    STA @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
EA  ... NOP      &times; 15</pre>||Requires @zptemp
|-
|-
|<pre>EA  ... NOP      &times; 15
|<pre>04 00    NOP $00
04 00    NOP $00</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 15</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|18 bytes
!colspan="2"|18 bytes
|-
|-
|<pre>EA  ... NOP      &times; 15
|<pre>4C xx xx JMP *+3
4C xx xx JMP *+3</pre>||Not relocatable code
EA  ... NOP      &times; 15</pre>||Not relocatable code
|-
|-
|}
|}
Line 3,081: Line 3,078:
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>18   ... CLC     &times; 3
|<pre>EA   ... NOP     &times; 2
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
90 FD    BCC *-1</pre>||Clobbers A, Z&N, and C
90 FD    BCC *-1</pre>||Clobbers A, Z&N, and C
Line 3,108: Line 3,106:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>08      PHP
|<pre>EA   ... NOP     &times; 2
18   ... CLC     &times; 2
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
10 FD    BPL *-1
Line 3,116: Line 3,114:
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A0 05    LDY #5
A2 05    LDX #5
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A2 05    LDX #5
A0 05    LDY #5
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>EA   ... NOP     &times; 2
18   ... CLC     &times; 2
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
10 FD    BPL *-1
Line 3,155: Line 3,153:
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>68  ... PLA      &times; 8
|<pre>68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 7</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|10 bytes
!colspan="2"|10 bytes
Line 3,165: Line 3,164:
!colspan="2"|13 bytes
!colspan="2"|13 bytes
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>E6 xx    INC @zptemp
E6 xx    INC @zptemp
EA  ... NOP      &times; 3
36 00    ROL $00,X \ &times; 2
36 00    ROL $00,X \ &times; 2
76 00    ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp
76 00    ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp
Line 3,173: Line 3,172:
|-
|-
|<pre>C5 00    CMP $00
|<pre>C5 00    CMP $00
36 00    ROL $00,X
76 00    ROR $00,X
26 00    ROL $00  \ &times; 2
26 00    ROL $00  \ &times; 2
66 00    ROR $00  /
66 00    ROR $00  /</pre>||Clobbers Z&N, and C
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N, and C
|-
|-
|<pre>24 00    BIT $00
|<pre>24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
26 00    ROL $00  \ &times; 2
26 00    ROL $00  \ &times; 2
66 00    ROR $00  /
66 00    ROR $00  /</pre>||Clobbers Z&N, and V
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N, and V
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
26 00    ROL $00  \ &times; 2
26 00    ROL $00  \ &times; 2
66 00    ROR $00  /
66 00    ROR $00  /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|15 bytes
!colspan="2"|15 bytes
|-
|-
|<pre>4C xx xx JMP *+3
|<pre>4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
26 00    ROL $00  \ &times; 2
26 00    ROL $00  \ &times; 2
66 00    ROR $00  /
66 00    ROR $00  /</pre>||Clobbers Z&N; and not relocatable code
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N; and not relocatable code
|-
|-
!colspan="2"|18 bytes
!colspan="2"|18 bytes
|-
|-
|<pre>18   ... CLC     &times; 16
|<pre>18       CLC
90 00    BCC *+2</pre>||Clobbers C
90 00    BCC *+2
EA  ... NOP      &times; 15</pre>||Clobbers C
|-
|-
|<pre>B8   ... CLV     &times; 16
|<pre>B8       CLV
50 00    BVC *+2</pre>||Clobbers V
50 00    BVC *+2
EA  ... NOP      &times; 15</pre>||Clobbers V
|-
|-
|<pre>EA  ... NOP      &times; 16
|<pre>85 xx    STA @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
EA  ... NOP      &times; 16</pre>||Requires @zptemp
|-
|-
|<pre>EA  ... NOP      &times; 16
|<pre>04 00    NOP $00
04 00    NOP $00</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 16</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|19 bytes
!colspan="2"|19 bytes
|-
|-
|<pre>EA  ... NOP      &times; 16
|<pre>4C xx xx JMP *+3
4C xx xx JMP *+3</pre>||Not relocatable code
EA  ... NOP      &times; 16</pre>||Not relocatable code
|-
|-
|}
|}
Line 3,373: Line 3,374:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A0 04    LDY #4
EA  ... NOP      &times; 2
88      DEY
D0 F9    BNE *-5</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 04    LDX #4
|<pre>A2 04    LDX #4
Line 3,378: Line 3,384:
CA      DEX
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N
|-
|<pre>A0 04    LDY #4
EA  ... NOP      &times; 2
88      DEY
D0 F9    BNE *-5</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 3,428: Line 3,429:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>EA   ... NOP     &times; 3
18   ... CLC     &times; 3
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
10 FD    BPL *-1
Line 3,448: Line 3,449:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>EA   ... NOP     &times; 3
18   ... CLC     &times; 3
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
10 FD    BPL *-1
Line 3,470: Line 3,471:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68  ... PLA      &times; 8
68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 7</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 3,494: Line 3,496:
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
26 00    ROL $00  \ &times; 2
26 00    ROL $00  \ &times; 2
66 00    ROR $00  /
66 00    ROR $00  /</pre>||Clobbers Z&N; and requires @zptemp
36 00    ROL $00,X
76 00    ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|<pre>04 00    NOP $00
|<pre>04 00    NOP $00
Line 3,515: Line 3,517:
!colspan="2"|19 bytes
!colspan="2"|19 bytes
|-
|-
|<pre>18   ... CLC     &times; 17
|<pre>18       CLC
90 00    BCC *+2</pre>||Clobbers C
90 00    BCC *+2
EA  ... NOP      &times; 16</pre>||Clobbers C
|-
|-
|<pre>B8   ... CLV     &times; 17
|<pre>B8       CLV
50 00    BVC *+2</pre>||Clobbers V
50 00    BVC *+2
EA  ... NOP      &times; 16</pre>||Clobbers V
|-
|-
|<pre>EA  ... NOP      &times; 17
|<pre>85 xx    STA @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
EA  ... NOP      &times; 17</pre>||Requires @zptemp
|-
|-
|<pre>EA  ... NOP      &times; 17
|<pre>04 00    NOP $00
04 00    NOP $00</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 17</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|20 bytes
!colspan="2"|20 bytes
|-
|-
|<pre>EA  ... NOP      &times; 17
|<pre>4C xx xx JMP *+3
4C xx xx JMP *+3</pre>||Not relocatable code
EA  ... NOP      &times; 17</pre>||Not relocatable code
|-
|-
|}
|}
Line 3,590: Line 3,594:
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>18   ... CLC     &times; 2
|<pre>EA   ... NOP     &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
18      CLC
Line 3,654: Line 3,658:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A6 00    LDX $00
A2 07    LDX #7
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
Line 3,659: Line 3,668:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A6 00    LDX $00
A2 07    LDX #7
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 3,676: Line 3,680:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>08      PHP
A0 05    LDY #5 ;hides 'ORA zp'
88      DEY ;first loop only
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A, and Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 3,683: Line 3,694:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A, and X; and writes in stack
28      PLP</pre>||Clobbers A, and X; and writes in stack
|-
|<pre>08      PHP
A0 05    LDY #5 ;hides 'ORA zp'
88      DEY ;first loop only
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A, and Y; and writes in stack
|-
|-
|<pre>A9 09    LDA #$09 ;hides 'ORA #$EA'
|<pre>A9 09    LDA #$09 ;hides 'ORA #$EA'
Line 3,723: Line 3,727:
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>48      PHA
|<pre>48   ... PHA      &times; 2
08      PHP
A2 05    LDX #5
CA      DEX
D0 FB    BNE *-3
28       PLP</pre>||Clobbers X, and S; and writes in stack
|-
|<pre>48  ... PHA     &times; 2
08      PHP
08      PHP
A0 04   LDY #4
A0 05   LDY #5
EA      NOP
88      DEY
88      DEY
D0 FA   BNE *-4
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
|<pre>08      PHP
08      PHP
A0 FA   LDY #250 ;hides 'NOP'
A2 04   LDX #4
EA      NOP
EA      NOP
CA      DEX
C8  ... INY      &times; 2
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers Y; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 3,745: Line 3,754:
D0 FA    BNE *-4
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
|-
!colspan="2"|10 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 FA   LDY #250 ;hides 'NOP'
A6 00   LDX $00
A2 04    LDX #4
EA      NOP
EA      NOP
C8  ... INY      &times; 2
CA      DEX
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
!colspan="2"|10 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 3,762: Line 3,772:
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A6 00    LDX $00
A2 04    LDX #4
EA      NOP
CA      DEX
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 3,779: Line 3,781:
20 xx xx JSR @rts12&times; 3</pre>||Clobbers S; requires @rts12; and writes in stack
20 xx xx JSR @rts12&times; 3</pre>||Clobbers S; requires @rts12; and writes in stack
|-
|-
|<pre>68  ... PLA      &times; 9
|<pre>68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 8</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>EA       NOP
|<pre>EA   ... NOP     &times; 2
08      PHP
08      PHP
48      PHA
48      PHA
18   ... CLC     &times; 2
18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
A9 2A    LDA #$2A ;hides 'ROL A'
90 FD    BCC *-1
90 FD    BCC *-1
Line 3,827: Line 3,830:
!colspan="2"|20 bytes
!colspan="2"|20 bytes
|-
|-
|<pre>18   ... CLC     &times; 18
|<pre>18       CLC
90 00    BCC *+2</pre>||Clobbers C
90 00    BCC *+2
EA  ... NOP      &times; 17</pre>||Clobbers C
|-
|-
|<pre>B8   ... CLV     &times; 18
|<pre>B8       CLV
50 00    BVC *+2</pre>||Clobbers V
50 00    BVC *+2
EA  ... NOP      &times; 17</pre>||Clobbers V
|-
|-
|<pre>EA  ... NOP      &times; 18
|<pre>85 xx    STA @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
EA  ... NOP      &times; 18</pre>||Requires @zptemp
|-
|-
|<pre>EA  ... NOP      &times; 18
|<pre>04 00    NOP $00
04 00    NOP $00</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 18</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|21 bytes
!colspan="2"|21 bytes
|-
|-
|<pre>EA  ... NOP      &times; 18
|<pre>4C xx xx JMP *+3
4C xx xx JMP *+3</pre>||Not relocatable code
EA  ... NOP      &times; 18</pre>||Not relocatable code
|-
|-
|}
|}
Line 3,872: Line 3,877:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>EA  ... NOP      &times; 2
A0 07    LDY #7
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 3,877: Line 3,887:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA  ... NOP      &times; 2
A0 07    LDY #7
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 3,918: Line 3,923:
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A2 06    LDX #6
A0 06    LDY #6
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A0 06    LDY #6
A2 06    LDX #6
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 3,936: Line 3,941:
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>18   ... CLC     &times; 3
|<pre>EA   ... NOP     &times; 3
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
18      CLC
10 FC    BPL *-2</pre>||Clobbers A, Z&N, and C
10 FC    BPL *-2</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP      \ &times; 2
|<pre>00 00... BRK 0    &times; 2
28      PLP      /
08      PHP      \ &times; 2
00 00... BRK 0    &times; 2</pre>||Requires dummy interrupt handler; and writes in stack
28      PLP      /</pre>||Requires dummy interrupt handler; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 3,961: Line 3,966:
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>68      PLA      \ &times; 4
|<pre>36 00    ROL $00,X
48      PHA      /
76 00    ROR $00,X
36 00    ROL $00,X
68      PLA      \ &times; 4
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
48      PHA      /</pre>||Clobbers A, and Z&N
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 4,068: Line 4,073:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68  ... PLA      &times; 9
68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 8</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 4,109: Line 4,115:
!colspan="2"|21 bytes
!colspan="2"|21 bytes
|-
|-
|<pre>18   ... CLC     &times; 19
|<pre>18       CLC
90 00    BCC *+2</pre>||Clobbers C
90 00    BCC *+2
EA  ... NOP      &times; 18</pre>||Clobbers C
|-
|-
|<pre>B8   ... CLV     &times; 19
|<pre>B8       CLV
50 00    BVC *+2</pre>||Clobbers V
50 00    BVC *+2
EA  ... NOP      &times; 18</pre>||Clobbers V
|-
|-
|<pre>EA  ... NOP      &times; 19
|<pre>85 xx    STA @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
EA  ... NOP      &times; 19</pre>||Requires @zptemp
|-
|-
|<pre>EA  ... NOP      &times; 19
|<pre>04 00    NOP $00
04 00    NOP $00</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 19</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|22 bytes
!colspan="2"|22 bytes
|-
|-
|<pre>EA  ... NOP      &times; 19
|<pre>4C xx xx JMP *+3
4C xx xx JMP *+3</pre>||Not relocatable code
EA  ... NOP      &times; 19</pre>||Not relocatable code
|-
|-
|}
|}
Line 4,203: Line 4,211:
30 FB    BMI *-3
30 FB    BMI *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA  ... NOP      &times; 3
A0 07    LDY #7
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
Line 4,208: Line 4,221:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA  ... NOP      &times; 3
A0 07    LDY #7
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 4,242: Line 4,250:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
00 00... BRK 0    &times; 2
08      PHP      \ &times; 2
08      PHP      \ &times; 2
28      PLP      /
28      PLP      /</pre>||Requires dummy interrupt handler; and writes in stack
00 00... BRK 0    &times; 2</pre>||Requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 4,255: Line 4,263:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>08      PHP
|<pre>EA  ... NOP      &times; 2
08      PHP
48      PHA
48      PHA
18  ... CLC      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
10 FD    BPL *-1
Line 4,298: Line 4,306:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A0 06    LDY #6
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 06    LDX #6
|<pre>A2 06    LDX #6
Line 4,304: Line 4,317:
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 06    LDY #6
|<pre>EA   ... NOP     &times; 2
EA       NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
D0 FD   BNE *-1</pre>||Clobbers A, Z&N, and C
90 FC   BCC *-2</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 4,354: Line 4,361:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>20 xx xx JSR @rts14&times; 2
|<pre>20 xx xx JSR @rts15
20 xx xx JSR @rts15</pre>||Requires @rts14, and @rts15; and writes in stack
20 xx xx JSR @rts14&times; 2</pre>||Requires @rts14, and @rts15; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 4,377: Line 4,384:
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>68  ... PLA      &times; 10
|<pre>68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 9</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|13 bytes
!colspan="2"|13 bytes
Line 4,420: Line 4,428:
!colspan="2"|22 bytes
!colspan="2"|22 bytes
|-
|-
|<pre>18   ... CLC     &times; 20
|<pre>18       CLC
90 00    BCC *+2</pre>||Clobbers C
90 00    BCC *+2
EA  ... NOP      &times; 19</pre>||Clobbers C
|-
|-
|<pre>B8   ... CLV     &times; 20
|<pre>B8       CLV
50 00    BVC *+2</pre>||Clobbers V
50 00    BVC *+2
EA  ... NOP      &times; 19</pre>||Clobbers V
|-
|-
|<pre>EA  ... NOP      &times; 20
|<pre>85 xx    STA @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
EA  ... NOP      &times; 20</pre>||Requires @zptemp
|-
|-
|<pre>EA  ... NOP      &times; 20
|<pre>04 00    NOP $00
04 00    NOP $00</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 20</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|23 bytes
!colspan="2"|23 bytes
|-
|-
|<pre>EA  ... NOP      &times; 20
|<pre>4C xx xx JMP *+3
4C xx xx JMP *+3</pre>||Not relocatable code
EA  ... NOP      &times; 20</pre>||Not relocatable code
|-
|-
|}
|}
Line 4,532: Line 4,542:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 04    LDX #4
A0 04    LDY #4
EA  ... NOP      &times; 2
EA  ... NOP      &times; 2
CA       DEX
88       DEY
D0 F9    BNE *-5
D0 F9    BNE *-5
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 04    LDY #4
A2 04    LDX #4
EA  ... NOP      &times; 2
EA  ... NOP      &times; 2
88       DEY
CA       DEX
D0 F9    BNE *-5
D0 F9    BNE *-5
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>C5 00    CMP $00
|<pre>C5 00    CMP $00
Line 4,599: Line 4,609:
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
00 00... BRK 0    &times; 2
08      PHP      \ &times; 2
08      PHP      \ &times; 2
28      PLP      /
28      PLP      /</pre>||Requires dummy interrupt handler; and writes in stack
00 00... BRK 0    &times; 2</pre>||Requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 4,613: Line 4,623:
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>08      PHP
|<pre>EA  ... NOP      &times; 3
08      PHP
48      PHA
48      PHA
18  ... CLC      &times; 3
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
10 FD    BPL *-1
10 FD    BPL *-1
Line 4,669: Line 4,679:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>EA       NOP
|<pre>EA   ... NOP     &times; 2
A2 06   LDX #6
A2 08   LDX #8
EA      NOP
CA      DEX
CA      DEX
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA       NOP
|<pre>EA   ... NOP     &times; 2
A0 06   LDY #6
A0 08   LDY #8
EA      NOP
88      DEY
88      DEY
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>18   ... CLC     &times; 2
|<pre>EA   ... NOP     &times; 3
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
D0 FD   BNE *-1</pre>||Clobbers A, Z&N, and C
90 FC   BCC *-2</pre>||Clobbers A, Z&N, and C
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 4,742: Line 4,749:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68  ... PLA      &times; 10
68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 9</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
|-
|-
|<pre>68      PLA      \ &times; 3
|<pre>36 00    ROL $00,X \ &times; 2
48      PHA      /
76 00    ROR $00,X /
36 00    ROL $00,X \ &times; 2
68      PLA      \ &times; 3
76 00    ROR $00,X /</pre>||Clobbers A, and Z&N
48      PHA      /</pre>||Clobbers A, and Z&N
|-
|-
!colspan="2"|16 bytes
!colspan="2"|16 bytes
Line 4,785: Line 4,793:
!colspan="2"|23 bytes
!colspan="2"|23 bytes
|-
|-
|<pre>18   ... CLC     &times; 21
|<pre>18       CLC
90 00    BCC *+2</pre>||Clobbers C
90 00    BCC *+2
EA  ... NOP      &times; 20</pre>||Clobbers C
|-
|-
|<pre>B8   ... CLV     &times; 21
|<pre>B8       CLV
50 00    BVC *+2</pre>||Clobbers V
50 00    BVC *+2
EA  ... NOP      &times; 20</pre>||Clobbers V
|-
|-
|<pre>EA  ... NOP      &times; 21
|<pre>85 xx    STA @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
EA  ... NOP      &times; 21</pre>||Requires @zptemp
|-
|-
|<pre>EA  ... NOP      &times; 21
|<pre>04 00    NOP $00
04 00    NOP $00</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 21</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|24 bytes
!colspan="2"|24 bytes
|-
|-
|<pre>EA  ... NOP      &times; 21
|<pre>4C xx xx JMP *+3
4C xx xx JMP *+3</pre>||Not relocatable code
EA  ... NOP      &times; 21</pre>||Not relocatable code
|-
|-
|}
|}
Line 4,845: Line 4,855:
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A2 07    LDX #7
A0 07    LDY #7
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A0 07    LDY #7
A2 07    LDX #7
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 4,969: Line 4,979:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|<pre>EA      NOP
68      PLA
A2 08    LDX #8
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 4,975: Line 4,991:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|<pre>EA      NOP
68      PLA
A2 08    LDX #8
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 4,994: Line 5,004:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 3
A2 06   LDX #6
A0 08   LDY #8
EA       NOP
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>EA   ... NOP     &times; 3
A2 08    LDX #8
CA      DEX
CA      DEX
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>08      PHP
A0 06   LDY #6
A2 05   LDX #5 ;hides 'ORA zp'
EA      NOP
EA      NOP
88       DEY
CA       DEX
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3
28      PLP</pre>||Clobbers A, and X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 5,012: Line 5,027:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A, and Y; and writes in stack
28      PLP</pre>||Clobbers A, and Y; and writes in stack
|-
|<pre>08      PHP
A2 05    LDX #5 ;hides 'ORA zp'
EA      NOP
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A, and X; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 5,045: Line 5,053:
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
08      PHP
08      PHP
A0 07    LDY #7
A2 07    LDX #7
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
08      PHP
08      PHP
A2 07    LDX #7
A0 07    LDY #7
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 5,099: Line 5,107:
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>68  ... PLA      &times; 11
|<pre>68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 10</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
|-
|-
|<pre>68      PLA      \ &times; 5
|<pre>36 00    ROL $00,X
48      PHA      /
76 00    ROR $00,X
36 00    ROL $00,X
68      PLA      \ &times; 5
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
48      PHA      /</pre>||Clobbers A, and Z&N
|-
|-
!colspan="2"|17 bytes
!colspan="2"|17 bytes
Line 5,146: Line 5,155:
!colspan="2"|24 bytes
!colspan="2"|24 bytes
|-
|-
|<pre>18   ... CLC     &times; 22
|<pre>18       CLC
90 00    BCC *+2</pre>||Clobbers C
90 00    BCC *+2
EA  ... NOP      &times; 21</pre>||Clobbers C
|-
|-
|<pre>B8   ... CLV     &times; 22
|<pre>B8       CLV
50 00    BVC *+2</pre>||Clobbers V
50 00    BVC *+2
EA  ... NOP      &times; 21</pre>||Clobbers V
|-
|-
|<pre>EA  ... NOP      &times; 22
|<pre>85 xx    STA @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
EA  ... NOP      &times; 22</pre>||Requires @zptemp
|-
|-
|<pre>EA  ... NOP      &times; 22
|<pre>04 00    NOP $00
04 00    NOP $00</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 22</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|25 bytes
!colspan="2"|25 bytes
|-
|-
|<pre>EA  ... NOP      &times; 22
|<pre>4C xx xx JMP *+3
4C xx xx JMP *+3</pre>||Not relocatable code
EA  ... NOP      &times; 22</pre>||Not relocatable code
|-
|-
|}
|}
Line 5,176: Line 5,187:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
A2 09    LDX #9
A0 09    LDY #9
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
A2 09    LDX #9
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A0 09    LDY #9
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 5,350: Line 5,361:
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
08      PHP
08      PHP
A2 07    LDX #7
A0 07    LDY #7
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
08      PHP
08      PHP
A0 07    LDY #7
A2 07    LDX #7
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 5,388: Line 5,399:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68  ... PLA      &times; 11
68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 10</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|14 bytes
!colspan="2"|14 bytes
Line 5,432: Line 5,444:
!colspan="2"|25 bytes
!colspan="2"|25 bytes
|-
|-
|<pre>18   ... CLC     &times; 23
|<pre>18       CLC
90 00    BCC *+2</pre>||Clobbers C
90 00    BCC *+2
EA  ... NOP      &times; 22</pre>||Clobbers C
|-
|-
|<pre>B8   ... CLV     &times; 23
|<pre>B8       CLV
50 00    BVC *+2</pre>||Clobbers V
50 00    BVC *+2
EA  ... NOP      &times; 22</pre>||Clobbers V
|-
|-
|<pre>EA  ... NOP      &times; 23
|<pre>85 xx    STA @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
EA  ... NOP      &times; 23</pre>||Requires @zptemp
|-
|-
|<pre>EA  ... NOP      &times; 23
|<pre>04 00    NOP $00
04 00    NOP $00</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 23</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|26 bytes
!colspan="2"|26 bytes
|-
|-
|<pre>EA  ... NOP      &times; 23
|<pre>4C xx xx JMP *+3
4C xx xx JMP *+3</pre>||Not relocatable code
EA  ... NOP      &times; 23</pre>||Not relocatable code
|-
|-
|}
|}
Line 5,460: Line 5,474:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A0 07    LDY #7
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 07    LDX #7
|<pre>A2 07    LDX #7
Line 5,465: Line 5,484:
CA      DEX
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|<pre>A0 07    LDY #7
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$2A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$2A'
Line 5,505: Line 5,519:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>08      PHP
|<pre>EA  ... NOP      &times; 2
18      CLC
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
D0 FD   BNE *-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 06    LDY #6
A2 06    LDX #6
EA      NOP
EA      NOP
88       DEY
CA       DEX
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 06    LDX #6
A0 06    LDY #6
EA      NOP
EA      NOP
CA       DEX
88       DEY
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>EA  ... NOP      &times; 2
18      CLC
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
D0 FD   BNE *-1
90 FC   BCC *-2
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
Line 5,579: Line 5,591:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A2 0A    LDX #10
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 0A    LDY #10
|<pre>A0 0A    LDY #10
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 0A    LDX #10
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
Line 5,698: Line 5,710:
!colspan="2"|13 bytes
!colspan="2"|13 bytes
|-
|-
|<pre>68  ... PLA      &times; 12
|<pre>68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 11</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|15 bytes
!colspan="2"|15 bytes
Line 5,735: Line 5,748:
!colspan="2"|26 bytes
!colspan="2"|26 bytes
|-
|-
|<pre>18   ... CLC     &times; 24
|<pre>18       CLC
90 00    BCC *+2</pre>||Clobbers C
90 00    BCC *+2
EA  ... NOP      &times; 23</pre>||Clobbers C
|-
|-
|<pre>B8   ... CLV     &times; 24
|<pre>B8       CLV
50 00    BVC *+2</pre>||Clobbers V
50 00    BVC *+2
EA  ... NOP      &times; 23</pre>||Clobbers V
|-
|-
|<pre>EA  ... NOP      &times; 24
|<pre>85 xx    STA @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
EA  ... NOP      &times; 24</pre>||Requires @zptemp
|-
|-
|<pre>EA  ... NOP      &times; 24
|<pre>04 00    NOP $00
04 00    NOP $00</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 24</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|27 bytes
!colspan="2"|27 bytes
|-
|-
|<pre>EA  ... NOP      &times; 24
|<pre>4C xx xx JMP *+3
4C xx xx JMP *+3</pre>||Not relocatable code
EA  ... NOP      &times; 24</pre>||Not relocatable code
|-
|-
|}
|}
Line 5,826: Line 5,841:
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
|<pre>68  ... PLA      &times; 2
68  ... PLA      &times; 2
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD   BNE *-1</pre>||Clobbers A, S, Z&N, and C
EA      NOP
18      CLC
10 FB   BPL *-3</pre>||Clobbers A, S, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>EA   ... NOP     &times; 3
18   ... CLC     &times; 2
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
D0 FD   BNE *-1
90 FC   BCC *-2
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA   ... NOP      &times; 2
08      PHP
A0 08    LDY #8
88      DEY
D0 FB    BNE *-3
28       PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA  ... NOP     &times; 2
08      PHP
08      PHP
A2 06   LDX #6
A2 08   LDX #8
EA      NOP
CA      DEX
CA      DEX
D0 FA   BNE *-4
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     &times; 3
08      PHP
48      PHA
A0 06    LDY #6
EA      NOP
88      DEY
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>48      PHA
18   ... CLC     &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
D0 FD   BNE *-1
90 FC   BCC *-2
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; and writes in stack
|-
|-
Line 5,894: Line 5,905:
!colspan="2"|16 bytes
!colspan="2"|16 bytes
|-
|-
|<pre>68      PLA      \ &times; 4
|<pre>36 00    ROL $00,X \ &times; 2
48      PHA      /
76 00    ROR $00,X /
36 00    ROL $00,X \ &times; 2
68      PLA      \ &times; 4
76 00    ROR $00,X /</pre>||Clobbers A, and Z&N
48      PHA      /</pre>||Clobbers A, and Z&N
|-
|-
!colspan="2"|18 bytes
!colspan="2"|18 bytes
Line 5,995: Line 6,006:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68  ... PLA      &times; 12
68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 11</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|16 bytes
!colspan="2"|16 bytes
Line 6,036: Line 6,048:
!colspan="2"|27 bytes
!colspan="2"|27 bytes
|-
|-
|<pre>18   ... CLC     &times; 25
|<pre>18       CLC
90 00    BCC *+2</pre>||Clobbers C
90 00    BCC *+2
EA  ... NOP      &times; 24</pre>||Clobbers C
|-
|-
|<pre>B8   ... CLV     &times; 25
|<pre>B8       CLV
50 00    BVC *+2</pre>||Clobbers V
50 00    BVC *+2
EA  ... NOP      &times; 24</pre>||Clobbers V
|-
|-
|<pre>EA  ... NOP      &times; 25
|<pre>85 xx    STA @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
EA  ... NOP      &times; 25</pre>||Requires @zptemp
|-
|-
|<pre>EA  ... NOP      &times; 25
|<pre>04 00    NOP $00
04 00    NOP $00</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 25</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|28 bytes
!colspan="2"|28 bytes
|-
|-
|<pre>EA  ... NOP      &times; 25
|<pre>4C xx xx JMP *+3
4C xx xx JMP *+3</pre>||Not relocatable code
EA  ... NOP      &times; 25</pre>||Not relocatable code
|-
|-
|}
|}
Line 6,068: Line 6,082:
A0 88    LDY #136 ;hides 'DEY'
A0 88    LDY #136 ;hides 'DEY'
30 FD    BMI *-1</pre>||Clobbers Y, and Z&N; and requires @zptemp
30 FD    BMI *-1</pre>||Clobbers Y, and Z&N; and requires @zptemp
|-
|<pre>48      PHA
A0 0A    LDY #10
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 6,073: Line 6,092:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>48      PHA
A0 0A    LDY #10
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
|<pre>A0 88    LDY #136 ;hides 'DEY'
Line 6,180: Line 6,194:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 3
08      PHP
08      PHP
A0 06   LDY #6
A0 08   LDY #8
EA      NOP
88      DEY
88      DEY
D0 FA   BNE *-4
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 3
08      PHP
08      PHP
A2 06   LDX #6
A2 08   LDX #8
EA      NOP
CA      DEX
CA      DEX
D0 FA   BNE *-4
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 6,223: Line 6,235:
!colspan="2"|16 bytes
!colspan="2"|16 bytes
|-
|-
|<pre>68      PLA      \ &times; 6
|<pre>36 00    ROL $00,X
48      PHA      /
76 00    ROR $00,X
36 00    ROL $00,X
68      PLA      \ &times; 6
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
48      PHA      /</pre>||Clobbers A, and Z&N
|-
|-
!colspan="2"|19 bytes
!colspan="2"|19 bytes
Line 6,274: Line 6,286:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A2 06    LDX #6
EA  ... NOP      &times; 2
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 06    LDY #6
|<pre>A0 06    LDY #6
Line 6,279: Line 6,296:
88      DEY
88      DEY
D0 F9    BNE *-5</pre>||Clobbers Y, and Z&N
D0 F9    BNE *-5</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 06    LDX #6
EA  ... NOP      &times; 2
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 6,323: Line 6,335:
!colspan="2"|14 bytes
!colspan="2"|14 bytes
|-
|-
|<pre>68  ... PLA      &times; 13
|<pre>68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 12</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|16 bytes
!colspan="2"|16 bytes
Line 6,366: Line 6,379:
!colspan="2"|28 bytes
!colspan="2"|28 bytes
|-
|-
|<pre>18   ... CLC     &times; 26
|<pre>18       CLC
90 00    BCC *+2</pre>||Clobbers C
90 00    BCC *+2
EA  ... NOP      &times; 25</pre>||Clobbers C
|-
|-
|<pre>B8   ... CLV     &times; 26
|<pre>B8       CLV
50 00    BVC *+2</pre>||Clobbers V
50 00    BVC *+2
EA  ... NOP      &times; 25</pre>||Clobbers V
|-
|-
|<pre>EA  ... NOP      &times; 26
|<pre>85 xx    STA @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
EA  ... NOP      &times; 26</pre>||Requires @zptemp
|-
|-
|<pre>EA  ... NOP      &times; 26
|<pre>04 00    NOP $00
04 00    NOP $00</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 26</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|29 bytes
!colspan="2"|29 bytes
|-
|-
|<pre>EA  ... NOP      &times; 26
|<pre>4C xx xx JMP *+3
4C xx xx JMP *+3</pre>||Not relocatable code
EA  ... NOP      &times; 26</pre>||Not relocatable code
|-
|-
|}
|}
Line 6,567: Line 6,582:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 07    LDY #7
A2 07    LDX #7
EA      NOP
EA      NOP
88       DEY
CA       DEX
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 07    LDX #7
A0 07    LDY #7
EA      NOP
EA      NOP
CA       DEX
88       DEY
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 6,604: Line 6,619:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>08      PHP
|<pre>EA  ... NOP      &times; 2
08      PHP
48      PHA
48      PHA
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
D0 FD   BNE *-1
90 FC   BCC *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 6,616: Line 6,630:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68  ... PLA      &times; 13
68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 12</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|17 bytes
!colspan="2"|17 bytes
Line 6,660: Line 6,675:
!colspan="2"|29 bytes
!colspan="2"|29 bytes
|-
|-
|<pre>18   ... CLC     &times; 27
|<pre>18       CLC
90 00    BCC *+2</pre>||Clobbers C
90 00    BCC *+2
EA  ... NOP      &times; 26</pre>||Clobbers C
|-
|-
|<pre>B8   ... CLV     &times; 27
|<pre>B8       CLV
50 00    BVC *+2</pre>||Clobbers V
50 00    BVC *+2
EA  ... NOP      &times; 26</pre>||Clobbers V
|-
|-
|<pre>EA  ... NOP      &times; 27
|<pre>85 xx    STA @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
EA  ... NOP      &times; 27</pre>||Requires @zptemp
|-
|-
|<pre>EA  ... NOP      &times; 27
|<pre>04 00    NOP $00
04 00    NOP $00</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 27</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|30 bytes
!colspan="2"|30 bytes
|-
|-
|<pre>EA  ... NOP      &times; 27
|<pre>4C xx xx JMP *+3
4C xx xx JMP *+3</pre>||Not relocatable code
EA  ... NOP      &times; 27</pre>||Not relocatable code
|-
|-
|}
|}
Line 6,688: Line 6,705:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A0 0B    LDY #11
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 6,693: Line 6,715:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A0 0B    LDY #11
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 6,716: Line 6,733:
30 FC    BMI *-2
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
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
Line 6,722: Line 6,745:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A0 0A    LDY #10
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 6,831: Line 6,848:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A6 00    LDX $00
A2 0B    LDX #11
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
Line 6,837: Line 6,859:
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 00    LDX $00
|<pre>EA   ... NOP     &times; 2
A2 0B    LDX #11
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>18   ... CLC     &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
18      CLC
Line 6,939: Line 6,956:
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>08      PHP
|<pre>EA  ... NOP      &times; 3
08      PHP
48      PHA
48      PHA
18  ... CLC      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
D0 FD   BNE *-1
90 FC   BCC *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 6,950: Line 6,966:
!colspan="2"|15 bytes
!colspan="2"|15 bytes
|-
|-
|<pre>68  ... PLA      &times; 14
|<pre>68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 13</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|17 bytes
!colspan="2"|17 bytes
Line 6,997: Line 7,014:
!colspan="2"|30 bytes
!colspan="2"|30 bytes
|-
|-
|<pre>18   ... CLC     &times; 28
|<pre>18       CLC
90 00    BCC *+2</pre>||Clobbers C
90 00    BCC *+2
EA  ... NOP      &times; 27</pre>||Clobbers C
|-
|-
|<pre>B8   ... CLV     &times; 28
|<pre>B8       CLV
50 00    BVC *+2</pre>||Clobbers V
50 00    BVC *+2
EA  ... NOP      &times; 27</pre>||Clobbers V
|-
|-
|<pre>EA  ... NOP      &times; 28
|<pre>85 xx    STA @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
EA  ... NOP      &times; 28</pre>||Requires @zptemp
|-
|-
|<pre>EA  ... NOP      &times; 28
|<pre>04 00    NOP $00
04 00    NOP $00</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 28</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|31 bytes
!colspan="2"|31 bytes
|-
|-
|<pre>EA  ... NOP      &times; 28
|<pre>4C xx xx JMP *+3
4C xx xx JMP *+3</pre>||Not relocatable code
EA  ... NOP      &times; 28</pre>||Not relocatable code
|-
|-
|}
|}
Line 7,037: Line 7,056:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>EA  ... NOP      &times; 2
A0 0B    LDY #11
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 7,042: Line 7,066:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA  ... NOP      &times; 2
A0 0B    LDY #11
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>E6 xx    INC @zptemp
|<pre>E6 xx    INC @zptemp
Line 7,083: Line 7,102:
30 FA    BMI *-4
30 FA    BMI *-4
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A2 0A    LDX #10
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 7,090: Line 7,116:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA      NOP
08      PHP
A2 0A    LDX #10
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 7,211: Line 7,230:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>18   ... CLC     &times; 3
|<pre>EA   ... NOP     &times; 3
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
18      CLC
Line 7,231: Line 7,250:
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A0 0A    LDY #10
A2 0A    LDX #10
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A2 0A    LDX #10
A0 0A    LDY #10
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 7,257: Line 7,276:
10 FA    BPL *-4
10 FA    BPL *-4
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
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
Line 7,264: Line 7,290:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A4 00    LDY $00
A0 0A    LDY #10
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 7,317: Line 7,336:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68  ... PLA      &times; 14
68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 13</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|18 bytes
!colspan="2"|18 bytes
|-
|-
|<pre>68      PLA      \ &times; 7
|<pre>36 00    ROL $00,X
48      PHA      /
76 00    ROR $00,X
36 00    ROL $00,X
68      PLA      \ &times; 7
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
48      PHA      /</pre>||Clobbers A, and Z&N
|-
|-
!colspan="2"|22 bytes
!colspan="2"|22 bytes
Line 7,363: Line 7,383:
!colspan="2"|31 bytes
!colspan="2"|31 bytes
|-
|-
|<pre>18   ... CLC     &times; 29
|<pre>18       CLC
90 00    BCC *+2</pre>||Clobbers C
90 00    BCC *+2
EA  ... NOP      &times; 28</pre>||Clobbers C
|-
|-
|<pre>B8   ... CLV     &times; 29
|<pre>B8       CLV
50 00    BVC *+2</pre>||Clobbers V
50 00    BVC *+2
EA  ... NOP      &times; 28</pre>||Clobbers V
|-
|-
|<pre>EA  ... NOP      &times; 29
|<pre>85 xx    STA @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
EA  ... NOP      &times; 29</pre>||Requires @zptemp
|-
|-
|<pre>EA  ... NOP      &times; 29
|<pre>04 00    NOP $00
04 00    NOP $00</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 29</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|32 bytes
!colspan="2"|32 bytes
|-
|-
|<pre>EA  ... NOP      &times; 29
|<pre>4C xx xx JMP *+3
4C xx xx JMP *+3</pre>||Not relocatable code
EA  ... NOP      &times; 29</pre>||Not relocatable code
|-
|-
|}
|}
Line 7,407: Line 7,429:
D0 FC    BNE *-2
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
A0 F8    LDY #248 ;hides 'SED'
C8      INY
D0 FC    BNE *-2
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 7,413: Line 7,441:
D0 FC    BNE *-2
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 F8    LDY #248 ;hides 'SED'
C8      INY
D0 FC    BNE *-2
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 7,457: Line 7,479:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA  ... NOP      &times; 3
A0 0B    LDY #11
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
Line 7,462: Line 7,489:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA  ... NOP      &times; 3
A0 0B    LDY #11
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 7,548: Line 7,570:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>08      PHP
A2 0B    LDX #11
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 7,554: Line 7,582:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 0B    LDX #11
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
Line 7,685: Line 7,707:
!colspan="2"|16 bytes
!colspan="2"|16 bytes
|-
|-
|<pre>68  ... PLA      &times; 15
|<pre>68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 14</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|18 bytes
!colspan="2"|18 bytes
Line 7,721: Line 7,744:
!colspan="2"|32 bytes
!colspan="2"|32 bytes
|-
|-
|<pre>18   ... CLC     &times; 30
|<pre>18       CLC
90 00    BCC *+2</pre>||Clobbers C
90 00    BCC *+2
EA  ... NOP      &times; 29</pre>||Clobbers C
|-
|-
|<pre>B8   ... CLV     &times; 30
|<pre>B8       CLV
50 00    BVC *+2</pre>||Clobbers V
50 00    BVC *+2
EA  ... NOP      &times; 29</pre>||Clobbers V
|-
|-
|<pre>EA  ... NOP      &times; 30
|<pre>85 xx    STA @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
EA  ... NOP      &times; 30</pre>||Requires @zptemp
|-
|-
|<pre>EA  ... NOP      &times; 30
|<pre>04 00    NOP $00
04 00    NOP $00</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 30</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|33 bytes
!colspan="2"|33 bytes
|-
|-
|<pre>EA  ... NOP      &times; 30
|<pre>4C xx xx JMP *+3
4C xx xx JMP *+3</pre>||Not relocatable code
EA  ... NOP      &times; 30</pre>||Not relocatable code
|-
|-
|}
|}
Line 7,750: Line 7,775:
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|-
|<pre>A0 09    LDY #9
|<pre>A2 09    LDX #9
EA      NOP
EA      NOP
88       DEY
CA       DEX
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A2 09    LDX #9
|<pre>A0 09    LDY #9
EA      NOP
EA      NOP
CA       DEX
88       DEY
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 7,792: Line 7,817:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 08    LDX #8
A0 08    LDY #8
EA      NOP
EA      NOP
CA       DEX
88       DEY
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 08    LDY #8
A2 08    LDX #8
EA      NOP
EA      NOP
88       DEY
CA       DEX
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 7,812: Line 7,837:
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>A9 0A    LDA #$0A ;hides 'ASL A'
68      PLA
EA  ... NOP      &times; 3
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
18      CLC
D0 FC   BNE *-2</pre>||Clobbers A, Z&N, and C
10 F9   BPL *-5</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 7,874: Line 7,897:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A2 08    LDX #8
48      PHA
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 08    LDY #8
|<pre>A0 08    LDY #8
Line 7,880: Line 7,908:
D0 FA    BNE *-4</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>A2 08   LDX #8
|<pre>68      PLA
48      PHA
A2 0C   LDX #12
CA      DEX
CA      DEX
D0 FA   BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FB   BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 7,889: Line 7,917:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|<pre>68      PLA
A2 0C    LDX #12
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 7,901: Line 7,924:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>EA  ... NOP      &times; 2
A0 0C    LDY #12
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 7,906: Line 7,934:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA  ... NOP      &times; 2
A0 0C    LDY #12
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 8,020: Line 8,043:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68  ... PLA      &times; 15
68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 14</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|19 bytes
!colspan="2"|19 bytes
Line 8,061: Line 8,085:
!colspan="2"|33 bytes
!colspan="2"|33 bytes
|-
|-
|<pre>18   ... CLC     &times; 31
|<pre>18       CLC
90 00    BCC *+2</pre>||Clobbers C
90 00    BCC *+2
EA  ... NOP      &times; 30</pre>||Clobbers C
|-
|-
|<pre>B8   ... CLV     &times; 31
|<pre>B8       CLV
50 00    BVC *+2</pre>||Clobbers V
50 00    BVC *+2
EA  ... NOP      &times; 30</pre>||Clobbers V
|-
|-
|<pre>EA  ... NOP      &times; 31
|<pre>85 xx    STA @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
EA  ... NOP      &times; 31</pre>||Requires @zptemp
|-
|-
|<pre>EA  ... NOP      &times; 31
|<pre>04 00    NOP $00
04 00    NOP $00</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 31</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|34 bytes
!colspan="2"|34 bytes
|-
|-
|<pre>EA  ... NOP      &times; 31
|<pre>4C xx xx JMP *+3
4C xx xx JMP *+3</pre>||Not relocatable code
EA  ... NOP      &times; 31</pre>||Not relocatable code
|-
|-
|}
|}
Line 8,272: Line 8,298:
CA      DEX
CA      DEX
30 FC    BMI *-2</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>A0 06    LDY #6
48  ... PHA      &times; 2
88      DEY
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
Line 8,277: Line 8,308:
CA      DEX
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 F9    BNE *-5</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>A0 06    LDY #6
48  ... PHA      &times; 2
88      DEY
D0 F9    BNE *-5</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 06    LDY #6
|<pre>A0 06    LDY #6
Line 8,316: Line 8,342:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>A6 00    LDX $00
A2 09    LDX #9
EA      NOP
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
Line 8,322: Line 8,354:
88      DEY
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|<pre>A6 00    LDX $00
A2 09    LDX #9
EA      NOP
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 8,336: Line 8,362:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>8C       TXA
|<pre>98       TYA
48      PHA
48      PHA
A2 0B    LDX #11
A0 0B    LDY #11
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA
68      PLA
AA       TAX</pre>||Clobbers A, and Z&N; and writes in stack
A8       TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 8,423: Line 8,449:
!colspan="2"|17 bytes
!colspan="2"|17 bytes
|-
|-
|<pre>68  ... PLA      &times; 16
|<pre>68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 15</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|19 bytes
!colspan="2"|19 bytes
Line 8,466: Line 8,493:
!colspan="2"|34 bytes
!colspan="2"|34 bytes
|-
|-
|<pre>18   ... CLC     &times; 32
|<pre>18       CLC
90 00    BCC *+2</pre>||Clobbers C
90 00    BCC *+2
EA  ... NOP      &times; 31</pre>||Clobbers C
|-
|-
|<pre>B8   ... CLV     &times; 32
|<pre>B8       CLV
50 00    BVC *+2</pre>||Clobbers V
50 00    BVC *+2
EA  ... NOP      &times; 31</pre>||Clobbers V
|-
|-
|<pre>EA  ... NOP      &times; 32
|<pre>85 xx    STA @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
EA  ... NOP      &times; 32</pre>||Requires @zptemp
|-
|-
|<pre>EA  ... NOP      &times; 32
|<pre>04 00    NOP $00
04 00    NOP $00</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 32</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|35 bytes
!colspan="2"|35 bytes
|-
|-
|<pre>EA  ... NOP      &times; 32
|<pre>4C xx xx JMP *+3
4C xx xx JMP *+3</pre>||Not relocatable code
EA  ... NOP      &times; 32</pre>||Not relocatable code
|-
|-
|}
|}
Line 8,625: Line 8,654:
!colspan="2"|20 bytes
!colspan="2"|20 bytes
|-
|-
|<pre>68      PLA      \ &times; 8
|<pre>36 00    ROL $00,X
48      PHA      /
76 00    ROR $00,X
36 00    ROL $00,X
68      PLA      \ &times; 8
76 00    ROR $00,X</pre>||Clobbers A, and Z&N
48      PHA      /</pre>||Clobbers A, and Z&N
|-
|-
!colspan="2"|24 bytes
!colspan="2"|24 bytes
Line 8,734: Line 8,763:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68  ... PLA      &times; 16
68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 15</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|20 bytes
!colspan="2"|20 bytes
Line 8,778: Line 8,808:
!colspan="2"|35 bytes
!colspan="2"|35 bytes
|-
|-
|<pre>18   ... CLC     &times; 33
|<pre>18       CLC
90 00    BCC *+2</pre>||Clobbers C
90 00    BCC *+2
EA  ... NOP      &times; 32</pre>||Clobbers C
|-
|-
|<pre>B8   ... CLV     &times; 33
|<pre>B8       CLV
50 00    BVC *+2</pre>||Clobbers V
50 00    BVC *+2
EA  ... NOP      &times; 32</pre>||Clobbers V
|-
|-
|<pre>EA  ... NOP      &times; 33
|<pre>85 xx    STA @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
EA  ... NOP      &times; 33</pre>||Requires @zptemp
|-
|-
|<pre>EA  ... NOP      &times; 33
|<pre>04 00    NOP $00
04 00    NOP $00</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 33</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|36 bytes
!colspan="2"|36 bytes
|-
|-
|<pre>EA  ... NOP      &times; 33
|<pre>4C xx xx JMP *+3
4C xx xx JMP *+3</pre>||Not relocatable code
EA  ... NOP      &times; 33</pre>||Not relocatable code
|-
|-
|}
|}
Line 8,806: Line 8,838:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>68      PLA
A0 0D    LDY #13
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 8,812: Line 8,849:
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
!colspan="2"|7 bytes
A0 0D    LDY #13
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
|<pre>EA  ... NOP      &times; 2
A2 0D    LDX #13
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 8,823: Line 8,860:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>EA  ... NOP      &times; 2
A2 0D    LDX #13
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 9,067: Line 9,099:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 09    LDY #9
A2 09    LDX #9
EA      NOP
EA      NOP
88       DEY
CA       DEX
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 09    LDX #9
A0 09    LDY #9
EA      NOP
EA      NOP
CA       DEX
88       DEY
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 9,116: Line 9,148:
!colspan="2"|18 bytes
!colspan="2"|18 bytes
|-
|-
|<pre>68  ... PLA      &times; 17
|<pre>68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 16</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|20 bytes
!colspan="2"|20 bytes
Line 9,163: Line 9,196:
!colspan="2"|36 bytes
!colspan="2"|36 bytes
|-
|-
|<pre>18   ... CLC     &times; 34
|<pre>18       CLC
90 00    BCC *+2</pre>||Clobbers C
90 00    BCC *+2
EA  ... NOP      &times; 33</pre>||Clobbers C
|-
|-
|<pre>B8   ... CLV     &times; 34
|<pre>B8       CLV
50 00    BVC *+2</pre>||Clobbers V
50 00    BVC *+2
EA  ... NOP      &times; 33</pre>||Clobbers V
|-
|-
|<pre>EA  ... NOP      &times; 34
|<pre>85 xx    STA @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
EA  ... NOP      &times; 34</pre>||Requires @zptemp
|-
|-
|<pre>EA  ... NOP      &times; 34
|<pre>04 00    NOP $00
04 00    NOP $00</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 34</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|37 bytes
!colspan="2"|37 bytes
|-
|-
|<pre>EA  ... NOP      &times; 34
|<pre>4C xx xx JMP *+3
4C xx xx JMP *+3</pre>||Not relocatable code
EA  ... NOP      &times; 34</pre>||Not relocatable code
|-
|-
|}
|}
Line 9,255: Line 9,290:
28      PLP</pre>||Clobbers X, Y, and S; and writes in stack
28      PLP</pre>||Clobbers X, Y, and S; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>48   ... PHA     &times; 3
48       PHA
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
48      PHA
Line 9,452: Line 9,485:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A2 0E    LDX #14
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 9,457: Line 9,495:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
A2 0E    LDX #14
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 9,547: Line 9,580:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68  ... PLA      &times; 17
68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 16</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|21 bytes
!colspan="2"|21 bytes
Line 9,594: Line 9,628:
!colspan="2"|37 bytes
!colspan="2"|37 bytes
|-
|-
|<pre>18   ... CLC     &times; 35
|<pre>18       CLC
90 00    BCC *+2</pre>||Clobbers C
90 00    BCC *+2
EA  ... NOP      &times; 34</pre>||Clobbers C
|-
|-
|<pre>B8   ... CLV     &times; 35
|<pre>B8       CLV
50 00    BVC *+2</pre>||Clobbers V
50 00    BVC *+2
EA  ... NOP      &times; 34</pre>||Clobbers V
|-
|-
|<pre>EA  ... NOP      &times; 35
|<pre>85 xx    STA @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
EA  ... NOP      &times; 35</pre>||Requires @zptemp
|-
|-
|<pre>EA  ... NOP      &times; 35
|<pre>04 00    NOP $00
04 00    NOP $00</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 35</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|38 bytes
!colspan="2"|38 bytes
|-
|-
|<pre>EA  ... NOP      &times; 35
|<pre>4C xx xx JMP *+3
4C xx xx JMP *+3</pre>||Not relocatable code
EA  ... NOP      &times; 35</pre>||Not relocatable code
|-
|-
|}
|}
Line 9,622: Line 9,658:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>48      PHA
A0 0E    LDY #14
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 9,627: Line 9,668:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>48      PHA
A0 0E    LDY #14
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 9,688: Line 9,724:
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A2 09    LDX #9
A0 09    LDY #9
EA      NOP
EA      NOP
CA       DEX
88       DEY
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A0 09    LDY #9
A2 09    LDX #9
EA      NOP
EA      NOP
88       DEY
CA       DEX
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 9,734: Line 9,770:
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A2 08    LDX #8
A0 08    LDY #8
C5 00    CMP $00
C5 00    CMP $00
CA       DEX
88       DEY
D0 F9    BNE *-5
D0 F9    BNE *-5
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A0 08    LDY #8
A2 08    LDX #8
C5 00    CMP $00
C5 00    CMP $00
88       DEY
CA       DEX
D0 F9    BNE *-5
D0 F9    BNE *-5
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 9,758: Line 9,794:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
8C       TXA
98       TYA
48      PHA
48      PHA
A2 0B    LDX #11
A0 0B    LDY #11
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA
68      PLA
AA       TAX
A8       TAY
68      PLA</pre>||Clobbers Z&N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
Line 9,844: Line 9,880:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>68      PLA
A2 0E    LDX #14
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 9,850: Line 9,891:
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
!colspan="2"|7 bytes
A2 0E    LDX #14
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
|<pre>EA  ... NOP      &times; 2
A0 0E    LDY #14
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 9,861: Line 9,902:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA  ... NOP      &times; 2
A0 0E    LDY #14
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 9,905: Line 9,941:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>18   ... CLC     &times; 2
|<pre>EA   ... NOP     &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 9,971: Line 10,007:
!colspan="2"|19 bytes
!colspan="2"|19 bytes
|-
|-
|<pre>68  ... PLA      &times; 18
|<pre>68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 17</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|21 bytes
!colspan="2"|21 bytes
Line 10,009: Line 10,046:
!colspan="2"|38 bytes
!colspan="2"|38 bytes
|-
|-
|<pre>18   ... CLC     &times; 36
|<pre>18       CLC
90 00    BCC *+2</pre>||Clobbers C
90 00    BCC *+2
EA  ... NOP      &times; 35</pre>||Clobbers C
|-
|-
|<pre>B8   ... CLV     &times; 36
|<pre>B8       CLV
50 00    BVC *+2</pre>||Clobbers V
50 00    BVC *+2
EA  ... NOP      &times; 35</pre>||Clobbers V
|-
|-
|<pre>EA  ... NOP      &times; 36
|<pre>85 xx    STA @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
EA  ... NOP      &times; 36</pre>||Requires @zptemp
|-
|-
|<pre>EA  ... NOP      &times; 36
|<pre>04 00    NOP $00
04 00    NOP $00</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 36</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|39 bytes
!colspan="2"|39 bytes
|-
|-
|<pre>EA  ... NOP      &times; 36
|<pre>4C xx xx JMP *+3
4C xx xx JMP *+3</pre>||Not relocatable code
EA  ... NOP      &times; 36</pre>||Not relocatable code
|-
|-
|}
|}
Line 10,236: Line 10,275:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA  ... NOP      &times; 3
A0 0E    LDY #14
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
Line 10,241: Line 10,285:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA  ... NOP      &times; 3
A0 0E    LDY #14
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 10,277: Line 10,316:
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
08      PHP
08      PHP
A2 0D    LDX #13
A0 0D    LDY #13
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
08      PHP
08      PHP
A0 0D    LDY #13
A2 0D    LDX #13
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>18   ... CLC     &times; 3
|<pre>EA   ... NOP     &times; 3
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 10,365: Line 10,404:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68  ... PLA      &times; 18
68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 17</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|22 bytes
!colspan="2"|22 bytes
Line 10,405: Line 10,445:
!colspan="2"|39 bytes
!colspan="2"|39 bytes
|-
|-
|<pre>18   ... CLC     &times; 37
|<pre>18       CLC
90 00    BCC *+2</pre>||Clobbers C
90 00    BCC *+2
EA  ... NOP      &times; 36</pre>||Clobbers C
|-
|-
|<pre>B8   ... CLV     &times; 37
|<pre>B8       CLV
50 00    BVC *+2</pre>||Clobbers V
50 00    BVC *+2
EA  ... NOP      &times; 36</pre>||Clobbers V
|-
|-
|<pre>EA  ... NOP      &times; 37
|<pre>85 xx    STA @zptemp
85 xx    STA @zptemp</pre>||Requires @zptemp
EA  ... NOP      &times; 37</pre>||Requires @zptemp
|-
|-
|<pre>EA  ... NOP      &times; 37
|<pre>04 00    NOP $00
04 00    NOP $00</pre>||Requires support for unofficial opcodes
EA  ... NOP      &times; 37</pre>||Requires support for unofficial opcodes
|-
|-
!colspan="2"|40 bytes
!colspan="2"|40 bytes
|-
|-
|<pre>EA  ... NOP      &times; 37
|<pre>4C xx xx JMP *+3
4C xx xx JMP *+3</pre>||Not relocatable code
EA  ... NOP      &times; 37</pre>||Not relocatable code
|-
|-
|}
|}
Line 10,433: Line 10,475:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A2 0B    LDX #11
EA      NOP
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 0B    LDY #11
|<pre>A0 0B    LDY #11
Line 10,438: Line 10,485:
88      DEY
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 0B    LDX #11
EA      NOP
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 10,592: Line 10,634:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A4 00    LDY $00
A0 0F    LDY #15
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
Line 10,597: Line 10,644:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A4 00    LDY $00
A0 0F    LDY #15
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
Line 10,801: Line 10,843:
!colspan="2"|20 bytes
!colspan="2"|20 bytes
|-
|-
|<pre>68  ... PLA      &times; 19
|<pre>68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 18</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|22 bytes
!colspan="2"|22 bytes
Line 10,844: Line 10,887:
!colspan="2"|40 bytes
!colspan="2"|40 bytes
|-
|-
|<pre>18  ... CLC     &times; 38
|<pre>18       CLC
90 00    BCC *+2</pre>||Clobbers C
90 00    BCC *+2
EA   ... NOP     &times; 37</pre>||Clobbers C
|-
|<pre>B8      CLV
50 00    BVC *+2
EA  ... NOP      &times; 37</pre>||Clobbers V
|-
|-
|<pre>B8   ... CLV     &times; 38
|<pre>85 xx    STA @zptemp
50 00    BVC *+2</pre>||Clobbers V
EA   ... NOP     &times; 38</pre>||Requires @zptemp
|-
|-
|<pre>EA  ... NOP      &times; 38
|<pre>04 00    NOP $00
85 xx    STA @zptemp</pre>||Requires @zptemp
EA  ... NOP      &times; 38</pre>||Requires support for unofficial opcodes
|-
|-
|<pre>EA  ... NOP      &times; 38
!colspan="2"|41 bytes
04 00    NOP $00</pre>||Requires support for unofficial opcodes
|-
|<pre>4C xx xx JMP *+3
EA  ... NOP      &times; 38</pre>||Not relocatable code
|-
|-
|}
|}
Line 10,872: Line 10,922:
CA      DEX
CA      DEX
30 FB    BMI *-3</pre>||Clobbers X, Y, and Z&N
30 FB    BMI *-3</pre>||Clobbers X, Y, and Z&N
|-
|<pre>68      PLA
A0 0F    LDY #15
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 10,877: Line 10,932:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|<pre>68      PLA
A0 0F    LDY #15
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 10,890: Line 10,940:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA   ... NOP      &times; 2
A2 0B   LDX #11
A0 0F    LDY #15
EA      NOP
88       DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>EA  ... NOP     &times; 2
A2 0F   LDX #15
CA      DEX
CA      DEX
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A0 0B    LDY #11
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 10,922: Line 10,970:
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A0 0E    LDY #14
A2 0E    LDX #14
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A2 0E    LDX #14
A0 0E    LDY #14
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 11,146: Line 11,194:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>08      PHP
A4 00    LDY $00
A0 0E    LDY #14
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 11,153: Line 11,208:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A4 00    LDY $00
A0 0E    LDY #14
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 11,243: Line 11,291:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68  ... PLA      &times; 19
68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 18</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|23 bytes
!colspan="2"|23 bytes
Line 11,285: Line 11,334:
76 00    ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code
76 00    ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|}
!colspan="2"|41 bytes
 
 
=== 82 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|-
|<pre>A9       LDA #55
|<pre>18       CLC
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
90 00    BCC *+2
EA  ... NOP      &times; 38</pre>||Clobbers C
|-
|-
!colspan="2"|6 bytes
|<pre>B8      CLV
50 00    BVC *+2
EA  ... NOP      &times; 38</pre>||Clobbers V
|-
|<pre>85 xx    STA @zptemp
EA  ... NOP      &times; 39</pre>||Requires @zptemp
|-
|<pre>04 00    NOP $00
EA  ... NOP      &times; 39</pre>||Requires support for unofficial opcodes
|-
!colspan="2"|42 bytes
|-
|<pre>4C xx xx JMP *+3
EA  ... NOP      &times; 39</pre>||Not relocatable code
|-
|}
 
 
=== 82 cycles ===
{| class="wikitable testtable"
!colspan="2"|5 bytes
|-
|<pre>A9      LDA #55
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
|-
!colspan="2"|6 bytes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 11,301: Line 11,371:
48      PHA
48      PHA
30 FC    BMI *-2</pre>||Clobbers Y, S, and Z&N; and writes in stack
30 FC    BMI *-2</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|<pre>A0 09    LDY #9
68      PLA
88      DEY
D0 FA    BNE *-4</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>A2 09    LDX #9
|<pre>A2 09    LDX #9
Line 11,306: Line 11,381:
CA      DEX
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers A, X, S, and Z&N
D0 FA    BNE *-4</pre>||Clobbers A, X, S, and Z&N
|-
|<pre>A0 09    LDY #9
68      PLA
88      DEY
D0 FA    BNE *-4</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 11,379: Line 11,449:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>EA   ... NOP     &times; 2
38      SEC
38      SEC
A9 0B   LDA #11
A9 0F   LDA #15
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 F8   BNE *-6</pre>||Clobbers A, Z&N, C, and V
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 11,427: Line 11,496:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>08      PHP
|<pre>EA   ... NOP     &times; 2
18   ... CLC     &times; 2
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 11,435: Line 11,504:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>EA   ... NOP     &times; 2
18   ... CLC     &times; 2
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 11,478: Line 11,547:
36 00    ROL $00,X \ &times; 6
36 00    ROL $00,X \ &times; 6
76 00    ROR $00,X /</pre>||Clobbers Z&N
76 00    ROR $00,X /</pre>||Clobbers Z&N
|-
!colspan="2"|41 bytes
|-
|<pre>EA  ... NOP      &times; 41</pre>||No requirements
|-
|-
|}
|}
Line 11,568: Line 11,641:
90 FA    BCC *-4</pre>||Clobbers A, Z&N, and C; requires @rts15; and writes in stack
90 FA    BCC *-4</pre>||Clobbers A, Z&N, and C; requires @rts15; and writes in stack
|-
|-
|<pre>18   ... CLC     &times; 2
|<pre>EA   ... NOP     &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
85 xx    STA @zptemp
Line 11,586: Line 11,659:
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C
D0 FB    BNE *-3</pre>||Clobbers A, S, Z&N, and C
|-
|-
|<pre>18   ... CLC     &times; 2
|<pre>EA   ... NOP     &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
04 00    NOP $00
Line 11,693: Line 11,766:
!colspan="2"|21 bytes
!colspan="2"|21 bytes
|-
|-
|<pre>68  ... PLA      &times; 20
|<pre>68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 19</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|23 bytes
!colspan="2"|23 bytes
Line 11,737: Line 11,811:
36 00    ROL $00,X \ &times; 5
36 00    ROL $00,X \ &times; 5
76 00    ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code
76 00    ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code
|-
!colspan="2"|42 bytes
|-
|<pre>18      CLC
90 00    BCC *+2
EA  ... NOP      &times; 39</pre>||Clobbers C
|-
|<pre>B8      CLV
50 00    BVC *+2
EA  ... NOP      &times; 39</pre>||Clobbers V
|-
|<pre>85 xx    STA @zptemp
EA  ... NOP      &times; 40</pre>||Requires @zptemp
|-
|<pre>04 00    NOP $00
EA  ... NOP      &times; 40</pre>||Requires support for unofficial opcodes
|-
!colspan="2"|43 bytes
|-
|<pre>4C xx xx JMP *+3
EA  ... NOP      &times; 40</pre>||Not relocatable code
|-
|-
|}
|}
Line 11,749: Line 11,844:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>48      PHA
A0 10    LDY #16
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 11,754: Line 11,854:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>48      PHA
A0 10    LDY #16
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 11,805: Line 11,900:
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
48   ... PHA     &times; 4
A9 0A    LDA #$0A ;hides 'ASL A'
10 F9   BPL *-5</pre>||Clobbers A, S, Z&N, and C; and writes in stack
48       PHA
18      CLC
D0 FB   BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 11,882: Line 11,974:
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
08      PHP
08      PHP
A2 0E    LDX #14
A0 0E    LDY #14
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
08      PHP
08      PHP
A0 0E    LDY #14
A2 0E    LDX #14
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
Line 11,991: Line 12,083:
|<pre>36 00    ROL $00,X \ &times; 7
|<pre>36 00    ROL $00,X \ &times; 7
76 00    ROR $00,X /</pre>||Clobbers Z&N
76 00    ROR $00,X /</pre>||Clobbers Z&N
|-
!colspan="2"|42 bytes
|-
|<pre>EA  ... NOP      &times; 42</pre>||No requirements
|-
|-
|}
|}
Line 12,122: Line 12,218:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68  ... PLA      &times; 20
68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 19</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|24 bytes
!colspan="2"|24 bytes
Line 12,166: Line 12,263:
36 00    ROL $00,X \ &times; 6
36 00    ROL $00,X \ &times; 6
76 00    ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code
76 00    ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code
|-
!colspan="2"|43 bytes
|-
|<pre>18      CLC
90 00    BCC *+2
EA  ... NOP      &times; 40</pre>||Clobbers C
|-
|<pre>B8      CLV
50 00    BVC *+2
EA  ... NOP      &times; 40</pre>||Clobbers V
|-
|<pre>85 xx    STA @zptemp
EA  ... NOP      &times; 41</pre>||Requires @zptemp
|-
|<pre>04 00    NOP $00
EA  ... NOP      &times; 41</pre>||Requires support for unofficial opcodes
|-
|-
|}
|}
Line 12,173: Line 12,286:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A2 11    LDX #17
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 11    LDY #17
|<pre>A0 11    LDY #17
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 11    LDX #17
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #59
|<pre>A9      LDA #59
Line 12,389: Line 12,502:
36 00    ROL $00,X \ &times; 7
36 00    ROL $00,X \ &times; 7
76 00    ROR $00,X /</pre>||Clobbers Z&N
76 00    ROR $00,X /</pre>||Clobbers Z&N
|-
!colspan="2"|43 bytes
|-
|<pre>EA  ... NOP      &times; 43</pre>||No requirements
|-
|-
|}
|}
Line 12,464: Line 12,581:
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA   ... NOP      &times; 2
08      PHP
A2 0F    LDX #15
CA      DEX
D0 FB    BNE *-3
28       PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA  ... NOP     &times; 2
08      PHP
08      PHP
A0 0B   LDY #11
A0 0F   LDY #15
EA      NOP
88      DEY
88      DEY
D0 FA   BNE *-4
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 0B    LDX #11
EA      NOP
CA      DEX
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 12,544: Line 12,659:
!colspan="2"|22 bytes
!colspan="2"|22 bytes
|-
|-
|<pre>68  ... PLA      &times; 21
|<pre>68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 20</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|24 bytes
!colspan="2"|24 bytes
Line 12,608: Line 12,724:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>08      PHP
A2 10    LDX #16
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 12,614: Line 12,736:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 10    LDX #16
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 12,645: Line 12,761:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>18   ... CLC     &times; 2
|<pre>EA   ... NOP     &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Line 12,664: Line 12,780:
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>48   ... PHA     &times; 3
48       PHA
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
48      PHA
48      PHA
Line 12,977: Line 13,091:
68      PLA</pre>||Clobbers Z&N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>EA   ... NOP     &times; 2
08      PHP
08      PHP
38      SEC
38      SEC
A9 0B   LDA #11
A9 0F   LDA #15
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 F8   BNE *-6
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 12,998: Line 13,111:
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>08      PHP
|<pre>EA  ... NOP      &times; 2
08      PHP
48      PHA
48      PHA
18  ... CLC      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
EA      NOP
Line 13,011: Line 13,124:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68  ... PLA      &times; 21
68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 20</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|25 bytes
!colspan="2"|25 bytes
Line 13,075: Line 13,189:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>EA  ... NOP      &times; 2
A2 11    LDX #17
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 13,080: Line 13,199:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>EA  ... NOP      &times; 2
A2 11    LDX #17
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 13,182: Line 13,296:
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>EA   ... NOP     &times; 2
18   ... CLC     &times; 2
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
85 xx    STA @zptemp
Line 13,198: Line 13,312:
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
68      PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>EA   ... NOP     &times; 2
18   ... CLC     &times; 2
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
04 00    NOP $00
Line 13,534: Line 13,648:
!colspan="2"|23 bytes
!colspan="2"|23 bytes
|-
|-
|<pre>68  ... PLA      &times; 22
|<pre>68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 21</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|25 bytes
!colspan="2"|25 bytes
Line 13,803: Line 13,918:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>18   ... CLC     &times; 2
|<pre>EA   ... NOP     &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
00 00    BRK 0
10 FB    BPL *-3</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
10 FB    BPL *-3</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>48  ... PHA      &times; 2
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
48  ... PHA      &times; 2
48  ... PHA      &times; 2
Line 13,905: Line 14,019:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68  ... PLA      &times; 22
68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 21</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|26 bytes
!colspan="2"|26 bytes
Line 13,958: Line 14,073:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>48      PHA
A2 12    LDX #18
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 13,963: Line 14,083:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|<pre>48      PHA
A2 12    LDX #18
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 14,124: Line 14,239:
28      PLP
28      PLP
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|<pre>68      PLA
A0 12    LDY #18
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 14,130: Line 14,250:
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
!colspan="2"|7 bytes
A0 12    LDY #18
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
|<pre>EA  ... NOP      &times; 2
A2 12    LDX #18
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 14,141: Line 14,261:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>EA  ... NOP      &times; 2
A2 12    LDX #18
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 14,211: Line 14,326:
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>48      PHA
|<pre>EA   ... NOP     &times; 2
18   ... CLC     &times; 2
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Line 14,259: Line 14,374:
!colspan="2"|24 bytes
!colspan="2"|24 bytes
|-
|-
|<pre>68  ... PLA      &times; 23
|<pre>68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 22</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|26 bytes
!colspan="2"|26 bytes
Line 14,474: Line 14,590:
!colspan="2"|13 bytes
!colspan="2"|13 bytes
|-
|-
|<pre>EA       NOP
|<pre>EA   ... NOP     &times; 2
08      PHP
08      PHP
48      PHA
48      PHA
38      SEC
38      SEC
A9 0B   LDA #11
A9 0F   LDA #15
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 F8   BNE *-6
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 14,560: Line 14,675:
28      PLP
28      PLP
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; and writes in stack
|-
|<pre>A0 0C    LDY #12
C5 00    CMP $00
88      DEY
D0 F9    BNE *-5</pre>||Clobbers Y, Z&N, and C
|-
|-
|<pre>A2 0C    LDX #12
|<pre>A2 0C    LDX #12
Line 14,567: Line 14,687:
|-
|-
|<pre>A0 0C    LDY #12
|<pre>A0 0C    LDY #12
C5 00    CMP $00
24 00    BIT $00
88      DEY
88      DEY
D0 F9    BNE *-5</pre>||Clobbers Y, Z&N, and C
D0 F9    BNE *-5</pre>||Clobbers Y, Z&N, and V
|-
|-
|<pre>A2 0C    LDX #12
|<pre>A2 0C    LDX #12
Line 14,575: Line 14,695:
CA      DEX
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, Z&N, and V
D0 F9    BNE *-5</pre>||Clobbers X, Z&N, and V
|-
|<pre>A0 0C    LDY #12
24 00    BIT $00
88      DEY
D0 F9    BNE *-5</pre>||Clobbers Y, Z&N, and V
|-
|-
|<pre>A0 0C    LDY #12
|<pre>A0 0C    LDY #12
Line 14,590: Line 14,705:
CA      DEX
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N; and requires @zptemp
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|<pre>A2 0C    LDX #12
04 00    NOP $00
CA      DEX
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
Line 14,595: Line 14,715:
88      DEY
88      DEY
D0 F9    BNE *-5</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
D0 F9    BNE *-5</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes
|-
|<pre>A2 0C    LDX #12
04 00    NOP $00
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 14,695: Line 14,810:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68  ... PLA      &times; 23
68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 22</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|27 bytes
!colspan="2"|27 bytes
Line 14,763: Line 14,879:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>08      PHP
A0 12    LDY #18
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 14,769: Line 14,891:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A0 12    LDY #18
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 14,992: Line 15,108:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>18   ... CLC     &times; 2
|<pre>EA   ... NOP     &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
Line 15,051: Line 15,167:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>18   ... CLC     &times; 2
|<pre>EA   ... NOP     &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
18      CLC
Line 15,086: Line 15,202:
!colspan="2"|25 bytes
!colspan="2"|25 bytes
|-
|-
|<pre>68  ... PLA      &times; 24
|<pre>68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 23</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|27 bytes
!colspan="2"|27 bytes
Line 15,146: Line 15,263:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A0 0B    LDY #11
|<pre>EA  ... NOP      &times; 2
EA  ... NOP      &times; 2
A0 13    LDY #19
88      DEY
88      DEY
D0 F9   BNE *-5</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 0B    LDX #11
|<pre>EA  ... NOP      &times; 2
EA  ... NOP      &times; 2
A2 13    LDX #19
CA      DEX
CA      DEX
D0 F9   BNE *-5</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 15,170: Line 15,287:
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A0 12    LDY #18
A2 12    LDX #18
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A2 12    LDX #18
A0 12    LDY #18
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 15,233: Line 15,350:
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C; and requires @zptemp
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, and C; and requires @zptemp
|-
|-
|<pre>48      PHA
|<pre>EA   ... NOP     &times; 2
18   ... CLC     &times; 2
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
00 00    BRK 0
Line 15,367: Line 15,484:
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>48  ... PHA      &times; 2
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
Line 15,390: Line 15,506:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>18   ... CLC     &times; 3
|<pre>EA   ... NOP     &times; 3
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
Line 15,451: Line 15,567:
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>18   ... CLC     &times; 3
|<pre>EA   ... NOP     &times; 3
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
18      CLC
Line 15,461: Line 15,577:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68  ... PLA      &times; 24
68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 23</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|28 bytes
!colspan="2"|28 bytes
Line 15,514: Line 15,631:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>48      PHA
|<pre>48   ... PHA      &times; 2
A2 0E   LDX #14
A0 13    LDY #19
EA      NOP
88       DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|<pre>48  ... PHA     &times; 2
A2 13   LDX #19
CA      DEX
CA      DEX
D0 FA   BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FB   BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>48      PHA
A0 0E    LDY #14
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 15,556: Line 15,671:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>A4 00    LDY $00
A0 0E    LDY #14
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
Line 15,562: Line 15,683:
CA      DEX
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|<pre>A4 00    LDY $00
A0 0E    LDY #14
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 15,604: Line 15,719:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>EA  ... NOP      &times; 2
A9 0B    LDA #11
38      SEC
EA  ... NOP      &times; 2
A9 13    LDA #19
E9 01    SBC #1
E9 01    SBC #1
D0 F7   BNE *-7</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 15,813: Line 15,928:
!colspan="2"|26 bytes
!colspan="2"|26 bytes
|-
|-
|<pre>68  ... PLA      &times; 25
|<pre>68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 24</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|28 bytes
!colspan="2"|28 bytes
Line 15,877: Line 15,993:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A4 00    LDY $00
A0 14    LDY #20
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
Line 15,882: Line 16,003:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A4 00    LDY $00
A0 14    LDY #20
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
Line 16,052: Line 16,168:
CA      DEX
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>68      PLA
A0 14    LDY #20
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 16,058: Line 16,179:
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
!colspan="2"|7 bytes
|-
|<pre>EA  ... NOP      &times; 2
A0 14    LDY #20
A0 14    LDY #20
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
!colspan="2"|7 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 16,069: Line 16,190:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA  ... NOP      &times; 2
A0 14    LDY #20
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 16,179: Line 16,295:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68  ... PLA      &times; 25
68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 24</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|29 bytes
!colspan="2"|29 bytes
Line 16,227: Line 16,344:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A2 15    LDX #21
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 15    LDY #21
|<pre>A0 15    LDY #21
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 15    LDX #21
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #79
|<pre>A9      LDA #79
Line 16,337: Line 16,454:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>08      PHP
|<pre>EA   ... NOP     &times; 2
18   ... CLC     &times; 2
08      PHP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
Line 16,345: Line 16,462:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>EA   ... NOP     &times; 2
18   ... CLC     &times; 2
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
Line 16,465: Line 16,582:
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>EA  ... NOP      &times; 2
A2 0B   LDX #11
08      PHP
EA  ... NOP      &times; 2
A0 13   LDY #19
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
A2 13    LDX #19
CA      DEX
CA      DEX
D0 F9   BNE *-5
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A0 0B    LDY #11
EA  ... NOP      &times; 2
88      DEY
D0 F9    BNE *-5
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 16,508: Line 16,625:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>18   ... CLC     &times; 2
|<pre>EA   ... NOP     &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 3
EA  ... NOP      &times; 3
Line 16,551: Line 16,668:
!colspan="2"|27 bytes
!colspan="2"|27 bytes
|-
|-
|<pre>68  ... PLA      &times; 26
|<pre>68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 25</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|29 bytes
!colspan="2"|29 bytes
Line 16,619: Line 16,737:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>08      PHP
A2 14    LDX #20
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 16,625: Line 16,749:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 14    LDX #20
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 16,735: Line 16,853:
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>48      PHA
|<pre>EA   ... NOP     &times; 3
18   ... CLC     &times; 3
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
Line 16,799: Line 16,917:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>48      PHA
A0 15    LDY #21
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 16,804: Line 16,927:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>48      PHA
A0 15    LDY #21
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 0C    LDY #12
|<pre>A0 0C    LDY #12
Line 16,821: Line 16,939:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A4 00    LDY $00
A0 15    LDY #21
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
Line 16,826: Line 16,949:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A4 00    LDY $00
A0 15    LDY #21
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 16,879: Line 16,997:
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; requires @rts14; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers A, Z&N, and C; requires @rts14; and writes in stack
|-
|-
|<pre>48       PHA
|<pre>48   ... PHA     &times; 2
08      PHP
08      PHP
A0 0E   LDY #14
A0 13   LDY #19
EA      NOP
88      DEY
88      DEY
D0 FA   BNE *-4
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
|<pre>48   ... PHA     &times; 2
08      PHP
08      PHP
A2 0E   LDX #14
A2 13   LDX #19
EA      NOP
CA      DEX
CA      DEX
D0 FA   BNE *-4
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>18      CLC
|<pre>48  ... PHA      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
48  ... PHA      &times; 2
48  ... PHA      &times; 2
08       PHP
18       CLC
28      PLP
D0 FA   BNE *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack
90 F9   BCC *-5</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 16,943: Line 17,058:
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>18   ... CLC     &times; 3
|<pre>EA   ... NOP     &times; 3
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 3
EA  ... NOP      &times; 3
Line 16,952: Line 17,067:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68  ... PLA      &times; 26
68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 25</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|30 bytes
!colspan="2"|30 bytes
Line 17,348: Line 17,464:
!colspan="2"|28 bytes
!colspan="2"|28 bytes
|-
|-
|<pre>68  ... PLA      &times; 27
|<pre>68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 26</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|30 bytes
!colspan="2"|30 bytes
Line 17,395: Line 17,512:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>48  ... PHA      &times; 2
A0 15    LDY #21
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 17,400: Line 17,522:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
A0 15    LDY #21
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 17,454: Line 17,571:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>8C       TXA
|<pre>98       TYA
48      PHA
48      PHA
A2 14    LDX #20
A0 14    LDY #20
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA
68      PLA
AA       TAX</pre>||Clobbers A, and Z&N; and writes in stack
A8       TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 17,471: Line 17,588:
|<pre>08      PHP
|<pre>08      PHP
A2 0D    LDX #13
A2 0D    LDX #13
C5 00    CMP $00
24 00    BIT $00
CA      DEX
CA      DEX
D0 F9    BNE *-5
D0 F9    BNE *-5
Line 17,557: Line 17,674:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A0 10    LDY #16
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 10    LDX #16
|<pre>A2 10    LDX #16
Line 17,562: Line 17,684:
CA      DEX
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|<pre>A0 10    LDY #16
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 17,691: Line 17,808:
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>08      PHP
|<pre>EA  ... NOP      &times; 2
08      PHP
48      PHA
48      PHA
18  ... CLC      &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
08      PHP
08      PHP
Line 17,704: Line 17,821:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68  ... PLA      &times; 27
68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 26</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|31 bytes
!colspan="2"|31 bytes
Line 17,756: Line 17,874:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>48      PHA
A0 16    LDY #22
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 17,761: Line 17,884:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>48      PHA
A0 16    LDY #22
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 17,773: Line 17,891:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A4 00    LDY $00
A0 16    LDY #22
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
Line 17,778: Line 17,901:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A4 00    LDY $00
A0 16    LDY #22
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 17,800: Line 17,918:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>08      PHP
A2 18    LDX #24 ;hides 'CLC'
CA  ... DEX      &times; 2
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 17,806: Line 17,930:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 18    LDX #24 ;hides 'CLC'
CA  ... DEX      &times; 2
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 17,839: Line 17,957:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
8C       TXA
98       TYA
48      PHA
48      PHA
A2 14    LDX #20
A0 14    LDY #20
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA
68      PLA
AA       TAX</pre>||Clobbers A, and Z&N; and writes in stack
A8       TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 17,917: Line 18,035:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>68      PLA
A2 16    LDX #22
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 17,922: Line 18,045:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|<pre>68      PLA
A2 16    LDX #22
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 17,935: Line 18,053:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>EA       NOP
|<pre>EA   ... NOP     &times; 2
A0 10   LDY #16
A0 16   LDY #22
EA      NOP
88      DEY
88      DEY
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA       NOP
|<pre>EA   ... NOP     &times; 2
A2 10   LDX #16
A2 16   LDX #22
EA      NOP
CA      DEX
CA      DEX
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA       NOP
|<pre>EA   ... NOP     &times; 2
18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, C, and V
D0 FC   BNE *-2</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 18,057: Line 18,172:
!colspan="2"|29 bytes
!colspan="2"|29 bytes
|-
|-
|<pre>68  ... PLA      &times; 28
|<pre>68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 27</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|31 bytes
!colspan="2"|31 bytes
Line 18,090: Line 18,206:
36 00    ROL $00,X \ &times; 9
36 00    ROL $00,X \ &times; 9
76 00    ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
76 00    ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
!colspan="2"|41 bytes
|-
|<pre>EA  ... NOP      &times; 2
4C xx xx JMP *+3
36 00    ROL $00,X \ &times; 9
76 00    ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|}
|}
Line 18,126: Line 18,249:
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A2 15    LDX #21
A0 15    LDY #21
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A0 15    LDY #21
A2 15    LDX #21
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 18,215: Line 18,338:
|-
|-
|<pre>68      PLA
|<pre>68      PLA
8C       TXA
98       TYA
48      PHA
48      PHA
A2 14    LDX #20
A0 14    LDY #20
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA
68      PLA
AA       TAX</pre>||Clobbers A, S, and Z&N; and writes in stack
A8       TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 18,380: Line 18,503:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 3
A0 10   LDY #16
A0 16   LDY #22
EA      NOP
88      DEY
88      DEY
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 3
A2 10   LDX #16
A2 16   LDX #22
EA      NOP
CA      DEX
CA      DEX
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 3
18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, C, and V
D0 FC   BNE *-2</pre>||Clobbers A, Z&N, C, and V
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 18,468: Line 18,588:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68  ... PLA      &times; 28
68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 27</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|32 bytes
!colspan="2"|32 bytes
Line 18,485: Line 18,606:
36 00    ROL $00,X \ &times; 9
36 00    ROL $00,X \ &times; 9
76 00    ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp
76 00    ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp
|-
!colspan="2"|41 bytes
|-
|<pre>EA  ... NOP      &times; 3
C5 00    CMP $00
36 00    ROL $00,X \ &times; 9
76 00    ROR $00,X /</pre>||Clobbers Z&N, and C
|-
|<pre>EA  ... NOP      &times; 3
24 00    BIT $00
36 00    ROL $00,X \ &times; 9
76 00    ROR $00,X /</pre>||Clobbers Z&N, and V
|-
|<pre>EA  ... NOP      &times; 3
04 00    NOP $00
36 00    ROL $00,X \ &times; 9
76 00    ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
!colspan="2"|42 bytes
|-
|<pre>EA  ... NOP      &times; 3
4C xx xx JMP *+3
36 00    ROL $00,X \ &times; 9
76 00    ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|}
|}
Line 18,497: Line 18,642:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A0 17    LDY #23
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 18,502: Line 18,652:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A0 17    LDY #23
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 18,674: Line 18,819:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A6 00    LDX $00
A2 17    LDX #23
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A4 00    LDY $00
|<pre>A4 00    LDY $00
Line 18,679: Line 18,829:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A6 00    LDX $00
A2 17    LDX #23
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 18,723: Line 18,868:
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
08      PHP
08      PHP
A2 15    LDX #21
A0 15    LDY #21
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
08      PHP
08      PHP
A0 15    LDY #21
A2 15    LDX #21
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 18,755: Line 18,900:
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
08      PHP
08      PHP
A2 15    LDX #21
A0 15    LDY #21
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
08      PHP
08      PHP
A0 15    LDY #21
A2 15    LDX #21
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 18,785: Line 18,930:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
8C       TXA
98       TYA
48      PHA
48      PHA
A2 14    LDX #20
A0 14    LDY #20
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA
68      PLA
AA       TAX
A8       TAY
68      PLA</pre>||Clobbers Z&N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
Line 18,816: Line 18,961:
!colspan="2"|30 bytes
!colspan="2"|30 bytes
|-
|-
|<pre>68  ... PLA      &times; 29
|<pre>68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 28</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|32 bytes
!colspan="2"|32 bytes
Line 18,825: Line 18,971:
EA  ... NOP      &times; 27
EA  ... NOP      &times; 27
10 E1    BPL *-29</pre>||Clobbers A, and Z&N
10 E1    BPL *-29</pre>||Clobbers A, and Z&N
|-
!colspan="2"|41 bytes
|-
|<pre>EA  ... NOP      &times; 3
E6 xx    INC @zptemp
36 00    ROL $00,X \ &times; 9
76 00    ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp
|-
!colspan="2"|42 bytes
|-
|<pre>C5 00    CMP $00
26 00    ROL $00  \ &times; 2
66 00    ROR $00  /
36 00    ROL $00,X \ &times; 8
76 00    ROR $00,X /</pre>||Clobbers Z&N, and C
|-
|<pre>24 00    BIT $00
26 00    ROL $00  \ &times; 2
66 00    ROR $00  /
36 00    ROL $00,X \ &times; 8
76 00    ROR $00,X /</pre>||Clobbers Z&N, and V
|-
|<pre>04 00    NOP $00
26 00    ROL $00  \ &times; 2
66 00    ROR $00  /
36 00    ROL $00,X \ &times; 8
76 00    ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
!colspan="2"|43 bytes
|-
|<pre>4C xx xx JMP *+3
26 00    ROL $00  \ &times; 2
66 00    ROR $00  /
36 00    ROL $00,X \ &times; 8
76 00    ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|}
|}
Line 18,837: Line 19,018:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A2 11    LDX #17
EA      NOP
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 11    LDY #17
|<pre>A0 11    LDY #17
Line 18,842: Line 19,028:
88      DEY
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 11    LDX #17
EA      NOP
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 18,855: Line 19,036:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>EA       NOP
|<pre>EA   ... NOP     &times; 2
18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
B0 FA   BCS *-4</pre>||Clobbers A, Z&N, C, and V
B0 FC   BCS *-2</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 18,881: Line 19,061:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 10    LDX #16
A0 10    LDY #16
EA      NOP
EA      NOP
CA       DEX
88       DEY
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 10    LDY #16
A2 10    LDX #16
EA      NOP
EA      NOP
88       DEY
CA       DEX
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 19,128: Line 19,308:
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
48      PHA
8C       TXA
98       TYA
48      PHA
48      PHA
A2 14    LDX #20
A0 14    LDY #20
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA
68      PLA
AA       TAX
A8       TAY
68      PLA</pre>||Clobbers Z&N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
Line 19,152: Line 19,332:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68  ... PLA      &times; 29
68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 28</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|33 bytes
!colspan="2"|33 bytes
Line 19,163: Line 19,344:
10 E1    BPL *-29</pre>||Clobbers A, and Z&N
10 E1    BPL *-29</pre>||Clobbers A, and Z&N
|-
|-
|}
!colspan="2"|42 bytes
|-
|<pre>C5 00    CMP $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X \ &times; 9
76 00    ROR $00,X /</pre>||Clobbers Z&N, and C
|-
|<pre>24 00    BIT $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X \ &times; 9
76 00    ROR $00,X /</pre>||Clobbers Z&N, and V
|-
|<pre>E6 xx    INC @zptemp
26 00    ROL $00  \ &times; 2
66 00    ROR $00  /
36 00    ROL $00,X \ &times; 8
76 00    ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp
|-
|<pre>04 00    NOP $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X \ &times; 9
76 00    ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
!colspan="2"|43 bytes
|-
|<pre>4C xx xx JMP *+3
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X \ &times; 9
76 00    ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code
|-
|}




Line 19,174: Line 19,389:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>EA      NOP
A2 11    LDX #17
EA      NOP
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 19,180: Line 19,401:
88      DEY
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
A2 11    LDX #17
EA      NOP
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 19,234: Line 19,449:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>EA   ... NOP     &times; 2
08      PHP
08      PHP
A0 10   LDY #16
A0 16   LDY #22
EA      NOP
88      DEY
88      DEY
D0 FA   BNE *-4
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     &times; 2
08      PHP
08      PHP
A2 10   LDX #16
A2 16   LDX #22
EA      NOP
CA      DEX
CA      DEX
D0 FA   BNE *-4
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     &times; 2
48      PHA
48      PHA
18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
D0 FA   BNE *-4
D0 FC   BNE *-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 19,304: Line 19,516:
EA  ... NOP      &times; 26
EA  ... NOP      &times; 26
10 E2    BPL *-28</pre>||Clobbers A, and Z&N
10 E2    BPL *-28</pre>||Clobbers A, and Z&N
|-
!colspan="2"|41 bytes
|-
|<pre>EA      NOP
36 00    ROL $00,X \ &times; 10
76 00    ROR $00,X /</pre>||Clobbers Z&N
|-
|-
|}
|}
Line 19,377: Line 19,595:
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>18   ... CLC     &times; 2
|<pre>EA   ... NOP     &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 4
EA  ... NOP      &times; 4
Line 19,488: Line 19,706:
!colspan="2"|31 bytes
!colspan="2"|31 bytes
|-
|-
|<pre>68  ... PLA      &times; 30
|<pre>68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 29</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|33 bytes
!colspan="2"|33 bytes
Line 19,497: Line 19,716:
EA  ... NOP      &times; 28
EA  ... NOP      &times; 28
10 E0    BPL *-30</pre>||Clobbers A, and Z&N
10 E0    BPL *-30</pre>||Clobbers A, and Z&N
|-
!colspan="2"|42 bytes
|-
|<pre>C5 00    CMP $00
36 00    ROL $00,X \ &times; 10
76 00    ROR $00,X /</pre>||Clobbers Z&N, and C
|-
|<pre>24 00    BIT $00
36 00    ROL $00,X \ &times; 10
76 00    ROR $00,X /</pre>||Clobbers Z&N, and V
|-
|<pre>E6 xx    INC @zptemp
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X \ &times; 9
76 00    ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp
|-
|<pre>04 00    NOP $00
36 00    ROL $00,X \ &times; 10
76 00    ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
!colspan="2"|43 bytes
|-
|<pre>4C xx xx JMP *+3
36 00    ROL $00,X \ &times; 10
76 00    ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code
|-
|-
|}
|}
Line 19,565: Line 19,810:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 0D    LDY #13 ;hides 'ORA abs'
A2 0D    LDX #13 ;hides 'ORA abs'
A5 00    LDA $0
A5 00    LDA $0
88       DEY
CA       DEX
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A, and Y; and writes in stack
28      PLP</pre>||Clobbers A, and X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 0D    LDX #13 ;hides 'ORA abs'
A0 0D    LDY #13 ;hides 'ORA abs'
A5 00    LDA $0
A5 00    LDA $0
CA       DEX
88       DEY
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers A, and X; and writes in stack
28      PLP</pre>||Clobbers A, and Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 19,630: Line 19,875:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 3
08      PHP
08      PHP
A0 10   LDY #16
A0 16   LDY #22
EA      NOP
88      DEY
88      DEY
D0 FA   BNE *-4
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 3
08      PHP
08      PHP
A2 10   LDX #16
A2 16   LDX #22
EA      NOP
CA      DEX
CA      DEX
D0 FA   BNE *-4
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 3
48      PHA
48      PHA
18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
D0 FA   BNE *-4
D0 FC   BNE *-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 19,704: Line 19,946:
EA  ... NOP      &times; 26
EA  ... NOP      &times; 26
10 E2    BPL *-28</pre>||Clobbers A, and Z&N
10 E2    BPL *-28</pre>||Clobbers A, and Z&N
|-
!colspan="2"|42 bytes
|-
|<pre>EA  ... NOP      &times; 2
36 00    ROL $00,X \ &times; 10
76 00    ROR $00,X /</pre>||Clobbers Z&N
|-
|-
|}
|}
Line 19,728: Line 19,976:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>EA  ... NOP      &times; 2
A0 18    LDY #24
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 19,733: Line 19,986:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA  ... NOP      &times; 2
A0 18    LDY #24
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 19,806: Line 20,054:
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>18   ... CLC     &times; 3
|<pre>EA   ... NOP     &times; 3
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 4
EA  ... NOP      &times; 4
Line 19,815: Line 20,063:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68  ... PLA      &times; 30
68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 29</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|34 bytes
!colspan="2"|34 bytes
Line 19,825: Line 20,074:
EA  ... NOP      &times; 28
EA  ... NOP      &times; 28
10 E0    BPL *-30</pre>||Clobbers A, and Z&N
10 E0    BPL *-30</pre>||Clobbers A, and Z&N
|-
!colspan="2"|42 bytes
|-
|<pre>E6 xx    INC @zptemp
36 00    ROL $00,X \ &times; 10
76 00    ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp
|-
!colspan="2"|43 bytes
|-
|<pre>EA      NOP
C5 00    CMP $00
36 00    ROL $00,X \ &times; 10
76 00    ROR $00,X /</pre>||Clobbers Z&N, and C
|-
|<pre>EA      NOP
24 00    BIT $00
36 00    ROL $00,X \ &times; 10
76 00    ROR $00,X /</pre>||Clobbers Z&N, and V
|-
|<pre>EA      NOP
04 00    NOP $00
36 00    ROL $00,X \ &times; 10
76 00    ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes
|-
|-
|}
|}
Line 19,832: Line 20,104:
{| 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
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 19    LDX #25
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #99
|<pre>A9      LDA #99
Line 19,951: Line 20,223:
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
D0 FD   BNE *-1
D0 FC   BNE *-2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA   ... NOP     &times; 2
18      CLC
18      CLC
D0 FB   BNE *-3</pre>||Clobbers A, Z&N, and C
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes
Line 20,006: Line 20,277:
EA  ... NOP      &times; 27
EA  ... NOP      &times; 27
10 E1    BPL *-29</pre>||Clobbers A, and Z&N
10 E1    BPL *-29</pre>||Clobbers A, and Z&N
|-
!colspan="2"|43 bytes
|-
|<pre>EA  ... NOP      &times; 3
36 00    ROL $00,X \ &times; 10
76 00    ROR $00,X /</pre>||Clobbers Z&N
|-
|-
|}
|}
Line 20,088: Line 20,365:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>EA       NOP
|<pre>EA   ... NOP     &times; 2
08      PHP
08      PHP
18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
B0 FA   BCS *-4
B0 FC   BCS *-2
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>EA   ... NOP     &times; 2
48      PHA
48      PHA
18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
B0 FA   BCS *-4
B0 FC   BCS *-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 20,136: Line 20,411:
!colspan="2"|32 bytes
!colspan="2"|32 bytes
|-
|-
|<pre>68  ... PLA      &times; 31
|<pre>68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 30</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|34 bytes
!colspan="2"|34 bytes
Line 20,145: Line 20,421:
EA  ... NOP      &times; 29
EA  ... NOP      &times; 29
10 DF    BPL *-31</pre>||Clobbers A, and Z&N
10 DF    BPL *-31</pre>||Clobbers A, and Z&N
|-
!colspan="2"|43 bytes
|-
|<pre>EA      NOP
E6 xx    INC @zptemp
36 00    ROL $00,X \ &times; 10
76 00    ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp
|-
|-
|}
|}
Line 20,267: Line 20,550:
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
18      CLC
D0 FD   BNE *-1
D0 FC   BNE *-2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA   ... NOP     &times; 2
18      CLC
18      CLC
D0 FB   BNE *-3</pre>||Clobbers A, Z&N, and C
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|32 bytes
!colspan="2"|32 bytes
Line 20,303: Line 20,585:
A2 E8    LDX #232 ;hides 'INX'
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N; and requires @zptemp
D0 FD    BNE *-1</pre>||Clobbers X, and Z&N; and requires @zptemp
|-
|<pre>A0 10    LDY #16
48      PHA
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>A2 10    LDX #16
|<pre>A2 10    LDX #16
Line 20,308: Line 20,595:
CA      DEX
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>A0 10    LDY #16
48      PHA
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
|<pre>A0 88    LDY #136 ;hides 'DEY'
Line 20,319: Line 20,601:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A4 00    LDY $00
A0 19    LDY #25
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
Line 20,324: Line 20,611:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A4 00    LDY $00
A0 19    LDY #25
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
Line 20,365: Line 20,647:
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A2 11    LDX #17
A0 11    LDY #17
EA      NOP
EA      NOP
CA       DEX
88       DEY
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A0 11    LDY #17
A2 11    LDX #17
EA      NOP
EA      NOP
88       DEY
CA       DEX
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 20,432: Line 20,714:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68  ... PLA      &times; 31
68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 30</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|35 bytes
!colspan="2"|35 bytes
Line 20,458: Line 20,741:
A2 E8    LDX #232 ;hides 'INX'
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FD    BNE *-1</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>68      PLA
A0 19    LDY #25
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 20,463: Line 20,751:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|<pre>68      PLA
A0 19    LDY #25
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 20,745: Line 21,028:
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|-
|<pre>18   ... CLC     &times; 2
|<pre>EA   ... NOP     &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
18  ... CLC      &times; 3
18  ... CLC      &times; 3
Line 20,754: Line 21,037:
!colspan="2"|33 bytes
!colspan="2"|33 bytes
|-
|-
|<pre>68  ... PLA      &times; 32
|<pre>68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 31</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|35 bytes
!colspan="2"|35 bytes
Line 20,788: Line 21,072:
D0 FD    BNE *-1</pre>||Clobbers A, X, and Z&N
D0 FD    BNE *-1</pre>||Clobbers A, X, and Z&N
|-
|-
|<pre>48       PHA
|<pre>48   ... PHA     &times; 2
A0 10   LDY #16
A0 19   LDY #25
48      PHA
88      DEY
88      DEY
D0 FA   BNE *-4</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     &times; 2
A2 10   LDX #16
A2 19   LDX #25
48      PHA
CA      DEX
CA      DEX
D0 FA   BNE *-4</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
Line 20,817: Line 21,099:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA  ... NOP      &times; 3
A2 19    LDX #25
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
Line 20,822: Line 21,109:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>EA  ... NOP      &times; 3
A2 19    LDX #25
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 20,926: Line 21,208:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A0 1A    LDY #26
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 20,931: Line 21,218:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A0 1A    LDY #26
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 21,090: Line 21,372:
!colspan="2"|13 bytes
!colspan="2"|13 bytes
|-
|-
|<pre>18   ... CLC     &times; 3
|<pre>EA   ... NOP     &times; 3
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
18  ... CLC      &times; 3
18  ... CLC      &times; 3
Line 21,100: Line 21,382:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68  ... PLA      &times; 32
68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 31</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|36 bytes
!colspan="2"|36 bytes
Line 21,154: Line 21,437:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 12    LDY #18
A2 12    LDX #18
EA      NOP
EA      NOP
88       DEY
CA       DEX
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 12    LDX #18
A0 12    LDY #18
EA      NOP
EA      NOP
CA       DEX
88       DEY
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$2A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$2A'
Line 21,249: Line 21,532:
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>EA       NOP
|<pre>EA   ... NOP     &times; 2
08      PHP
08      PHP
48      PHA
48      PHA
18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
B0 FA   BCS *-4
B0 FC   BCS *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 21,296: Line 21,578:
|-
|-
|<pre>68      PLA
|<pre>68      PLA
A0 1A    LDY #26
A2 1A    LDX #26
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|<pre>68      PLA
A0 1A    LDY #26
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|<pre>68      PLA
A2 1A    LDX #26
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 21,404: Line 21,686:
!colspan="2"|34 bytes
!colspan="2"|34 bytes
|-
|-
|<pre>68  ... PLA      &times; 33
|<pre>68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 32</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|36 bytes
!colspan="2"|36 bytes
Line 21,420: Line 21,703:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A2 1B    LDX #27
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 1B    LDY #27
|<pre>A0 1B    LDY #27
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 1B    LDX #27
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #109
|<pre>A9      LDA #109
Line 21,465: Line 21,748:
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A0 19    LDY #25
A2 19    LDX #25
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A2 19    LDX #25
A0 19    LDY #25
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 10    LDY #16
A2 10    LDX #16
C5 00    CMP $00
C5 00    CMP $00
88       DEY
CA       DEX
D0 F9    BNE *-5
D0 F9    BNE *-5
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 10    LDX #16
A0 10    LDY #16
C5 00    CMP $00
C5 00    CMP $00
CA       DEX
88       DEY
D0 F9    BNE *-5
D0 F9    BNE *-5
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>00 00    BRK 0
|<pre>00 00    BRK 0
Line 21,596: Line 21,879:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A2 11    LDX #17
A5 00    LDA $00
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers A, X, and Z&N
|-
|-
|<pre>A0 11    LDY #17
|<pre>A0 11    LDY #17
Line 21,608: Line 21,886:
|-
|-
|<pre>A2 11    LDX #17
|<pre>A2 11    LDX #17
A4 00    LDY $00
A5 00    LDA $00
CA      DEX
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, Y, and Z&N
D0 F9    BNE *-5</pre>||Clobbers A, X, and Z&N
|-
|-
|<pre>A2 11    LDX #17
|<pre>A2 11    LDX #17
C5 00    CMP $00
A4 00    LDY $00
CA      DEX
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, Z&N, and C
D0 F9    BNE *-5</pre>||Clobbers X, Y, and Z&N
|-
|-
|<pre>A0 11    LDY #17
|<pre>A0 11    LDY #17
Line 21,623: Line 21,901:
|-
|-
|<pre>A2 11    LDX #17
|<pre>A2 11    LDX #17
24 00    BIT $00
C5 00    CMP $00
CA      DEX
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, Z&N, and V
D0 F9    BNE *-5</pre>||Clobbers X, Z&N, and C
|-
|-
|<pre>A0 11    LDY #17
|<pre>A0 11    LDY #17
Line 21,631: Line 21,909:
88      DEY
88      DEY
D0 F9    BNE *-5</pre>||Clobbers Y, Z&N, and V
D0 F9    BNE *-5</pre>||Clobbers Y, Z&N, and V
|-
|<pre>A2 11    LDX #17
24 00    BIT $00
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, Z&N, and V
|-
|-
|<pre>A0 11    LDY #17
|<pre>A0 11    LDY #17
Line 21,663: Line 21,946:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>A4 00    LDY $00
A0 13    LDY #19
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
Line 21,669: Line 21,958:
CA      DEX
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|<pre>A4 00    LDY $00
A0 13    LDY #19
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 21,695: Line 21,978:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>98       TYA
|<pre>8C       TXA
48      PHA
48      PHA
A0 19    LDY #25
A2 19    LDX #25
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA
68      PLA
A8       TAY</pre>||Clobbers A, and Z&N; and writes in stack
AA       TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
08      PHP
08      PHP
A0 19    LDY #25
A2 19    LDX #25
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
08      PHP
08      PHP
A2 19    LDX #25
A0 19    LDY #25
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 21,769: Line 22,052:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68  ... PLA      &times; 33
68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 32</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|37 bytes
!colspan="2"|37 bytes
Line 21,810: Line 22,094:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 1A    LDY #26
A2 1A    LDX #26
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 1A    LDX #26
A0 1A    LDY #26
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 22,098: Line 22,382:
28      PLP</pre>||Clobbers A, and X; and writes in stack
28      PLP</pre>||Clobbers A, and X; and writes in stack
|-
|-
|<pre>18   ... CLC     &times; 2
|<pre>EA   ... NOP     &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Line 22,147: Line 22,431:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
98       TYA
8C       TXA
48      PHA
48      PHA
A0 19    LDY #25
A2 19    LDX #25
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA
68      PLA
A8       TAY</pre>||Clobbers A, and Z&N; and writes in stack
AA       TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
08      PHP
08      PHP
A0 19    LDY #25
A2 19    LDX #25
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
08      PHP
08      PHP
A2 19    LDX #25
A0 19    LDY #25
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 22,233: Line 22,517:
!colspan="2"|35 bytes
!colspan="2"|35 bytes
|-
|-
|<pre>68  ... PLA      &times; 34
|<pre>68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 33</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|37 bytes
!colspan="2"|37 bytes
Line 22,458: Line 22,743:
{| 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
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 1C    LDX #28
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #114
|<pre>A9      LDA #114
Line 22,491: Line 22,776:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 13    LDY #19
A2 13    LDX #19
EA      NOP
EA      NOP
88       DEY
CA       DEX
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 13    LDX #19
A0 13    LDY #19
EA      NOP
EA      NOP
CA       DEX
88       DEY
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
Line 22,525: Line 22,810:
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
D0 F9    BNE *-5</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>EA      NOP
|<pre>48  ... PHA      &times; 2
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Line 22,540: Line 22,824:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>18   ... CLC     &times; 3
|<pre>EA   ... NOP     &times; 3
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Line 22,566: Line 22,850:
|-
|-
|<pre>68      PLA
|<pre>68      PLA
98       TYA
8C       TXA
48      PHA
48      PHA
A0 19    LDY #25
A2 19    LDX #25
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA
68      PLA
A8       TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
AA       TAX</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 22,641: Line 22,925:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68  ... PLA      &times; 34
68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 33</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|38 bytes
!colspan="2"|38 bytes
Line 22,673: Line 22,958:
88  ... DEY      &times; 2
88  ... DEY      &times; 2
30 FA    BMI *-4</pre>||Clobbers A, Y, and Z&N
30 FA    BMI *-4</pre>||Clobbers A, Y, and Z&N
|-
|<pre>48  ... PHA      &times; 2
A0 1B    LDY #27
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 22,678: Line 22,968:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
A0 1B    LDY #27
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>A0 1A    LDY #26 ;hides 'NOP'
|<pre>A0 1A    LDY #26 ;hides 'NOP'
Line 22,711: Line 22,996:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA  ... NOP      &times; 3
A0 1B    LDY #27
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
Line 22,716: Line 23,006:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA  ... NOP      &times; 3
A0 1B    LDY #27
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 22,752: Line 23,037:
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
08      PHP
08      PHP
A0 1A    LDY #26
A2 1A    LDX #26
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
08      PHP
08      PHP
A2 1A    LDX #26
A0 1A    LDY #26
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 22,816: Line 23,101:
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
D0 FD   BNE *-1
18      CLC
D0 FB   BNE *-3
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA   ... NOP     &times; 3
18      CLC
18      CLC
D0 FB   BNE *-3</pre>||Clobbers A, Z&N, and C
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|36 bytes
!colspan="2"|36 bytes
Line 22,849: Line 23,132:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A0 1C    LDY #28
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 22,854: Line 23,142:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A0 1C    LDY #28
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
Line 22,971: Line 23,254:
!colspan="2"|36 bytes
!colspan="2"|36 bytes
|-
|-
|<pre>68  ... PLA      &times; 35
|<pre>68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 34</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|38 bytes
!colspan="2"|38 bytes
Line 23,044: Line 23,328:
|<pre>08      PHP
|<pre>08      PHP
A2 11    LDX #17
A2 11    LDX #17
24 00    BIT $00
C5 00    CMP $00
CA      DEX
CA      DEX
D0 F9    BNE *-5
D0 F9    BNE *-5
Line 23,051: Line 23,335:
|<pre>08      PHP
|<pre>08      PHP
A0 11    LDY #17
A0 11    LDY #17
C5 00    CMP $00
24 00    BIT $00
88      DEY
88      DEY
D0 F9    BNE *-5
D0 F9    BNE *-5
Line 23,110: Line 23,394:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
98       TYA
8C       TXA
48      PHA
48      PHA
A0 19    LDY #25
A2 19    LDX #25
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA
68      PLA
A8       TAY
AA       TAX
68      PLA</pre>||Clobbers Z&N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
Line 23,143: Line 23,427:
|<pre>EA      NOP
|<pre>EA      NOP
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA      NOP
D0 FD   BNE *-1
18      CLC
D0 FB   BNE *-3
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
EA   ... NOP     &times; 3
18      CLC
18      CLC
D0 FB   BNE *-3</pre>||Clobbers A, Z&N, and C
D0 F9   BNE *-5</pre>||Clobbers A, Z&N, and C
|-
|-
!colspan="2"|36 bytes
!colspan="2"|36 bytes
Line 23,199: Line 23,481:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>A0 10   LDY #16
|<pre>EA  ... NOP      &times; 2
EA  ... NOP      &times; 2
A2 1C   LDX #28
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA  ... NOP      &times; 2
A0 1C    LDY #28
88      DEY
88      DEY
D0 F9   BNE *-5</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 10    LDX #16
EA  ... NOP      &times; 2
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 23,234: Line 23,516:
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A2 1B    LDX #27
A0 1B    LDY #27
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A0 1B    LDY #27
A2 1B    LDX #27
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 23,399: Line 23,681:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68  ... PLA      &times; 35
68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 34</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|39 bytes
!colspan="2"|39 bytes
Line 23,573: Line 23,856:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>EA   ... NOP     &times; 2
18   ... CLC     &times; 2
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Line 23,600: Line 23,883:
|<pre>EA      NOP
|<pre>EA      NOP
48      PHA
48      PHA
98       TYA
8C       TXA
48      PHA
48      PHA
A0 19    LDY #25
A2 19    LDX #25
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA
68      PLA
A8       TAY
AA       TAX
68      PLA</pre>||Clobbers Z&N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
Line 23,664: Line 23,947:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>EA       NOP
|<pre>48  ... PHA      &times; 2
A0 12   LDY #18
A2 1C    LDX #28
48      PHA
CA       DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
A0 1C   LDY #28
88      DEY
88      DEY
D0 FA   BNE *-4</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
A2 12   LDX #18
A2 10   LDX #16
48       PHA
68       PLA
CA      DEX
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 23,682: Line 23,969:
D0 FA    BNE *-4</pre>||Clobbers A, Y, S, and Z&N
D0 FA    BNE *-4</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>68      PLA
A2 10    LDX #16
68      PLA
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers A, X, S, and Z&N
|-
|<pre>68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
00 00    BRK 0
Line 23,711: Line 23,992:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA       NOP
|<pre>EA   ... NOP     &times; 3
A2 10   LDX #16
A0 1C   LDY #28
EA  ... NOP      &times; 2
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>EA  ... NOP      &times; 3
A2 1C    LDX #28
CA      DEX
CA      DEX
D0 F9   BNE *-5</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A0 10    LDY #16
EA  ... NOP      &times; 2
88      DEY
D0 F9    BNE *-5</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 23,729: Line 24,008:
10 F8    BPL *-6</pre>||Clobbers A, Z&N, C, V, and D
10 F8    BPL *-6</pre>||Clobbers A, Z&N, C, V, and D
|-
|-
|<pre>18   ... CLC     &times; 2
|<pre>EA   ... NOP     &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
00 00    BRK 0
Line 23,839: Line 24,118:
!colspan="2"|13 bytes
!colspan="2"|13 bytes
|-
|-
|<pre>18   ... CLC     &times; 2
|<pre>EA   ... NOP     &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
18  ... CLC      &times; 4
18  ... CLC      &times; 4
Line 23,848: Line 24,127:
!colspan="2"|37 bytes
!colspan="2"|37 bytes
|-
|-
|<pre>68  ... PLA      &times; 36
|<pre>68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 35</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|39 bytes
!colspan="2"|39 bytes
Line 23,869: Line 24,149:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A2 15    LDX #21
EA      NOP
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 15    LDY #21
|<pre>A0 15    LDY #21
Line 23,874: Line 24,159:
88      DEY
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 15    LDX #21
EA      NOP
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 23,886: Line 24,166:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>08      PHP
A2 1C    LDX #28
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 23,892: Line 24,178:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 1C    LDX #28
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 23,987: Line 24,267:
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>48      PHA
|<pre>EA   ... NOP     &times; 3
18   ... CLC     &times; 3
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Line 24,074: Line 24,354:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>48      PHA
A0 1D    LDY #29
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 24,079: Line 24,364:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>48      PHA
A0 1D    LDY #29
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 24,109: Line 24,389:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA      NOP
|<pre>48  ... PHA      &times; 2
68      PLA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
00 00    BRK 0
Line 24,145: Line 24,424:
10 F8    BPL *-6</pre>||Clobbers A, Z&N, C, V, and D
10 F8    BPL *-6</pre>||Clobbers A, Z&N, C, V, and D
|-
|-
|<pre>18   ... CLC     &times; 3
|<pre>EA   ... NOP     &times; 3
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
00 00    BRK 0
Line 24,152: Line 24,431:
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
08      PHP
08      PHP
A2 1B    LDX #27
A0 1B    LDY #27
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
08      PHP
08      PHP
A0 1B    LDY #27
A2 1B    LDX #27
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 24,219: Line 24,498:
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
08      PHP
08      PHP
A2 1B    LDX #27
A0 1B    LDY #27
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
08      PHP
08      PHP
A0 1B    LDY #27
A2 1B    LDX #27
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 24,306: Line 24,585:
!colspan="2"|14 bytes
!colspan="2"|14 bytes
|-
|-
|<pre>18   ... CLC     &times; 3
|<pre>EA   ... NOP     &times; 3
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
18  ... CLC      &times; 4
18  ... CLC      &times; 4
Line 24,316: Line 24,595:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68  ... PLA      &times; 36
68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 35</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|40 bytes
!colspan="2"|40 bytes
Line 24,351: Line 24,631:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>EA      NOP
|<pre>EA   ... NOP      &times; 2
A0 15   LDY #21
A2 1D    LDX #29
EA      NOP
CA       DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA  ... NOP     &times; 2
A0 1D   LDY #29
88      DEY
88      DEY
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
A2 15    LDX #21
EA      NOP
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 24,503: Line 24,781:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A2 1E    LDX #30
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 1E    LDY #30
|<pre>A0 1E    LDY #30
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 1E    LDX #30
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #124
|<pre>A9      LDA #124
Line 24,546: Line 24,824:
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A2 1C    LDX #28
A0 1C    LDY #28
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A0 1C    LDY #28
A2 1C    LDX #28
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>A5 00    LDA $00
|<pre>A5 00    LDA $00
Line 24,710: Line 24,988:
!colspan="2"|38 bytes
!colspan="2"|38 bytes
|-
|-
|<pre>68  ... PLA      &times; 37
|<pre>68      PLA
48      PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 36</pre>||Clobbers A, S, and Z&N
|-
|-
!colspan="2"|40 bytes
!colspan="2"|40 bytes
Line 24,772: Line 25,051:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 3
A2 15   LDX #21
A0 1D   LDY #29
EA       NOP
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>EA   ... NOP     &times; 3
A2 1D    LDX #29
CA      DEX
CA      DEX
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA  ... NOP      &times; 2
A0 15    LDY #21
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 24,794: Line 25,071:
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>EA  ... NOP      &times; 2
A0 10   LDY #16
08      PHP
EA  ... NOP      &times; 2
A2 1C   LDX #28
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
A0 1C    LDY #28
88      DEY
88      DEY
D0 F9   BNE *-5
D0 FB   BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>EA  ... NOP      &times; 2
A2 10    LDX #16
EA  ... NOP      &times; 2
CA      DEX
D0 F9    BNE *-5
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA      NOP
38      SEC
38      SEC
A9 15   LDA #21
A9 1D   LDA #29
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 F8   BNE *-6</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,904: Line 25,180:
|-
|-
|<pre>68  ... PLA      &times; 38</pre>||Clobbers A, S, and Z&N
|<pre>68  ... PLA      &times; 38</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|41 bytes
|-
|<pre>EA      NOP
68      PLA
48      PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA      NOP ;first loop only
EA  ... NOP      &times; 33
10 DB    BPL *-35</pre>||Clobbers A, and Z&N
|-
|-
|}
|}
Line 25,126: Line 25,412:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68  ... PLA      &times; 37
68      PLA
48       PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 36</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|41 bytes
|-
|<pre>EA      NOP
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA  ... NOP      &times; 35
10 D9    BPL *-37</pre>||Clobbers A, and Z&N
|-
|-
|}
|}
Line 25,162: Line 25,457:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A4 00    LDY $00
A0 1E    LDY #30
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
Line 25,167: Line 25,467:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A4 00    LDY $00
A0 1E    LDY #30
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 25,210: Line 25,505:
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
08      PHP
08      PHP
A0 1C    LDY #28
A2 1C    LDX #28
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
08      PHP
08      PHP
A2 1C    LDX #28
A0 1C    LDY #28
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 25,260: Line 25,555:
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA   ... NOP      &times; 3
08      PHP
A0 1C    LDY #28
88      DEY
D0 FB    BNE *-3
28       PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA  ... NOP     &times; 3
08      PHP
08      PHP
A2 10   LDX #16
A2 1C   LDX #28
EA  ... NOP      &times; 2
CA      DEX
CA      DEX
D0 F9   BNE *-5
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA  ... NOP      &times; 3
08      PHP
A0 10    LDY #16
EA  ... NOP      &times; 2
88      DEY
D0 F9    BNE *-5
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
38      SEC
38      SEC
A9 15   LDA #21
A9 1D   LDA #29
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 F8   BNE *-6</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
Line 25,291: Line 25,583:
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>EA   ... NOP     &times; 2
18   ... CLC     &times; 2
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
00 00    BRK 0
Line 25,352: Line 25,644:
|<pre>EA      NOP
|<pre>EA      NOP
68  ... PLA      &times; 38</pre>||Clobbers A, S, and Z&N
68  ... PLA      &times; 38</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|41 bytes
|-
|<pre>68      PLA
48      PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA      NOP ;first loop only
EA  ... NOP      &times; 34
10 DA    BPL *-36</pre>||Clobbers A, and Z&N
|-
|-
|}
|}
Line 25,364: Line 25,665:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A0 16    LDY #22
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 16    LDX #22
|<pre>A2 16    LDX #22
Line 25,369: Line 25,675:
CA      DEX
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|<pre>A0 16    LDY #22
EA      NOP
88      DEY
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'
Line 25,395: Line 25,696:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 15    LDX #21
A0 15    LDY #21
EA      NOP
EA      NOP
CA       DEX
88       DEY
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 15    LDY #21
A2 15    LDX #21
EA      NOP
EA      NOP
88       DEY
CA       DEX
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 25,493: Line 25,794:
!colspan="2"|13 bytes
!colspan="2"|13 bytes
|-
|-
|<pre>18   ... CLC     &times; 2
|<pre>EA   ... NOP     &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 6
EA  ... NOP      &times; 6
Line 25,501: Line 25,802:
!colspan="2"|39 bytes
!colspan="2"|39 bytes
|-
|-
|<pre>68  ... PLA      &times; 38
|<pre>68      PLA
48       PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 37</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|41 bytes
|-
|<pre>A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA  ... NOP      &times; 36
10 D8    BPL *-38</pre>||Clobbers A, and Z&N
|-
|-
|}
|}
Line 25,510: Line 25,819:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A2 1F    LDX #31
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 1F    LDY #31
|<pre>A0 1F    LDY #31
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 1F    LDX #31
CA      DEX
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'
Line 25,661: Line 25,970:
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>EA   ... NOP     &times; 3
18   ... CLC     &times; 3
48      PHA
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
00 00    BRK 0
Line 25,736: Line 26,045:
|-
|-
|<pre>68  ... PLA      &times; 39</pre>||Clobbers A, S, and Z&N
|<pre>68  ... PLA      &times; 39</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|42 bytes
|-
|<pre>EA      NOP
68      PLA
48      PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA      NOP ;first loop only
EA  ... NOP      &times; 34
10 DA    BPL *-36</pre>||Clobbers A, and Z&N
|-
|-
|}
|}
Line 25,748: Line 26,067:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>68      PLA
A2 EA    LDX #234 ;hides 'NOP'
E8      INX
D0 FC    BNE *-2</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 25,754: Line 26,078:
D0 FC    BNE *-2</pre>||Clobbers A, Y, S, and Z&N
D0 FC    BNE *-2</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>68      PLA
!colspan="2"|7 bytes
A2 EA    LDX #234 ;hides 'NOP'
E8      INX
D0 FC    BNE *-2</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
|<pre>EA      NOP
A2 16    LDX #22
EA      NOP
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 25,766: Line 26,091:
88      DEY
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
A2 16    LDX #22
EA      NOP
CA      DEX
D0 FA    BNE *-4</pre>||Clobbers X, and Z&N
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 25,799: Line 26,118:
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>EA   ... NOP     &times; 2
08      PHP
08      PHP
A0 15   LDY #21
A0 1D   LDY #29
EA      NOP
88      DEY
88      DEY
D0 FA   BNE *-4
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     &times; 2
08      PHP
08      PHP
A2 15   LDX #21
A2 1D   LDX #29
EA      NOP
CA      DEX
CA      DEX
D0 FA   BNE *-4
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
Line 25,887: Line 26,204:
!colspan="2"|14 bytes
!colspan="2"|14 bytes
|-
|-
|<pre>18   ... CLC     &times; 3
|<pre>EA   ... NOP     &times; 3
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 6
EA  ... NOP      &times; 6
Line 25,896: Line 26,213:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
68  ... PLA      &times; 38
68      PLA
48       PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 37</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|42 bytes
|-
|<pre>EA      NOP
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA  ... NOP      &times; 36
10 D8    BPL *-38</pre>||Clobbers A, and Z&N
|-
|-
|}
|}
Line 25,910: Line 26,236:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A2 1F    LDX #31
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 25,915: Line 26,246:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
A2 1F    LDX #31
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 26,061: Line 26,387:
|<pre>EA      NOP
|<pre>EA      NOP
68  ... PLA      &times; 39</pre>||Clobbers A, S, and Z&N
68  ... PLA      &times; 39</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|42 bytes
|-
|<pre>68      PLA
48      PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA      NOP ;first loop only
EA  ... NOP      &times; 35
10 D9    BPL *-37</pre>||Clobbers A, and Z&N
|-
|-
|}
|}
Line 26,073: Line 26,408:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>48      PHA
A0 1F    LDY #31
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 26,078: Line 26,418:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>48      PHA
A0 1F    LDY #31
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 26,090: Line 26,425:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>A4 00    LDY $00
A0 1F    LDY #31
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A6 00    LDX $00
|<pre>A6 00    LDX $00
Line 26,095: Line 26,435:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A4 00    LDY $00
A0 1F    LDY #31
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
Line 26,138: Line 26,473:
20 xx xx JSR @rts12
20 xx xx JSR @rts12
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, and C; requires @zptemp, and @rts12; and writes in stack
D0 F8    BNE *-6</pre>||Clobbers A, Z&N, and C; requires @zptemp, and @rts12; and writes in stack
|-
|<pre>48  ... PHA      &times; 2
08      PHP
A2 1D    LDX #29
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 26,153: Line 26,481:
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      &times; 2
48  ... PHA      &times; 2
08      PHP
08      PHP
28      PLP
A2 1D    LDX #29
18      CLC
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
48  ... PHA      &times; 5
D0 F8    BNE *-6</pre>||Clobbers A, S, Z&N, and C; and writes in stack
D0 F8    BNE *-6</pre>||Clobbers A, S, Z&N, and C; and writes in stack
|-
|-
Line 26,183: Line 26,515:
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 3
08      PHP
A0 1D    LDY #29
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>EA  ... NOP      &times; 3
08      PHP
08      PHP
A2 15   LDX #21
A2 1D   LDX #29
EA      NOP
CA      DEX
CA      DEX
D0 FA   BNE *-4
D0 FB   BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA  ... NOP      &times; 2
08      PHP
A0 15    LDY #21
EA      NOP
88      DEY
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
!colspan="2"|11 bytes
!colspan="2"|11 bytes
Line 26,211: Line 26,541:
68      PLA</pre>||Clobbers Z&N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>EA   ... NOP     &times; 2
08      PHP
08      PHP
38      SEC
38      SEC
A9 15   LDA #21
A9 1D   LDA #29
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 F8   BNE *-6
D0 F9   BNE *-5
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 26,259: Line 26,588:
!colspan="2"|40 bytes
!colspan="2"|40 bytes
|-
|-
|<pre>68  ... PLA      &times; 39
|<pre>68      PLA
48       PHA</pre>||Clobbers A, S, and Z&N
48      PHA
68  ... PLA      &times; 38</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|42 bytes
|-
|<pre>A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA  ... NOP      &times; 37
10 D7    BPL *-39</pre>||Clobbers A, and Z&N
|-
|-
|}
|}
Line 26,313: Line 26,650:
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA       NOP
|<pre>EA   ... NOP     &times; 2
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
38      SEC ;first loop only
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, C, and V
D0 FC   BNE *-2</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 26,446: Line 26,782:
|-
|-
|<pre>68  ... PLA      &times; 40</pre>||Clobbers A, S, and Z&N
|<pre>68  ... PLA      &times; 40</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|43 bytes
|-
|<pre>EA      NOP
68      PLA
48      PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA      NOP ;first loop only
EA  ... NOP      &times; 35
10 D9    BPL *-37</pre>||Clobbers A, and Z&N
|-
|-
|}
|}
Line 26,513: Line 26,859:
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A2 1E    LDX #30
A0 1E    LDY #30
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A0 1E    LDY #30
A2 1E    LDX #30
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
Line 26,604: Line 26,950:
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>EA       NOP
|<pre>EA   ... NOP     &times; 2
8C      TXA
8C      TXA
48      PHA
48      PHA
A2 15   LDX #21
A2 1D   LDX #29
EA      NOP
CA      DEX
CA      DEX
D0 FA   BNE *-4
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,663: Line 27,008:
18      CLC
18      CLC
D0 F5    BNE *-9</pre>||Clobbers A, Z&N, and C
D0 F5    BNE *-9</pre>||Clobbers A, Z&N, and C
|-
!colspan="2"|41 bytes
|-
|<pre>EA      NOP
68      PLA
48      PHA
68  ... PLA      &times; 38</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|43 bytes
|-
|<pre>EA      NOP
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA      NOP ;first loop only
EA  ... NOP      &times; 37
10 D7    BPL *-39</pre>||Clobbers A, and Z&N
|-
|-
|}
|}
Line 26,761: Line 27,121:
18      CLC
18      CLC
D0 F5    BNE *-9</pre>||Clobbers A, Z&N, and C
D0 F5    BNE *-9</pre>||Clobbers A, Z&N, and C
|-
!colspan="2"|41 bytes
|-
|<pre>EA      NOP
68  ... PLA      &times; 40</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|43 bytes
|-
|<pre>68      PLA
48      PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA      NOP ;first loop only
EA  ... NOP      &times; 36
10 D8    BPL *-38</pre>||Clobbers A, and Z&N
|-
|-
|}
|}
Line 26,773: Line 27,147:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A2 20    LDX #32
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 26,778: Line 27,157:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>EA      NOP
A2 20    LDX #32
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 26,796: Line 27,170:
D0 FC    BNE *-2
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
A2 1F    LDX #31
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 26,802: Line 27,182:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 1F    LDX #31
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 26,919: Line 27,293:
76 00    ROR $00,X
76 00    ROR $00,X
90 F5    BCC *-9</pre>||Clobbers A, Z&N, and C
90 F5    BCC *-9</pre>||Clobbers A, Z&N, and C
|-
!colspan="2"|41 bytes
|-
|<pre>68      PLA
48      PHA
68  ... PLA      &times; 39</pre>||Clobbers A, S, and Z&N
|-
!colspan="2"|43 bytes
|-
|<pre>A9 09    LDA #$09 ;hides 'ORA #$EA'
EA      NOP ;first loop only
EA  ... NOP      &times; 38
10 D6    BPL *-40</pre>||Clobbers A, and Z&N
|-
|-
|}
|}
Line 26,931: Line 27,318:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>48      PHA
A0 20    LDY #32
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 26,936: Line 27,328:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>48      PHA
A0 20    LDY #32
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 26,986: Line 27,373:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 0D    LDY #13
A2 0D    LDX #13
08      PHP
08      PHP
28      PLP
28      PLP
88       DEY
CA       DEX
D0 F9    BNE *-5
D0 F9    BNE *-5
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 0D    LDX #13
A0 0D    LDY #13
08      PHP
08      PHP
28      PLP
28      PLP
CA       DEX
88       DEY
D0 F9    BNE *-5
D0 F9    BNE *-5
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 27,058: Line 27,445:
18      CLC
18      CLC
D0 F5    BNE *-9</pre>||Clobbers A, Z&N, and C
D0 F5    BNE *-9</pre>||Clobbers A, Z&N, and C
|-
!colspan="2"|41 bytes
|-
|<pre>68  ... PLA      &times; 41</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 27,087: Line 27,478:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>EA  ... NOP      &times; 2
A0 20    LDY #32
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 27,092: Line 27,488:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA  ... NOP      &times; 2
A0 20    LDY #32
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 27,104: Line 27,495:
B0 FB    BCS *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
B0 FB    BCS *-3</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>EA   ... NOP     &times; 2
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
18      CLC ;first loop only
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
D0 FC   BNE *-2</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 27,131: Line 27,521:
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A2 1F    LDX #31
A0 1F    LDY #31
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A0 1F    LDY #31
A2 1F    LDX #31
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 27,203: Line 27,593:
76 00    ROR $00,X
76 00    ROR $00,X
90 F5    BCC *-9</pre>||Clobbers A, Z&N, and C
90 F5    BCC *-9</pre>||Clobbers A, Z&N, and C
|-
!colspan="2"|42 bytes
|-
|<pre>EA      NOP
68      PLA
48      PHA
68  ... PLA      &times; 39</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 27,247: Line 27,644:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA       NOP
|<pre>EA   ... NOP     &times; 2
18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
B0 F9   BCS *-5</pre>||Clobbers A, Z&N, C, and V
B0 FB   BCS *-3</pre>||Clobbers A, Z&N, C, and V
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 27,263: Line 27,659:
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A0 1F    LDY #31
A2 1F    LDX #31
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A2 1F    LDX #31
A0 1F    LDY #31
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 27,289: Line 27,685:
D0 FC    BNE *-2
D0 FC    BNE *-2
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|<pre>08      PHP
A6 00    LDX $00
A2 1F    LDX #31
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 27,296: Line 27,699:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A6 00    LDX $00
A2 1F    LDX #31
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 27,362: Line 27,758:
!colspan="2"|13 bytes
!colspan="2"|13 bytes
|-
|-
|<pre>EA       NOP
|<pre>EA   ... NOP     &times; 2
08      PHP
08      PHP
48      PHA
48      PHA
38      SEC
38      SEC
A9 15   LDA #21
A9 1D   LDA #29
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 F8   BNE *-6
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 27,382: Line 27,777:
18      CLC
18      CLC
D0 F7    BNE *-7</pre>||Clobbers A, Z&N, and C
D0 F7    BNE *-7</pre>||Clobbers A, Z&N, and C
|-
!colspan="2"|42 bytes
|-
|<pre>EA      NOP
68  ... PLA      &times; 41</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 27,389: Line 27,789:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A2 18    LDX #24 ;hides 'CLC'
CA      DEX
D0 FC    BNE *-2</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 18    LDY #24 ;hides 'CLC'
|<pre>A0 18    LDY #24 ;hides 'CLC'
88      DEY
88      DEY
D0 FC    BNE *-2</pre>||Clobbers Y, and Z&N
D0 FC    BNE *-2</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 18    LDX #24 ;hides 'CLC'
CA      DEX
D0 FC    BNE *-2</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A9      LDA #140
|<pre>A9      LDA #140
Line 27,455: Line 27,855:
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 3
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
18      CLC ;first loop only
D0 FA   BNE *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
D0 FC   BNE *-2</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
Line 27,468: Line 27,867:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>EA       NOP
|<pre>EA   ... NOP     &times; 2
08      PHP
08      PHP
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
38      SEC ;first loop only
D0 FA   BNE *-4
D0 FC   BNE *-2
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
Line 27,490: Line 27,888:
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>EA   ... NOP     &times; 2
48      PHA
48      PHA
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
38      SEC ;first loop only
D0 FA   BNE *-4
D0 FC   BNE *-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 27,528: Line 27,925:
18      CLC
18      CLC
D0 F5    BNE *-9</pre>||Clobbers A, Z&N, and C
D0 F5    BNE *-9</pre>||Clobbers A, Z&N, and C
|-
!colspan="2"|42 bytes
|-
|<pre>68      PLA
48      PHA
68  ... PLA      &times; 40</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 27,552: Line 27,955:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>08      PHP
A0 20    LDY #32
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 27,558: Line 27,967:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>08      PHP
A0 20    LDY #32
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 27,700: Line 28,103:
!colspan="2"|13 bytes
!colspan="2"|13 bytes
|-
|-
|<pre>EA       NOP
|<pre>EA   ... NOP     &times; 2
48      PHA
48      PHA
8C      TXA
8C      TXA
48      PHA
48      PHA
A2 15   LDX #21
A2 1D   LDX #29
EA      NOP
CA      DEX
CA      DEX
D0 FA   BNE *-4
D0 FB   BNE *-3
68      PLA
68      PLA
AA      TAX
AA      TAX
Line 27,733: Line 28,135:
!colspan="2"|14 bytes
!colspan="2"|14 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 3
08      PHP
08      PHP
48      PHA
48      PHA
38      SEC
38      SEC
A9 15   LDA #21
A9 1D   LDA #29
EA      NOP
E9 01    SBC #1
E9 01    SBC #1
D0 F8   BNE *-6
D0 F9   BNE *-5
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 27,754: Line 28,155:
18      CLC
18      CLC
D0 F7    BNE *-7</pre>||Clobbers A, Z&N, and C
D0 F7    BNE *-7</pre>||Clobbers A, Z&N, and C
|-
!colspan="2"|42 bytes
|-
|<pre>68  ... PLA      &times; 42</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 27,863: Line 28,268:
18      CLC
18      CLC
D0 F5    BNE *-9</pre>||Clobbers A, Z&N, and C
D0 F5    BNE *-9</pre>||Clobbers A, Z&N, and C
|-
!colspan="2"|43 bytes
|-
|<pre>EA      NOP
68      PLA
48      PHA
68  ... PLA      &times; 40</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 27,915: Line 28,327:
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A2 20    LDX #32
A0 20    LDY #32
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A0 20    LDY #32
A2 20    LDX #32
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 27,970: Line 28,382:
18      CLC
18      CLC
D0 F5    BNE *-9</pre>||Clobbers A, Z&N, and C
D0 F5    BNE *-9</pre>||Clobbers A, Z&N, and C
|-
!colspan="2"|43 bytes
|-
|<pre>EA      NOP
68  ... PLA      &times; 42</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 28,103: Line 28,520:
!colspan="2"|14 bytes
!colspan="2"|14 bytes
|-
|-
|<pre>18   ... CLC     &times; 2
|<pre>EA   ... NOP     &times; 2
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 7
EA  ... NOP      &times; 7
18      CLC
18      CLC
D0 F5    BNE *-9</pre>||Clobbers A, Z&N, and C
D0 F5    BNE *-9</pre>||Clobbers A, Z&N, and C
|-
!colspan="2"|43 bytes
|-
|<pre>68      PLA
48      PHA
68  ... PLA      &times; 41</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 28,120: Line 28,543:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>A0 13    LDY #19
68      PLA
88      DEY
D0 FA    BNE *-4</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>A2 13    LDX #19
|<pre>A2 13    LDX #19
Line 28,126: Line 28,554:
D0 FA    BNE *-4</pre>||Clobbers A, X, S, and Z&N
D0 FA    BNE *-4</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>A0 13    LDY #19
!colspan="2"|7 bytes
68      PLA
88      DEY
D0 FA    BNE *-4</pre>||Clobbers A, Y, S, and Z&N
|-
|-
!colspan="2"|7 bytes
|<pre>A2 13    LDX #19
EA  ... NOP      &times; 2
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N
|-
|-
|<pre>A0 13    LDY #19
|<pre>A0 13    LDY #19
Line 28,137: Line 28,565:
88      DEY
88      DEY
D0 F9    BNE *-5</pre>||Clobbers Y, and Z&N
D0 F9    BNE *-5</pre>||Clobbers Y, and Z&N
|-
|<pre>A2 13    LDX #19
EA  ... NOP      &times; 2
CA      DEX
D0 F9    BNE *-5</pre>||Clobbers X, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 28,213: Line 28,636:
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>EA   ... NOP     &times; 2
08      PHP
08      PHP
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
18      CLC ;first loop only
D0 FA   BNE *-4
D0 FC   BNE *-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>EA       NOP
|<pre>EA   ... NOP     &times; 2
48      PHA
48      PHA
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
18      CLC ;first loop only
D0 FA   BNE *-4
D0 FC   BNE *-2
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
Line 28,263: Line 28,684:
18      CLC
18      CLC
D0 F5    BNE *-9</pre>||Clobbers A, Z&N, and C
D0 F5    BNE *-9</pre>||Clobbers A, Z&N, and C
|-
!colspan="2"|43 bytes
|-
|<pre>68  ... PLA      &times; 43</pre>||Clobbers A, S, and Z&N
|-
|-
|}
|}
Line 28,363: Line 28,788:
!colspan="2"|10 bytes
!colspan="2"|10 bytes
|-
|-
|<pre>EA       NOP
|<pre>EA   ... NOP     &times; 2
08      PHP
08      PHP
18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
B0 F9   BCS *-5
B0 FB   BCS *-3
28      PLP</pre>||Clobbers A; and writes in stack
28      PLP</pre>||Clobbers A; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>EA   ... NOP     &times; 2
48      PHA
48      PHA
18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
B0 F9   BCS *-5
B0 FB   BCS *-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 28,412: Line 28,835:
!colspan="2"|15 bytes
!colspan="2"|15 bytes
|-
|-
|<pre>18   ... CLC     &times; 3
|<pre>EA   ... NOP     &times; 3
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
EA  ... NOP      &times; 7
EA  ... NOP      &times; 7
Line 28,577: Line 29,000:
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
68      PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 3
08      PHP
08      PHP
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
18      CLC ;first loop only
D0 FA   BNE *-4
D0 FC   BNE *-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>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 3
48      PHA
48      PHA
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
18      CLC ;first loop only
D0 FA   BNE *-4
D0 FC   BNE *-2
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
|-
|-
Line 28,602: Line 29,023:
!colspan="2"|11 bytes
!colspan="2"|11 bytes
|-
|-
|<pre>EA       NOP
|<pre>EA   ... NOP     &times; 2
08      PHP
08      PHP
48      PHA
48      PHA
18      CLC
A9 69    LDA #$69 ;hides 'ADC #$38'
A9 69    LDA #$69 ;hides 'ADC #$38'
38      SEC ;first loop only
38      SEC ;first loop only
D0 FA   BNE *-4
D0 FC   BNE *-2
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 28,632: Line 29,052:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>68      PLA
A2 22    LDX #34
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 28,637: Line 29,062:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|<pre>68      PLA
A2 22    LDX #34
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 28,669: Line 29,089:
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A0 21    LDY #33
A2 21    LDX #33
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A2 21    LDX #33
A0 21    LDY #33
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
Line 28,808: Line 29,228:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 18    LDX #24
A0 18    LDY #24
EA      NOP
EA      NOP
CA       DEX
88       DEY
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 18    LDY #24
A2 18    LDX #24
EA      NOP
EA      NOP
88       DEY
CA       DEX
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 28,982: Line 29,402:
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>A0 10    LDY #16
|<pre>EA  ... NOP      &times; 3
EA  ... NOP      &times; 3
A0 22    LDY #34
88      DEY
88      DEY
D0 F8   BNE *-6</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
Line 29,099: Line 29,519:
|-
|-
!colspan="2"|6 bytes
!colspan="2"|6 bytes
|-
|<pre>EA      NOP
A0 23    LDY #35
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 29,104: Line 29,529:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA      NOP
A0 23    LDY #35
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 22    LDY #34
A2 22    LDX #34
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 22    LDX #34
A0 22    LDY #34
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 29,141: Line 29,561:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>98       TYA
|<pre>8C       TXA
48      PHA
48      PHA
A0 18    LDY #24 ;hides 'CLC'
A2 18    LDX #24 ;hides 'CLC'
88       DEY
CA       DEX
D0 FC    BNE *-2
D0 FC    BNE *-2
68      PLA
68      PLA
A8       TAY</pre>||Clobbers A, and Z&N; and writes in stack
AA       TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 29,215: Line 29,635:
|-
|-
!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'
Line 29,221: Line 29,646:
D0 FB    BNE *-3</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'
CA      DEX ;first loop only
E8  ... INX      &times; 2
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, Z&N, and D
D0 FB    BNE *-3</pre>||Clobbers A, X, and Z&N
|-
|-
|<pre>A0 D8    LDY #216 ;hides 'CLD'
|<pre>A0 D8    LDY #216 ;hides 'CLD'
C8  ... INY      &times; 2
C8  ... INY      &times; 2
D0 FB    BNE *-3</pre>||Clobbers Y, Z&N, and D
D0 FB    BNE *-3</pre>||Clobbers Y, Z&N, and D
|-
|<pre>A2 D8    LDX #216 ;hides 'CLD'
E8  ... INX      &times; 2
D0 FB    BNE *-3</pre>||Clobbers X, Z&N, and D
|-
|-
|<pre>A0 88    LDY #136 ;hides 'DEY'
|<pre>A0 88    LDY #136 ;hides 'DEY'
Line 29,247: Line 29,667:
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|<pre>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'
Line 29,252: Line 29,677:
88      DEY
88      DEY
D0 FB    BNE *-3</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'
EA      NOP
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
Line 29,303: Line 29,723:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 13    LDX #19
A0 13    LDY #19
EA  ... NOP      &times; 2
EA  ... NOP      &times; 2
CA       DEX
88       DEY
D0 F9    BNE *-5
D0 F9    BNE *-5
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 13    LDY #19
A2 13    LDX #19
EA  ... NOP      &times; 2
EA  ... NOP      &times; 2
88       DEY
CA       DEX
D0 F9    BNE *-5
D0 F9    BNE *-5
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 29,405: Line 29,825:
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>EA   ... NOP     &times; 2
08      PHP
08      PHP
48      PHA
48      PHA
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
18      CLC ;first loop only
D0 FA   BNE *-4
D0 FC   BNE *-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 29,439: Line 29,858:
!colspan="2"|15 bytes
!colspan="2"|15 bytes
|-
|-
|<pre>18   ... CLC     &times; 3
|<pre>EA   ... NOP     &times; 2
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
36 00    ROL $00,X \ &times; 2
36 00    ROL $00,X \ &times; 2
Line 29,468: Line 29,888:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>EA  ... NOP      &times; 2
A2 23    LDX #35
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 29,473: Line 29,898:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>EA  ... NOP      &times; 2
A2 23    LDX #35
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 29,499: Line 29,919:
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A0 22    LDY #34
A2 22    LDX #34
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
08      PHP
08      PHP
A2 22    LDX #34
A0 22    LDY #34
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 29,563: Line 29,983:
!colspan="2"|12 bytes
!colspan="2"|12 bytes
|-
|-
|<pre>EA       NOP
|<pre>EA   ... NOP     &times; 2
08      PHP
08      PHP
48      PHA
48      PHA
18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
EA      NOP
EA      NOP
B0 F9   BCS *-5
B0 FB   BCS *-3
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 29,599: Line 30,018:
{| class="wikitable testtable"
{| class="wikitable testtable"
!colspan="2"|5 bytes
!colspan="2"|5 bytes
|-
|<pre>A0 24    LDY #36
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A2 24    LDX #36
|<pre>A2 24    LDX #36
CA      DEX
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>A0 24    LDY #36
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>A9      LDA #154
|<pre>A9      LDA #154
Line 29,783: Line 30,202:
28      PLP</pre>||Clobbers S; and writes in stack
28      PLP</pre>||Clobbers S; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 3
08      PHP
08      PHP
48      PHA
48      PHA
18      CLC
A9 EB    LDA #$EB ;hides 'SBC #$18'
A9 EB    LDA #$EB ;hides 'SBC #$18'
18      CLC ;first loop only
18      CLC ;first loop only
D0 FA   BNE *-4
D0 FC   BNE *-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 29,795: Line 30,213:
!colspan="2"|13 bytes
!colspan="2"|13 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>08      PHP
08      PHP
28      PLP
08      PHP
48      PHA
48      PHA
A9 69   LDA #$69 ;hides 'ADC #$38'
A9 0A   LDA #$0A ;hides 'ASL A'
38       SEC ;first loop only
08       PHP      \ &times; 2
D0 FC   BNE *-2
28      PLP      /
18      CLC
D0 F8   BNE *-6
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
Line 29,834: Line 30,251:
!colspan="2"|16 bytes
!colspan="2"|16 bytes
|-
|-
|<pre>18   ... CLC     &times; 4
|<pre>EA   ... NOP     &times; 3
18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
36 00    ROL $00,X \ &times; 2
36 00    ROL $00,X \ &times; 2
Line 29,861: Line 30,279:
C8      INY
C8      INY
D0 FA    BNE *-4</pre>||Clobbers Y, Z&N, and C; and requires @zptemp
D0 FA    BNE *-4</pre>||Clobbers Y, Z&N, and C; and requires @zptemp
|-
|<pre>48  ... PHA      &times; 2
A0 23    LDY #35
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 29,867: Line 30,290:
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
D0 FB    BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack
|-
|-
|<pre>48  ... PHA      &times; 2
|<pre>EA      NOP
A0 23    LDY #35
68      PLA
88       DEY
A2 23    LDX #35
D0 FB    BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack
CA       DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 29,877: Line 30,301:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|<pre>EA      NOP
68      PLA
A2 23    LDX #35
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 29,895: Line 30,313:
|-
|-
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|<pre>EA  ... NOP      &times; 3
A2 23    LDX #35
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
Line 29,900: Line 30,323:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>EA  ... NOP      &times; 3
A2 23    LDX #35
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers X, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 30,283: Line 30,701:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>08      PHP
A2 16    LDX #22
24 00    BIT $00
CA      DEX
D0 F9    BNE *-5
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 30,290: Line 30,715:
D0 F9    BNE *-5
D0 F9    BNE *-5
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 16    LDX #22
24 00    BIT $00
CA      DEX
D0 F9    BNE *-5
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 30,455: Line 30,873:
88      DEY
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, S, and Z&N; and writes in stack
D0 FA    BNE *-4</pre>||Clobbers Y, S, and Z&N; and writes in stack
|-
|<pre>68      PLA
A2 24    LDX #36
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>68      PLA
|<pre>68      PLA
Line 30,460: Line 30,883:
88      DEY
88      DEY
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
D0 FB    BNE *-3</pre>||Clobbers A, Y, S, and Z&N
|-
|<pre>68      PLA
A2 24    LDX #36
CA      DEX
D0 FB    BNE *-3</pre>||Clobbers A, X, S, and Z&N
|-
|-
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
|<pre>A9 E9    LDA #$E9 ;hides 'SBC #$0A'
Line 30,473: Line 30,891:
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|-
|<pre>EA       NOP
|<pre>EA   ... NOP     &times; 2
A0 1A   LDY #26
A0 24   LDY #36
EA      NOP
88      DEY
88      DEY
D0 FA   BNE *-4</pre>||Clobbers Y, and Z&N
D0 FB   BNE *-3</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>EA       NOP
|<pre>EA   ... NOP     &times; 2
A2 1A   LDX #26
A2 24   LDX #36
EA      NOP
CA      DEX
CA      DEX
D0 FA   BNE *-4</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'
Line 30,553: Line 30,969:
|-
|-
|<pre>48      PHA
|<pre>48      PHA
98       TYA
8C       TXA
48      PHA
48      PHA
A0 18    LDY #24 ;hides 'CLC'
A2 18    LDX #24 ;hides 'CLC'
88       DEY
CA       DEX
D0 FC    BNE *-2
D0 FC    BNE *-2
68      PLA
68      PLA
A8       TAY
AA       TAX
68      PLA</pre>||Clobbers Z&N; and writes in stack
68      PLA</pre>||Clobbers Z&N; and writes in stack
|-
|-
Line 30,802: Line 31,218:
30 FC    BMI *-2</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
|<pre>48  ... PHA      &times; 2
A2 17   LDX #23
A2 24   LDX #36
48      PHA
CA      DEX
CA      DEX
D0 FA   BNE *-4</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>48  ... PHA      &times; 2
A0 17   LDY #23
A0 24   LDY #36
48      PHA
88      DEY
88      DEY
D0 FA   BNE *-4</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
Line 30,850: Line 31,264:
!colspan="2"|8 bytes
!colspan="2"|8 bytes
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 3
A2 1A   LDX #26
A0 24   LDY #36
EA       NOP
88      DEY
D0 FB    BNE *-3</pre>||Clobbers Y, and Z&N
|-
|<pre>EA   ... NOP     &times; 3
A2 24    LDX #36
CA      DEX
CA      DEX
D0 FA   BNE *-4</pre>||Clobbers X, and Z&N
D0 FB   BNE *-3</pre>||Clobbers X, and Z&N
|-
|<pre>EA  ... NOP      &times; 2
A0 1A    LDY #26
EA      NOP
88      DEY
D0 FA    BNE *-4</pre>||Clobbers Y, and Z&N
|-
|-
|<pre>18      CLC
|<pre>18      CLC
Line 30,882: Line 31,294:
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|-
|<pre>98       TYA
|<pre>8C       TXA
48      PHA
48      PHA
A0 23    LDY #35
A2 23    LDX #35
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA
68      PLA
A8       TAY</pre>||Clobbers A, and Z&N; and writes in stack
AA       TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
Line 30,977: Line 31,389:
|-
|-
!colspan="2"|7 bytes
!colspan="2"|7 bytes
|-
|<pre>08      PHP
A2 24    LDX #36
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 30,983: Line 31,401:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A2 24    LDX #36
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>38      SEC
|<pre>38      SEC
Line 31,212: Line 31,624:
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
28      PLP</pre>||Clobbers X; requires @zptemp; and writes in stack
|-
|-
|<pre>EA       NOP
|<pre>EA   ... NOP     &times; 2
18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
85 xx    STA @zptemp
85 xx    STA @zptemp
B0 F8   BCS *-6</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>48  ... PHA      &times; 2
|<pre>48  ... PHA      &times; 2
Line 31,240: Line 31,651:
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
D0 F9    BNE *-5</pre>||Clobbers A, S, Z&N, C, and V
|-
|-
|<pre>EA       NOP
|<pre>EA   ... NOP     &times; 2
18      CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A      ASL A ;first loop only
0A      ASL A ;first loop only
04 00    NOP $00
04 00    NOP $00
B0 F8   BCS *-6</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
B0 FA   BCS *-4</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 31,257: Line 31,667:
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
98       TYA
8C       TXA
48      PHA
48      PHA
A2 23    LDX #35
CA      DEX
D0 FB    BNE *-3
68      PLA
AA      TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|<pre>EA  ... NOP      &times; 3
08      PHP
A0 23    LDY #35
A0 23    LDY #35
88      DEY
88      DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
68       PLA
28       PLP</pre>||Clobbers Y; and writes in stack
A8      TAY</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>EA  ... NOP      &times; 3
|<pre>EA  ... NOP      &times; 3
Line 31,271: Line 31,688:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|<pre>EA  ... NOP      &times; 3
08      PHP
A0 23    LDY #35
88      DEY
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 31,364: Line 31,774:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 1A    LDY #26
A2 1A    LDX #26
EA      NOP
EA      NOP
88       DEY
CA       DEX
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 1A    LDX #26
A0 1A    LDY #26
EA      NOP
EA      NOP
CA       DEX
88       DEY
D0 FA    BNE *-4
D0 FA    BNE *-4
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>EA      NOP
|<pre>EA      NOP
Line 31,562: Line 31,972:
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A0 24    LDY #36
A2 24    LDX #36
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y, and S; and writes in stack
28      PLP</pre>||Clobbers X, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
08      PHP
08      PHP
A2 24    LDX #36
A0 24    LDY #36
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X, and S; and writes in stack
28      PLP</pre>||Clobbers Y, and S; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 31,592: Line 32,002:
|-
|-
!colspan="2"|9 bytes
!colspan="2"|9 bytes
|-
|<pre>08      PHP
A6 00    LDX $00
A2 24    LDX #36
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 31,599: Line 32,016:
D0 FB    BNE *-3
D0 FB    BNE *-3
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|<pre>08      PHP
A6 00    LDX $00
A2 24    LDX #36
CA      DEX
D0 FB    BNE *-3
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
|<pre>A9 0A    LDA #$0A ;hides 'ASL A'
Line 31,654: Line 32,064:
|-
|-
|<pre>68      PLA
|<pre>68      PLA
98       TYA
8C       TXA
48      PHA
48      PHA
A0 23    LDY #35
A2 23    LDX #35
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA
68      PLA
A8       TAY</pre>||Clobbers A, S, and Z&N; and writes in stack
AA       TAX</pre>||Clobbers A, S, and Z&N; and writes in stack
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 31,680: Line 32,090:
|-
|-
|<pre>EA  ... NOP      &times; 2
|<pre>EA  ... NOP      &times; 2
98       TYA
8C       TXA
48      PHA
48      PHA
A0 23    LDY #35
A2 23    LDX #35
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
68      PLA
68      PLA
A8       TAY</pre>||Clobbers A, and Z&N; and writes in stack
AA       TAX</pre>||Clobbers A, and Z&N; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 31,844: Line 32,254:
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A2 17    LDX #23
A0 17    LDY #23
C5 00    CMP $00
C5 00    CMP $00
CA       DEX
88       DEY
D0 F9    BNE *-5
D0 F9    BNE *-5
28      PLP</pre>||Clobbers X; and writes in stack
28      PLP</pre>||Clobbers Y; and writes in stack
|-
|-
|<pre>08      PHP
|<pre>08      PHP
A0 17    LDY #23
A2 17    LDX #23
C5 00    CMP $00
C5 00    CMP $00
88       DEY
CA       DEX
D0 F9    BNE *-5
D0 F9    BNE *-5
28      PLP</pre>||Clobbers Y; and writes in stack
28      PLP</pre>||Clobbers X; and writes in stack
|-
|-
|<pre>A0 E0    LDY #224 ;hides 'CPX #imm'
|<pre>A0 E0    LDY #224 ;hides 'CPX #imm'
Line 31,880: Line 32,290:
B0 FA    BCS *-4
B0 FA    BCS *-4
68      PLA</pre>||Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
68      PLA</pre>||Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
|-
|<pre>A0 0D    LDY #13 ;hides 'ORA abs'
AD 00 68 LDA $6800 ;hides 'PLA'
EA      NOP
88      DEY
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'
Line 31,886: Line 32,302:
CA      DEX
CA      DEX
D0 F8    BNE *-6</pre>||Clobbers A, X, S, and Z&N
D0 F8    BNE *-6</pre>||Clobbers A, X, S, and Z&N
|-
|<pre>A0 0D    LDY #13 ;hides 'ORA abs'
AD 00 68 LDA $6800 ;hides 'PLA'
EA      NOP
88      DEY
D0 F8    BNE *-6</pre>||Clobbers A, Y, S, and Z&N
|-
|-
|<pre>08      PHP
|<pre>08      PHP
Line 31,900: Line 32,310:
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
28      PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack
|-
|-
|<pre>A2 0C    LDX #12 ;hides 'NOP abs'
|<pre>A0 0C    LDY #12 ;hides 'NOP abs'
A5 00    LDA $0
A5 00    LDA $0
68      PLA
68      PLA
48      PHA
48      PHA
CA       DEX
88       DEY
D0 F8    BNE *-6</pre>||Clobbers A, X, and Z&N; and requires support for unofficial opcodes
D0 F8    BNE *-6</pre>||Clobbers A, Y, and Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>A0 0C    LDY #12 ;hides 'NOP abs'
|<pre>A2 0C    LDX #12 ;hides 'NOP abs'
A5 00    LDA $0
A5 00    LDA $0
68      PLA
68      PLA
48      PHA
48      PHA
88       DEY
CA       DEX
D0 F8    BNE *-6</pre>||Clobbers A, Y, and Z&N; and requires support for unofficial opcodes
D0 F8    BNE *-6</pre>||Clobbers A, X, and Z&N; and requires support for unofficial opcodes
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 31,947: Line 32,357:
|<pre>18      CLC
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
A2 25    LDX #37
A0 25    LDY #37
CA       DEX
88       DEY
D0 FB    BNE *-3
D0 FB    BNE *-3
B0 F8    BCS *-6</pre>||Clobbers A, X, Z&N, and C
B0 F8    BCS *-6</pre>||Clobbers A, Y, Z&N, and C
|-
|-
|<pre>18      CLC
|<pre>18      CLC
A9 0A    LDA #$0A ;hides 'ASL A'
A9 0A    LDA #$0A ;hides 'ASL A'
A0 25    LDY #37
A2 25    LDX #37
88       DEY
CA       DEX
D0 FB    BNE *-3
D0 FB    BNE *-3
B0 F8    BCS *-6</pre>||Clobbers A, Y, Z&N, and C
B0 F8    BCS *-6</pre>||Clobbers A, X, Z&N, and C
|-
|-
|<pre>48      PHA
|<pre>48      PHA
Line 31,967: Line 32,377:
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>A0 0C    LDY #12 ;hides 'NOP abs'
|<pre>A2 0C    LDX #12 ;hides 'NOP abs'
44 00    NOP $0
44 00    NOP $0
EA      NOP
EA      NOP
E6 xx    INC @zptemp
E6 xx    INC @zptemp
88       DEY
CA       DEX
D0 F7    BNE *-7</pre>||Clobbers Y, 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>A2 0C    LDX #12 ;hides 'NOP abs'
|<pre>A0 0C    LDY #12 ;hides 'NOP abs'
44 00    NOP $0
44 00    NOP $0
EA      NOP
EA      NOP
E6 xx    INC @zptemp
E6 xx    INC @zptemp
CA       DEX
88       DEY
D0 F7    BNE *-7</pre>||Clobbers X, 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 31,991: Line 32,401:
68      PLA
68      PLA
28      PLP</pre>||Writes in stack
28      PLP</pre>||Writes in stack
|-
|<pre>A2 0C    LDX #12 ;hides 'NOP abs'
44 00    NOP $0
04 00    NOP $00
EA  ... NOP      &times; 2
CA      DEX
D0 F6    BNE *-8</pre>||Clobbers 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'
44 00    NOP $0
44 00    NOP $0
04 00    NOP $00
EA  ... NOP      &times; 2
EA  ... NOP      &times; 2
04 00    NOP $00
88      DEY
88      DEY
D0 F6    BNE *-8</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'
44 00    NOP $0
EA  ... NOP      &times; 2
04 00    NOP $00
CA      DEX
D0 F6    BNE *-8</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes
|-
|-
!colspan="2"|12 bytes
!colspan="2"|12 bytes

Revision as of 11:24, 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      × 2
No requirements
  • zp-indexed modes such as LDA $00,X also do 4 cycles, but having side effects, these two-byte instructions are inferior to a simple 2 × NOP.
  • There is also an unofficial opcode NOP $00,X (34 00), but there is no reason to use this instruction when the official equivalent has the same performance.


5 cycles

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


7 cycles

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


8 cycles

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


9 cycles

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


10 cycles

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


11 cycles

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


12 cycles

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


13 cycles

2 bytes
00 00    BRK 0
Requires dummy interrupt handler; and writes in stack
4 bytes
48   ... PHA      × 2
08       PHP
28       PLP
Clobbers S; and writes in stack
EA       NOP
68   ... PLA      × 2
48       PHA
Clobbers A, S, and Z&N
5 bytes
EA   ... NOP      × 3
08       PHP
28       PLP
Writes in stack
EA   ... NOP      × 3
68       PLA
48       PHA
Clobbers A, and Z&N
6 bytes
A6 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
18       CLC
90 00    BCC *+2
EA   ... NOP      × 4
Clobbers C
B8       CLV
50 00    BVC *+2
EA   ... NOP      × 4
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 5
Requires @zptemp
04 00    NOP $00
EA   ... NOP      × 5
Requires support for unofficial opcodes
8 bytes
4C xx xx JMP *+3
EA   ... NOP      × 5
Not relocatable code


14 cycles

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


15 cycles

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


16 cycles

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


17 cycles

3 bytes
68       PLA
00 00    BRK 0
Clobbers A, S, and Z&N; requires dummy interrupt handler; and writes in stack
4 bytes
EA       NOP
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
EA   ... NOP      × 2
00 00    BRK 0
Requires dummy interrupt handler; and writes in stack
48       PHA
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
5 bytes
A5 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       \ × 2
28       PLP       /
Clobbers S; and writes in stack
EA       NOP
68       PLA
48       PHA
68   ... PLA      × 2
Clobbers A, S, and Z&N
04 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
18       CLC
90 00    BCC *+2
EA   ... NOP      × 6
Clobbers C
B8       CLV
50 00    BVC *+2
EA   ... NOP      × 6
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 7
Requires @zptemp
04 00    NOP $00
EA   ... NOP      × 7
Requires support for unofficial opcodes
10 bytes
4C xx xx JMP *+3
EA   ... NOP      × 7
Not relocatable code


18 cycles

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


19 cycles

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


20 cycles

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


21 cycles

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


22 cycles

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


23 cycles

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


24 cycles

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


25 cycles

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


26 cycles

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


27 cycles

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


28 cycles

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


29 cycles

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


30 cycles

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


31 cycles

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


32 cycles

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


33 cycles

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


34 cycles

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


35 cycles

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


36 cycles

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


37 cycles

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


38 cycles

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


39 cycles

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


40 cycles

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


41 cycles

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


42 cycles

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


43 cycles

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


44 cycles

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


45 cycles

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


46 cycles

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


47 cycles

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


48 cycles

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


49 cycles

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


50 cycles

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


51 cycles

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


52 cycles

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


53 cycles

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


54 cycles

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


55 cycles

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


56 cycles

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


57 cycles

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


58 cycles

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


59 cycles

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


60 cycles

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


61 cycles

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


62 cycles

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


63 cycles

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


64 cycles

5 bytes
A9       LDA #37
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A2 09    LDX #9
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
A0 09    LDY #9
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
7 bytes
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
EA   ... NOP      × 2
B0 FA    BCS *-4
Clobbers A, Z&N, C, and V
A9 0A    LDA #$0A ;hides 'ASL A'
48   ... PHA      × 2
18       CLC
10 FA    BPL *-4
Clobbers A, S, Z&N, and C; and writes in stack
08       PHP
A9       LDA #30
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #30
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
28       PLP
Clobbers A; and writes in stack
08       PHP
A0 08    LDY #8
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 08    LDX #8
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
68       PLA
Clobbers Z&N, and C; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 3
18       CLC
10 F9    BPL *-5
Clobbers A, Z&N, and C
9 bytes
08       PHP
48       PHA
A9       LDA #23
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
EA       NOP
B0 FB    BCS *-3
68       PLA
28       PLP
Writes in stack
16 bytes
68   ... PLA      × 16
Clobbers A, S, and Z&N
19 bytes
EA       NOP
68       PLA
48       PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 11
10 F1    BPL *-13
Clobbers A, and Z&N
22 bytes
EA   ... NOP      × 2
36 00    ROL $00,X \ × 5
76 00    ROR $00,X /
Clobbers Z&N
32 bytes
EA   ... NOP      × 32
No requirements


65 cycles

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


66 cycles

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


67 cycles

5 bytes
A9       LDA #40
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
D0 FC    BNE *-2
Clobbers A, S, Z&N, and C; and writes in stack
7 bytes
BA       TSX
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
D0 FC    BNE *-2
9A       TXS
Clobbers A, X, Z&N, and C; and writes in stack
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
A0 06    LDY #6
48   ... PHA      × 2
88       DEY
D0 F9    BNE *-5
Clobbers Y, S, and Z&N; and writes in stack
A2 06    LDX #6
48   ... PHA      × 2
CA       DEX
D0 F9    BNE *-5
Clobbers X, S, and Z&N; and writes in stack
A0 06    LDY #6
EA       NOP
68       PLA
88       DEY
D0 F9    BNE *-5
Clobbers A, Y, S, and Z&N
A2 06    LDX #6
EA       NOP
68       PLA
CA       DEX
D0 F9    BNE *-5
Clobbers A, X, S, and Z&N
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C; and requires @zptemp
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C; and requires support for unofficial opcodes
08       PHP
A9       LDA #33
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #33
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
A6 00    LDX $00
A2 09    LDX #9
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
A4 00    LDY $00
A0 09    LDY #9
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 3
90 FA    BCC *-4
Clobbers A, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 0B    LDY #11
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 0B    LDX #11
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 0B    LDY #11
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
E6 xx    INC @zptemp
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
28       PLP
Clobbers A; requires @zptemp; and writes in stack
E6 xx    INC @zptemp
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
68       PLA
Clobbers Z&N, and C; requires @zptemp; and writes in stack
EA       NOP
48       PHA
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
28       PLP
Clobbers A, and S; and writes in stack
EA       NOP
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
68       PLA
Clobbers S, Z&N, and C; and writes in stack
EA       NOP
08       PHP
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A       NOP ;first loop only
B0 FA    BCS *-4
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A       NOP ;first loop only
B0 FA    BCS *-4
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
08       PHP
48       PHA
A9       LDA #26
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
48       PHA
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
30 FA    BMI *-4
68       PLA
28       PLP
Writes in stack
17 bytes
68       PLA
48       PHA
68   ... PLA      × 15
Clobbers A, S, and Z&N
19 bytes
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 14
10 EE    BPL *-16
Clobbers A, and Z&N
23 bytes
EA       NOP
E6 xx    INC @zptemp
36 00    ROL $00,X \ × 5
76 00    ROR $00,X /
Clobbers Z&N; and requires @zptemp
24 bytes
EA   ... NOP      × 2
C5 00    CMP $00
36 00    ROL $00,X \ × 5
76 00    ROR $00,X /
Clobbers Z&N, and C
EA   ... NOP      × 2
24 00    BIT $00
36 00    ROL $00,X \ × 5
76 00    ROR $00,X /
Clobbers Z&N, and V
EA   ... NOP      × 2
04 00    NOP $00
36 00    ROL $00,X \ × 5
76 00    ROR $00,X /
Clobbers Z&N; and requires support for unofficial opcodes
25 bytes
EA   ... NOP      × 2
4C xx xx JMP *+3
36 00    ROL $00,X \ × 5
76 00    ROR $00,X /
Clobbers Z&N; and not relocatable code
34 bytes
18       CLC
90 00    BCC *+2
EA   ... NOP      × 31
Clobbers C
B8       CLV
50 00    BVC *+2
EA   ... NOP      × 31
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 32
Requires @zptemp
04 00    NOP $00
EA   ... NOP      × 32
Requires support for unofficial opcodes
35 bytes
4C xx xx JMP *+3
EA   ... NOP      × 32
Not relocatable code


68 cycles

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


69 cycles

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


70 cycles

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


71 cycles

5 bytes
A2 0E    LDX #14
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 0E    LDY #14
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A9       LDA #44
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
Clobbers A, Z&N, and C
7 bytes
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
A2 09    LDX #9
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 09    LDY #9
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
9 bytes
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
EA   ... NOP      × 2
B0 FA    BCS *-4
28       PLP
Clobbers A; and writes in stack
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
EA   ... NOP      × 2
B0 FA    BCS *-4
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #30
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
68       PLA
28       PLP
Writes in stack
18 bytes
68       PLA
48       PHA
68   ... PLA      × 16
Clobbers A, S, and Z&N
20 bytes
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 15
10 ED    BPL *-17
Clobbers A, and Z&N
25 bytes
EA   ... NOP      × 3
E6 xx    INC @zptemp
36 00    ROL $00,X \ × 5
76 00    ROR $00,X /
Clobbers Z&N; and requires @zptemp
26 bytes
C5 00    CMP $00
26 00    ROL $00   \ × 2
66 00    ROR $00   /
36 00    ROL $00,X \ × 4
76 00    ROR $00,X /
Clobbers Z&N, and C
24 00    BIT $00
26 00    ROL $00   \ × 2
66 00    ROR $00   /
36 00    ROL $00,X \ × 4
76 00    ROR $00,X /
Clobbers Z&N, and V
04 00    NOP $00
26 00    ROL $00   \ × 2
66 00    ROR $00   /
36 00    ROL $00,X \ × 4
76 00    ROR $00,X /
Clobbers Z&N; and requires support for unofficial opcodes
27 bytes
4C xx xx JMP *+3
26 00    ROL $00   \ × 2
66 00    ROR $00   /
36 00    ROL $00,X \ × 4
76 00    ROR $00,X /
Clobbers Z&N; and not relocatable code
36 bytes
18       CLC
90 00    BCC *+2
EA   ... NOP      × 33
Clobbers C
B8       CLV
50 00    BVC *+2
EA   ... NOP      × 33
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 34
Requires @zptemp
04 00    NOP $00
EA   ... NOP      × 34
Requires support for unofficial opcodes
37 bytes
4C xx xx JMP *+3
EA   ... NOP      × 34
Not relocatable code


72 cycles

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


73 cycles

5 bytes
A9       LDA #46
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
EA       NOP
A2 0E    LDX #14
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
A0 0E    LDY #14
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
7 bytes
08       PHP
A0 0D    LDY #13
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 0D    LDX #13
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
Clobbers A, Z&N, and C
08       PHP
A9       LDA #39
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #39
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
9 bytes
48       PHA
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
D0 FB    BNE *-3
28       PLP
Clobbers A, and S; requires @zptemp; and writes in stack
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
D0 FB    BNE *-3
68       PLA
Clobbers S, Z&N, and C; requires @zptemp; and writes in stack
48       PHA
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
D0 FB    BNE *-3
28       PLP
Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
D0 FB    BNE *-3
68       PLA
Clobbers S, Z&N, and C; requires support for unofficial opcodes; and writes in stack
08       PHP
48       PHA
A9       LDA #32
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
10 FB    BPL *-3
68       PLA
28       PLP
Writes in stack
19 bytes
EA       NOP
68       PLA
48       PHA
68   ... PLA      × 16
Clobbers A, S, and Z&N
21 bytes
EA       NOP
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 15
10 ED    BPL *-17
Clobbers A, and Z&N
26 bytes
C5 00    CMP $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X \ × 5
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 \ × 5
76 00    ROR $00,X /
Clobbers Z&N, and V
E6 xx    INC @zptemp
26 00    ROL $00   \ × 2
66 00    ROR $00   /
36 00    ROL $00,X \ × 4
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 \ × 5
76 00    ROR $00,X /
Clobbers Z&N; and requires support for unofficial opcodes
27 bytes
4C xx xx JMP *+3
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X \ × 5
76 00    ROR $00,X /
Clobbers Z&N; and not relocatable code
37 bytes
18       CLC
90 00    BCC *+2
EA   ... NOP      × 34
Clobbers C
B8       CLV
50 00    BVC *+2
EA   ... NOP      × 34
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 35
Requires @zptemp
04 00    NOP $00
EA   ... NOP      × 35
Requires support for unofficial opcodes
38 bytes
4C xx xx JMP *+3
EA   ... NOP      × 35
Not relocatable code


74 cycles

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


75 cycles

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


76 cycles

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


77 cycles

5 bytes
A9       LDA #50
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
48   ... PHA      × 2
A2 0E    LDX #14
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
48   ... PHA      × 2
A0 0E    LDY #14
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
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
68       PLA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
D0 FA    BNE *-4
Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes
08       PHP
A9       LDA #43
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #43
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA   ... NOP      × 3
A0 0E    LDY #14
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA   ... NOP      × 3
A2 0E    LDX #14
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts14
90 FA    BCC *-4
Clobbers A, Z&N, and C; requires @rts14; and writes in stack
EA       NOP
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C
EA   ... NOP      × 2
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
D0 FA    BNE *-4
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
9 bytes
8C       TXA
48       PHA
A2 0D    LDX #13
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 0D    LDY #13
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 0D    LDX #13
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 3
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
Clobbers A, Z&N, and C
08       PHP
48       PHA
A9       LDA #36
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
08       PHP
38       SEC
A9 0D    LDA #13
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
20 xx xx JSR @rts15
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
68       PLA
Clobbers Z&N, and C; requires @rts15; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 0D    LDA #13
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
D0 FB    BNE *-3
68       PLA
28       PLP
Requires @zptemp; and writes in stack
EA       NOP
00 00    BRK 0
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
68       PLA
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
D0 FB    BNE *-3
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 0C    LDA #12
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack
20 bytes
EA       NOP
68       PLA
48       PHA
68   ... PLA      × 17
Clobbers A, S, and Z&N
22 bytes
68       PLA       \ × 11
48       PHA       /
Clobbers A, and Z&N
26 bytes
E6 xx    INC @zptemp
36 00    ROL $00,X \ × 6
76 00    ROR $00,X /
Clobbers Z&N; and requires @zptemp
27 bytes
EA       NOP
C5 00    CMP $00
36 00    ROL $00,X \ × 6
76 00    ROR $00,X /
Clobbers Z&N, and C
EA       NOP
24 00    BIT $00
36 00    ROL $00,X \ × 6
76 00    ROR $00,X /
Clobbers Z&N, and V
EA       NOP
04 00    NOP $00
36 00    ROL $00,X \ × 6
76 00    ROR $00,X /
Clobbers Z&N; and requires support for unofficial opcodes
28 bytes
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X \ × 6
76 00    ROR $00,X /
Clobbers Z&N; and not relocatable code
39 bytes
18       CLC
90 00    BCC *+2
EA   ... NOP      × 36
Clobbers C
B8       CLV
50 00    BVC *+2
EA   ... NOP      × 36
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 37
Requires @zptemp
04 00    NOP $00
EA   ... NOP      × 37
Requires support for unofficial opcodes
40 bytes
4C xx xx JMP *+3
EA   ... NOP      × 37
Not relocatable code


78 cycles

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


79 cycles

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


80 cycles

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


81 cycles

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


82 cycles

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


83 cycles

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


84 cycles

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


85 cycles

5 bytes
A9       LDA #58
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A0 0C    LDY #12
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
A2 0C    LDX #12
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
7 bytes
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
08       PHP
28       PLP
B0 FA    BCS *-4
Clobbers A, Z&N, C, and V; and writes in stack
EA       NOP
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
Clobbers A, Z&N, C, V, and D
08       PHP
A9       LDA #51
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #51
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
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
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
08       PHP
28       PLP
90 FA    BCC *-4
Clobbers A, Z&N, and C; and writes in stack
EA       NOP
38       SEC
A9 10    LDA #16
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
9 bytes
08       PHP
38       SEC
A9 0F    LDA #15
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 0F    LDA #15
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 2
E6 xx    INC @zptemp
90 F9    BCC *-5
Clobbers A, Z&N, and C; and requires @zptemp
EA       NOP
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
18       CLC
D0 FA    BNE *-4
Clobbers A, S, Z&N, and C; and requires support for unofficial opcodes
08       PHP
48       PHA
A9       LDA #44
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
68       PLA
28       PLP
Writes in stack
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A' \ × 2
D0 FD    BNE *-1   /
Clobbers A, Z&N, and C
22 bytes
EA       NOP
68       PLA
48       PHA
68   ... PLA      × 19
Clobbers A, S, and Z&N
24 bytes
EA       NOP
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 18
10 EA    BPL *-20
Clobbers A, and Z&N
30 bytes
C5 00    CMP $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X \ × 6
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 \ × 6
76 00    ROR $00,X /
Clobbers Z&N, and V
E6 xx    INC @zptemp
26 00    ROL $00   \ × 2
66 00    ROR $00   /
36 00    ROL $00,X \ × 5
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 \ × 6
76 00    ROR $00,X /
Clobbers Z&N; and requires support for unofficial opcodes
31 bytes
4C xx xx JMP *+3
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X \ × 6
76 00    ROR $00,X /
Clobbers Z&N; and not relocatable code
43 bytes
18       CLC
90 00    BCC *+2
EA   ... NOP      × 40
Clobbers C
B8       CLV
50 00    BVC *+2
EA   ... NOP      × 40
Clobbers V
85 xx    STA @zptemp
EA   ... NOP      × 41
Requires @zptemp
04 00    NOP $00
EA   ... NOP      × 41
Requires support for unofficial opcodes


86 cycles

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


87 cycles

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


88 cycles

5 bytes
A9       LDA #61
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
EA       NOP
A2 11    LDX #17
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
A0 11    LDY #17
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
Clobbers A, Z&N, C, V, and D
7 bytes
08       PHP
A2 10    LDX #16
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 10    LDY #16
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 11    LDA #17
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
A9       LDA #54
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #54
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
10 FA    BPL *-4
Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack
9 bytes
EA   ... NOP      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
10 FA    BPL *-4
Clobbers A, Z&N, and C; requires @rts12; and writes in stack
08       PHP
A9 69    LDA #$69 ;hides 'ADC #$18'
18       CLC ;first loop only
E6 xx    INC @zptemp
90 FA    BCC *-4
28       PLP
Clobbers A; requires @zptemp; and writes in stack
48       PHA
A9 69    LDA #$69 ;hides 'ADC #$18'
18       CLC ;first loop only
E6 xx    INC @zptemp
90 FA    BCC *-4
68       PLA
Clobbers Z&N, C, and V; requires @zptemp; and writes in stack
48   ... PHA      × 3
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
18       CLC
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C; and writes in stack
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
04 00    NOP $00
30 FA    BMI *-4
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
04 00    NOP $00
30 FA    BMI *-4
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
08       PHP
48       PHA
A9       LDA #47
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
B8       CLV
50 00    BVC *+2
D0 FA    BNE *-4
28       PLP
Clobbers A; and writes in stack
48       PHA
18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts15
90 FA    BCC *-4
68       PLA
Clobbers Z&N, and C; requires @rts15; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
B8       CLV
50 00    BVC *+2
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, C, and V; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
18       CLC
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, and C; requires @zptemp; and writes in stack
EA       NOP
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
18       CLC
D0 FA    BNE *-4
Clobbers A, Z&N, and C; and requires @zptemp
48       PHA
18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
EA       NOP
00 00    BRK 0
90 FA    BCC *-4
68       PLA
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
18       CLC
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
EA       NOP
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
18       CLC
D0 FA    BNE *-4
Clobbers A, Z&N, and C; and requires support for unofficial opcodes
11 bytes
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
08       PHP
28       PLP
18       CLC
10 F9    BPL *-5
68       PLA
Clobbers Z&N, and C; and writes in stack
EA       NOP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
90 FD    BCC *-1
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
Clobbers A, Z&N, and C
48       PHA
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
68       PLA
28       PLP
Clobbers S; and writes in stack
12 bytes
08       PHP
C5 00    CMP $00
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
68       PLA
28       PLP
Writes in stack
22 bytes
68   ... PLA      × 22
Clobbers A, S, and Z&N
25 bytes
EA       NOP
68       PLA
48       PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 17
10 EB    BPL *-19
Clobbers A, and Z&N
30 bytes
EA   ... NOP      × 2
36 00    ROL $00,X \ × 7
76 00    ROR $00,X /
Clobbers 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      × 2
30 FB    BMI *-3
Clobbers Y, and Z&N
A2 0A    LDX #10 ;hides 'ASL A'
EA       NOP
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, Z&N, and C
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
10 FB    BPL *-3
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
A2 0B    LDX #11
48       PHA
CA       DEX
D0 FA    BNE *-4
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A6 00    LDX $00
A2 11    LDX #17
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
48   ... PHA      × 2
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C; and writes in stack
08       PHP
A9       LDA #55
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #55
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 2
18       CLC
D0 FA    BNE *-4
Clobbers A, Z&N, and C
9 bytes
08       PHP
A0 09    LDY #9
EA   ... NOP      × 2
88       DEY
D0 F9    BNE *-5
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 09    LDX #9
EA   ... NOP      × 2
CA       DEX
D0 F9    BNE *-5
28       PLP
Clobbers X; and writes in stack
08       PHP
48       PHA
A9       LDA #48
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
8C       TXA
48       PHA
A2 0B    LDX #11
EA       NOP
CA       DEX
D0 FA    BNE *-4
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
48       PHA
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
B8       CLV
50 00    BVC *+2
D0 FA    BNE *-4
28       PLP
Clobbers A, and S; and writes in stack
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
B8       CLV
50 00    BVC *+2
D0 FA    BNE *-4
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
18       CLC
D0 FA    BNE *-4
68       PLA
Clobbers S, Z&N, and C; requires @zptemp; and writes in stack
EA       NOP
08       PHP
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A       NOP ;first loop only
EA       NOP
B0 F9    BCS *-5
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A       NOP ;first loop only
EA       NOP
B0 F9    BCS *-5
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
18       CLC
D0 FA    BNE *-4
68       PLA
Clobbers S, Z&N, and C; requires support for unofficial opcodes; and writes in stack
11 bytes
48       PHA
98       TYA
48       PHA
A0 0E    LDY #14
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
38       SEC
A9 0F    LDA #15
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
EA       NOP
08       PHP
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
12 bytes
EA   ... NOP      × 2
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
68       PLA
28       PLP
Writes in stack
23 bytes
EA       NOP
68       PLA
48       PHA
68   ... PLA      × 20
Clobbers A, S, and Z&N
25 bytes
EA       NOP
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 19
10 E9    BPL *-21
Clobbers A, and Z&N
30 bytes
E6 xx    INC @zptemp
36 00    ROL $00,X \ × 7
76 00    ROR $00,X /
Clobbers Z&N; and requires @zptemp
31 bytes
EA       NOP
C5 00    CMP $00
36 00    ROL $00,X \ × 7
76 00    ROR $00,X /
Clobbers Z&N, and C
EA       NOP
24 00    BIT $00
36 00    ROL $00,X \ × 7
76 00    ROR $00,X /
Clobbers Z&N, and V
EA       NOP
04 00    NOP $00
36 00    ROL $00,X \ × 7
76 00    ROR $00,X /
Clobbers Z&N; and requires support for unofficial opcodes
32 bytes
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X \ × 7
76 00    ROR $00,X /
Clobbers Z&N; and not relocatable code


90 cycles

5 bytes
A9       LDA #63
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
68       PLA
A0 11    LDY #17
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
68       PLA
A2 11    LDX #17
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
7 bytes
EA   ... NOP      × 2
A2 11    LDX #17
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 2
A0 11    LDY #17
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA       NOP
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
Clobbers A, Z&N, C, V, and D
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
48   ... PHA      × 2
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C; and writes in stack
08       PHP
A9       LDA #56
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #56
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
28       PLP
Clobbers A; and writes in stack
EA       NOP
08       PHP
A2 10    LDX #16
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 10    LDY #16
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 11    LDA #17
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
48       PHA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
68       PLA
Clobbers Z&N, C, V, and D; and writes in stack
9 bytes
A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 2
18       CLC
D0 FA    BNE *-4
Clobbers A, Z&N, and C
48       PHA
38       SEC
A9 10    LDA #16
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #49
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
11 bytes
20 xx xx JSR @rts12
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
68       PLA
Clobbers Z&N, and C; requires @rts12; and writes in stack
48       PHA
18   ... CLC      × 2
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts15
90 FA    BCC *-4
68       PLA
Clobbers Z&N, and C; requires @rts15; and writes in stack
EA   ... NOP      × 2
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
18       CLC
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, and C; requires @zptemp; and writes in stack
48       PHA
18   ... CLC      × 2
A9 2A    LDA #$2A ;hides 'ROL A'
EA       NOP
00 00    BRK 0
90 FA    BCC *-4
68       PLA
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
EA   ... NOP      × 2
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
18       CLC
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
48       PHA
08       PHP
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
28       PLP
Clobbers S; requires support for unofficial opcodes; and writes in stack
12 bytes
36 00    ROL $00,X
76 00    ROR $00,X
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
68       PLA
Clobbers Z&N, and C; and writes in stack
08       PHP
E6 xx    INC @zptemp
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
68       PLA
28       PLP
Requires @zptemp; and writes in stack
EA       NOP
48       PHA
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
68       PLA
28       PLP
Clobbers S; and writes in stack
04 00    NOP $00
08       PHP
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
13 bytes
EA       NOP
08       PHP
C5 00    CMP $00
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
68       PLA
28       PLP
Writes in stack
23 bytes
EA       NOP
68   ... PLA      × 22
Clobbers A, S, and Z&N
25 bytes
68       PLA
48       PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 18
10 EA    BPL *-20
Clobbers A, and Z&N
31 bytes
EA   ... NOP      × 3
36 00    ROL $00,X \ × 7
76 00    ROR $00,X /
Clobbers 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      × 2
30 FA    BMI *-4
Clobbers A, Z&N, C, and V
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
10 FB    BPL *-3
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
48   ... PHA      × 2
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C; and writes in stack
08       PHP
A9       LDA #57
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #57
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
48       PHA
08       PHP
A2 10    LDX #16
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
08       PHP
A0 10    LDY #16
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 2
18       CLC
D0 FA    BNE *-4
Clobbers A, S, Z&N, and C
9 bytes
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
10 FA    BPL *-4
28       PLP
Clobbers A; requires @rts12; and writes in stack
08       PHP
A6 00    LDX $00
A2 10    LDX #16
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A4 00    LDY $00
A0 10    LDY #16
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
10 FA    BPL *-4
68       PLA
Clobbers Z&N, and C; requires @rts12; and writes in stack
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
26 00    ROL $00
66 00    ROR $00
90 F9    BCC *-5
Clobbers A, Z&N, and C
08       PHP
48       PHA
A9       LDA #50
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
E6 xx    INC @zptemp
28       PLP
10 F9    BPL *-5
28       PLP
Clobbers A; requires @zptemp; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
E6 xx    INC @zptemp
28       PLP
10 F9    BPL *-5
68       PLA
Clobbers Z&N, and C; requires @zptemp; and writes in stack
00 00    BRK 0
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
28       PLP
Clobbers A; requires dummy interrupt handler; and writes in stack
00 00    BRK 0
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
68       PLA
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
68       PLA
98       TYA
48       PHA
A0 0F    LDY #15
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
48       PHA
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
04 00    NOP $00
30 FA    BMI *-4
28       PLP
Clobbers A, and S; requires support for unofficial opcodes; and writes in stack
48   ... PHA      × 2
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
04 00    NOP $00
30 FA    BMI *-4
68       PLA
Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
11 bytes
08       PHP
38       SEC
A9 09    LDA #9
EA   ... NOP      × 2
E9 01    SBC #1
D0 F7    BNE *-7
28       PLP
Clobbers A; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
24 00    BIT $00
28       PLP
18       CLC
10 F8    BPL *-6
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 0E    LDY #14
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
48       PHA
18       CLC
A9 2A    LDA #$2A ;hides 'ROL A'
20 xx xx JSR @rts14
90 FA    BCC *-4
68       PLA
28       PLP
Requires @rts14; and writes in stack
48   ... PHA      × 2
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
68       PLA
28       PLP
Clobbers S; and writes in stack
EA   ... NOP      × 2
08       PHP
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
13 bytes
08       PHP
48       PHA
8C       TXA
48       PHA
A2 0D    LDX #13
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
68       PLA
28       PLP
Writes in stack
23 bytes
68       PLA
48       PHA
68   ... PLA      × 21
Clobbers A, S, and Z&N
25 bytes
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 20
10 E8    BPL *-22
Clobbers A, and Z&N
31 bytes
EA       NOP
E6 xx    INC @zptemp
36 00    ROL $00,X \ × 7
76 00    ROR $00,X /
Clobbers Z&N; and requires @zptemp
32 bytes
EA   ... NOP      × 2
C5 00    CMP $00
36 00    ROL $00,X \ × 7
76 00    ROR $00,X /
Clobbers Z&N, and C
EA   ... NOP      × 2
24 00    BIT $00
36 00    ROL $00,X \ × 7
76 00    ROR $00,X /
Clobbers Z&N, and V
EA   ... NOP      × 2
04 00    NOP $00
36 00    ROL $00,X \ × 7
76 00    ROR $00,X /
Clobbers Z&N; and requires support for unofficial opcodes
33 bytes
EA   ... NOP      × 2
4C xx xx JMP *+3
36 00    ROL $00,X \ × 7
76 00    ROR $00,X /
Clobbers Z&N; and not relocatable code


92 cycles

5 bytes
A9       LDA #65
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A0 0D    LDY #13
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
A2 0D    LDX #13
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
7 bytes
68       PLA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
Clobbers A, S, Z&N, C, V, and D
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
10 FB    BPL *-3
Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
08       PHP
A9       LDA #58
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #58
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A2 0C    LDX #12
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0C    LDY #12
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
EA   ... NOP      × 2
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
Clobbers A, Z&N, C, V, and D
A9 2A    LDA #$2A ;hides 'ROL A'
00 00... BRK 0    × 2
10 F9    BPL *-5
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
EA       NOP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
48   ... PHA      × 2
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C; and writes in stack
68       PLA
38       SEC
A9 11    LDA #17
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V
9 bytes
EA       NOP
08       PHP
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
28       PLP
Clobbers A; and writes in stack
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
08       PHP
28       PLP
B0 FA    BCS *-4
68       PLA
Clobbers Z&N, C, and V; and writes in stack
EA   ... NOP      × 2
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      × 2
18       CLC
D0 FA    BNE *-4
Clobbers A, Z&N, and C; and requires @zptemp
08       PHP
48       PHA
A9       LDA #51
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
08       PHP
28       PLP
90 FA    BCC *-4
68       PLA
Clobbers Z&N, and C; and writes in stack
EA       NOP
A5 00    LDA $00
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 2
18       CLC
D0 FA    BNE *-4
Clobbers A, Z&N, and C
11 bytes
08       PHP
48       PHA
38       SEC
A9 0F    LDA #15
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack
23 bytes
68   ... PLA      × 23
Clobbers A, S, and Z&N
26 bytes
EA       NOP
68       PLA
48       PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 18
10 EA    BPL *-20
Clobbers A, and Z&N
32 bytes
26 00    ROL $00   \ × 2
66 00    ROR $00   /
36 00    ROL $00,X \ × 6
76 00    ROR $00,X /
Clobbers 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
A2 12    LDX #18
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
A0 12    LDY #18
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
7 bytes
08       PHP
A0 11    LDY #17
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 11    LDX #17
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 12    LDA #18
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
10 FB    BPL *-3
Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
08       PHP
A9       LDA #59
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #59
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA   ... NOP      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
10 FB    BPL *-3
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
48   ... PHA      × 2
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
48       PHA
08       PHP
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
28       PLP
Clobbers A, and S; and writes in stack
EA       NOP
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 2
18       CLC
D0 FA    BNE *-4
Clobbers A, S, Z&N, and C
48   ... PHA      × 2
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
68       PLA
Clobbers S, Z&N, C, V, and D; and writes in stack
08       PHP
48       PHA
A9       LDA #52
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
A5 00    LDA $00
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
28       PLP
Clobbers A; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
10 FA    BPL *-4
68       PLA
Clobbers Z&N, and C; requires @rts12; and writes in stack
18   ... CLC      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
26 00    ROL $00
66 00    ROR $00
90 F9    BCC *-5
Clobbers A, Z&N, and C
24 00    BIT $00
48       PHA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
68       PLA
Clobbers Z&N, C, V, and D; and writes in stack
48   ... PHA      × 2
38       SEC
A9 10    LDA #16
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
00 00    BRK 0
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, C, and V; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
11 bytes
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
B8       CLV
50 00    BVC *+2
D0 FA    BNE *-4
68       PLA
28       PLP
Writes in stack
24 bytes
EA       NOP
68       PLA
48       PHA
68   ... PLA      × 21
Clobbers A, S, and Z&N
26 bytes
EA       NOP
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 20
10 E8    BPL *-22
Clobbers A, and Z&N
32 bytes
EA   ... NOP      × 2
E6 xx    INC @zptemp
36 00    ROL $00,X \ × 7
76 00    ROR $00,X /
Clobbers Z&N; and requires @zptemp
33 bytes
EA   ... NOP      × 3
C5 00    CMP $00
36 00    ROL $00,X \ × 7
76 00    ROR $00,X /
Clobbers Z&N, and C
EA   ... NOP      × 3
24 00    BIT $00
36 00    ROL $00,X \ × 7
76 00    ROR $00,X /
Clobbers Z&N, and V
EA   ... NOP      × 3
04 00    NOP $00
36 00    ROL $00,X \ × 7
76 00    ROR $00,X /
Clobbers Z&N; and requires support for unofficial opcodes
34 bytes
EA   ... NOP      × 3
4C xx xx JMP *+3
36 00    ROL $00,X \ × 7
76 00    ROR $00,X /
Clobbers Z&N; and not relocatable code


94 cycles

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


95 cycles

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


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      × 2
30 FB    BMI *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 0A    LDX #10 ;hides 'ASL A'
EA       NOP
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers A, and X; and writes in stack
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
10 FA    BPL *-4
Clobbers A, Z&N, and C; requires @rts14; and writes in stack
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
10 FB    BPL *-3
28       PLP
Clobbers A; requires dummy interrupt handler; and writes in stack
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
10 FB    BPL *-3
68       PLA
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
48       PHA
08       PHP
A2 11    LDX #17
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 12    LDA #18
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V; and writes in stack
68   ... PLA      × 2
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
Clobbers A, S, Z&N, C, V, and D
9 bytes
08       PHP
A2 0B    LDX #11
C5 00    CMP $00
CA       DEX
D0 F9    BNE *-5
28       PLP
Clobbers X; and writes in stack
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP       \ × 2
28       PLP       /
10 F9    BPL *-5
Clobbers A, Z&N, and C; and writes in stack
A5 00    LDA $00
38       SEC
A9 12    LDA #18
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
48       PHA
A9       LDA #55
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 2
18       CLC
D0 FA    BNE *-4
28       PLP
Clobbers A; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 2
18       CLC
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, and C; and writes in stack
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
D0 FC    BNE *-2
Clobbers A, Z&N, and C
12 bytes
48       PHA
8C       TXA
48       PHA
A2 0B    LDX #11
EA       NOP
CA       DEX
D0 FA    BNE *-4
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
B8       CLV
50 00    BVC *+2
D0 FA    BNE *-4
68       PLA
28       PLP
Clobbers S; and writes in stack
EA       NOP
08       PHP
48       PHA
38       SEC
A9 EB    LDA #$EB ;hides 'SBC #$1A'
1A       NOP ;first loop only
EA       NOP
B0 F9    BCS *-5
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
13 bytes
EA   ... NOP      × 2
08       PHP
48       PHA
38       SEC
A9 0F    LDA #15
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack
24 bytes
68   ... PLA      × 24
Clobbers A, S, and Z&N
27 bytes
EA       NOP
68       PLA
48       PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 19
10 E9    BPL *-21
Clobbers A, and Z&N
32 bytes
36 00    ROL $00,X \ × 8
76 00    ROR $00,X /
Clobbers Z&N


97 cycles

5 bytes
A9       LDA #70
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A2 0C    LDX #12
48       PHA
CA       DEX
D0 FA    BNE *-4
Clobbers X, S, and Z&N; and writes in stack
A0 0C    LDY #12
48       PHA
88       DEY
D0 FA    BNE *-4
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A2 08    LDX #8
08       PHP
28       PLP
CA       DEX
D0 F9    BNE *-5
Clobbers X, and Z&N; and writes in stack
A0 08    LDY #8
08       PHP
28       PLP
88       DEY
D0 F9    BNE *-5
Clobbers Y, and Z&N; and writes in stack
A0 0C    LDY #12
A5 00    LDA $00
88       DEY
D0 F9    BNE *-5
Clobbers A, Y, and Z&N
A2 0C    LDX #12
A5 00    LDA $00
CA       DEX
D0 F9    BNE *-5
Clobbers A, X, and Z&N
A2 0C    LDX #12
A4 00    LDY $00
CA       DEX
D0 F9    BNE *-5
Clobbers X, Y, and Z&N
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
Clobbers A, Z&N, and C; and writes in stack
A0 0C    LDY #12
C5 00    CMP $00
88       DEY
D0 F9    BNE *-5
Clobbers Y, Z&N, and C
A2 0C    LDX #12
C5 00    CMP $00
CA       DEX
D0 F9    BNE *-5
Clobbers X, 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      × 3
A2 12    LDX #18
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 3
A0 12    LDY #18
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A9 69    LDA #$69 ;hides 'ADC #$18'
18       CLC ;first loop only
EA       NOP
E6 xx    INC @zptemp
90 F9    BCC *-5
Clobbers A, Z&N, C, and V; and requires @zptemp
68       PLA
38       SEC
A9 12    LDA #18
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V
9 bytes
EA       NOP
08       PHP
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
28       PLP
Clobbers A; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 11    LDX #17
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 11    LDY #17
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
90 00    BCC *+2
18       CLC
D0 F9    BNE *-5
Clobbers A, Z&N, and C
EA       NOP
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
68       PLA
Clobbers Z&N, C, V, and D; and writes in stack
08       PHP
48       PHA
A9       LDA #56
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
48       PHA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
68       PLA
28       PLP
Writes in stack
25 bytes
EA       NOP
68       PLA
48       PHA
68   ... PLA      × 22
Clobbers A, S, and Z&N
27 bytes
EA       NOP
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 21
10 E7    BPL *-23
Clobbers A, and Z&N
34 bytes
C5 00    CMP $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X \ × 7
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 \ × 7
76 00    ROR $00,X /
Clobbers Z&N, and V
E6 xx    INC @zptemp
26 00    ROL $00   \ × 2
66 00    ROR $00   /
36 00    ROL $00,X \ × 6
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 \ × 7
76 00    ROR $00,X /
Clobbers Z&N; and requires support for unofficial opcodes
35 bytes
4C xx xx JMP *+3
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X \ × 7
76 00    ROR $00,X /
Clobbers Z&N; and not relocatable code


98 cycles

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


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
A0 0E    LDY #14
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
A2 0E    LDX #14
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
7 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
10 FA    BPL *-4
Clobbers A, Z&N, and C; requires @rts15; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
18       CLC
10 FA    BPL *-4
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
Clobbers A, S, Z&N, and C; and writes in stack
08       PHP
A9       LDA #65
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #65
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A0 0D    LDY #13
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 0D    LDX #13
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
Clobbers A, Z&N, and C; and writes in stack
9 bytes
38       SEC
A9 0C    LDA #12
24 00    BIT $00
E9 01    SBC #1
D0 F7    BNE *-7
Clobbers A, Z&N, C, and V
68       PLA
08       PHP
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
28       PLP
Clobbers A, S, and Z&N; and writes in stack
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
90 00    BCC *+2
18       CLC
D0 F9    BNE *-5
Clobbers A, S, Z&N, and C
48       PHA
08       PHP
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
10 FB    BPL *-3
28       PLP
Clobbers A, and S; requires dummy interrupt handler; and writes in stack
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
10 FB    BPL *-3
68       PLA
Clobbers S, Z&N, and C; requires dummy interrupt handler; and writes in stack
08       PHP
48       PHA
A9       LDA #58
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA   ... NOP      × 2
08       PHP
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
28       PLP
Clobbers A; and writes in stack
EA   ... NOP      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
90 00    BCC *+2
18       CLC
D0 F9    BNE *-5
Clobbers A, Z&N, and C
EA   ... NOP      × 2
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
68       PLA
Clobbers Z&N, C, V, and D; and writes in stack
48       PHA
A9 2A    LDA #$2A ;hides 'ROL A'
00 00... BRK 0    × 2
10 F9    BPL *-5
68       PLA
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
11 bytes
EA       NOP
08       PHP
48       PHA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
68       PLA
28       PLP
Writes in stack
25 bytes
68       PLA
48       PHA
68   ... PLA      × 23
Clobbers A, S, and Z&N
27 bytes
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 22
10 E6    BPL *-24
Clobbers A, and Z&N
34 bytes
C5 00    CMP $00
36 00    ROL $00,X \ × 8
76 00    ROR $00,X /
Clobbers Z&N, and C
24 00    BIT $00
36 00    ROL $00,X \ × 8
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 \ × 7
76 00    ROR $00,X /
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
36 00    ROL $00,X \ × 8
76 00    ROR $00,X /
Clobbers Z&N; and requires support for unofficial opcodes
35 bytes
4C xx xx JMP *+3
36 00    ROL $00,X \ × 8
76 00    ROR $00,X /
Clobbers Z&N; and not relocatable code


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


101 cycles

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


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


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
A0 14    LDY #20
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA       NOP
A2 14    LDX #20
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$08'
08       PHP ;first loop only
90 FA    BCC *-4
Clobbers A, S, Z&N, C, and V; and writes in stack
7 bytes
08       PHP
A2 13    LDX #19
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 13    LDY #19
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
A9 0A    LDA #$0A ;hides 'ASL A'
48   ... PHA      × 2
18       CLC
D0 FA    BNE *-4
Clobbers A, S, Z&N, and C; and writes in stack
08       PHP
A9       LDA #69
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #69
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 3
18       CLC
D0 F9    BNE *-5
Clobbers A, Z&N, and C
9 bytes
08       PHP
48       PHA
A9       LDA #62
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
8C       TXA
48       PHA
A2 0D    LDX #13
EA       NOP
CA       DEX
D0 FA    BNE *-4
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
10 FA    BPL *-4
28       PLP
Clobbers A; requires @rts14; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
10 FA    BPL *-4
68       PLA
Clobbers Z&N, and C; requires @rts14; and writes in stack
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
10 FB    BPL *-3
68       PLA
28       PLP
Requires dummy interrupt handler; and writes in stack
48       PHA
08       PHP
38       SEC
A9 12    LDA #18
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A, and S; and writes in stack
48   ... PHA      × 2
38       SEC
A9 12    LDA #18
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 12    LDA #18
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP       \ × 2
28       PLP       /
10 F9    BPL *-5
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 2
18       CLC
D0 FA    BNE *-4
68       PLA
28       PLP
Writes in stack
26 bytes
68       PLA
48       PHA
68   ... PLA      × 24
Clobbers A, S, and Z&N
28 bytes
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 23
10 E5    BPL *-25
Clobbers A, and Z&N
35 bytes
EA       NOP
E6 xx    INC @zptemp
36 00    ROL $00,X \ × 8
76 00    ROR $00,X /
Clobbers Z&N; and requires @zptemp
36 bytes
EA   ... NOP      × 2
C5 00    CMP $00
36 00    ROL $00,X \ × 8
76 00    ROR $00,X /
Clobbers Z&N, and C
EA   ... NOP      × 2
24 00    BIT $00
36 00    ROL $00,X \ × 8
76 00    ROR $00,X /
Clobbers Z&N, and V
EA   ... NOP      × 2
04 00    NOP $00
36 00    ROL $00,X \ × 8
76 00    ROR $00,X /
Clobbers Z&N; and requires support for unofficial opcodes
37 bytes
EA   ... NOP      × 2
4C xx xx JMP *+3
36 00    ROL $00,X \ × 8
76 00    ROR $00,X /
Clobbers Z&N; and not relocatable code


104 cycles

5 bytes
A9       LDA #77
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
48       PHA
A0 14    LDY #20
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 14    LDX #20
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A4 00    LDY $00
A0 14    LDY #20
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A6 00    LDX $00
A2 14    LDX #20
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
00 00    BRK 0
10 FA    BPL *-4
Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
08       PHP
A9       LDA #70
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #70
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
18       CLC
10 F9    BPL *-5
Clobbers A, Z&N, and C; requires @rts14; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
00 00    BRK 0
10 F9    BPL *-5
Clobbers A, Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
48       PHA
30 FA    BMI *-4
Clobbers A, S, Z&N, C, and V; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
00 00    BRK 0
10 F9    BPL *-5
Clobbers A, Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
9 bytes
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
28       PLP
Clobbers A; and writes in stack
08       PHP
A0 0C    LDY #12
C5 00    CMP $00
88       DEY
D0 F9    BNE *-5
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 0C    LDX #12
C5 00    CMP $00
CA       DEX
D0 F9    BNE *-5
28       PLP
Clobbers X; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
68       PLA
Clobbers Z&N, and C; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 13    LDA #19
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V
04 00    NOP $00
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
EA       NOP
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
08       PHP
48       PHA
A9       LDA #63
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
A5 00    LDA $00
38       SEC
A9 0E    LDA #14
EA       NOP
E9 01    SBC #1
D0 F8    BNE *-6
Clobbers A, Z&N, C, and V
11 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$F8'
F8       SED ;first loop only
10 FA    BPL *-4
68       PLA
28       PLP
Writes in stack
EA       NOP
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18       CLC
90 00    BCC *+2
18       CLC
D0 F9    BNE *-5
Clobbers A, Z&N, and C
26 bytes
68   ... PLA      × 26
Clobbers A, S, and Z&N
29 bytes
EA       NOP
68       PLA
48       PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 21
10 E7    BPL *-23
Clobbers A, and Z&N
36 bytes
26 00    ROL $00   \ × 2
66 00    ROR $00   /
36 00    ROL $00,X \ × 7
76 00    ROR $00,X /
Clobbers Z&N


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      × 2
A0 14    LDY #20
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA   ... NOP      × 2
A2 14    LDX #20
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$08'
08       PHP ;first loop only
90 FA    BCC *-4
Clobbers A, S, Z&N, C, and V; and writes in stack
08       PHP
A9       LDA #71
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #71
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA       NOP
08       PHP
A2 13    LDX #19
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 13    LDY #19
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
48   ... PHA      × 2
18       CLC
D0 FA    BNE *-4
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
38       SEC
A9 13    LDA #19
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 3
18       CLC
D0 F9    BNE *-5
Clobbers A, Z&N, and C
48       PHA
38       SEC
A9 13    LDA #19
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
68       PLA
Clobbers S, Z&N, and C; and writes in stack
08       PHP
48       PHA
A9       LDA #64
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
C5 00    CMP $00
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA   ... NOP      × 2
30 FA    BMI *-4
68       PLA
28       PLP
Writes in stack
27 bytes
EA       NOP
68       PLA
48       PHA
68   ... PLA      × 24
Clobbers A, S, and Z&N
29 bytes
EA       NOP
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 23
10 E5    BPL *-25
Clobbers A, and Z&N
36 bytes
EA   ... NOP      × 2
E6 xx    INC @zptemp
36 00    ROL $00,X \ × 8
76 00    ROR $00,X /
Clobbers Z&N; and requires @zptemp
37 bytes
EA   ... NOP      × 3
C5 00    CMP $00
36 00    ROL $00,X \ × 8
76 00    ROR $00,X /
Clobbers Z&N, and C
EA   ... NOP      × 3
24 00    BIT $00
36 00    ROL $00,X \ × 8
76 00    ROR $00,X /
Clobbers Z&N, and V
EA   ... NOP      × 3
04 00    NOP $00
36 00    ROL $00,X \ × 8
76 00    ROR $00,X /
Clobbers Z&N; and requires support for unofficial opcodes
38 bytes
EA   ... NOP      × 3
4C xx xx JMP *+3
36 00    ROL $00,X \ × 8
76 00    ROR $00,X /
Clobbers Z&N; and not relocatable code


106 cycles

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


107 cycles

5 bytes
A9       LDA #80
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A2 18    LDX #24 ;hides 'CLC'
CA   ... DEX      × 2
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 18    LDY #24 ;hides 'CLC'
88   ... DEY      × 2
D0 FB    BNE *-3
Clobbers Y, and Z&N
7 bytes
68       PLA
18       CLC
A9 69    LDA #$69 ;hides 'ADC #$08'
08       PHP ;first loop only
90 FA    BCC *-4
Clobbers A, S, Z&N, C, and V; and writes in stack
08       PHP
A9       LDA #73
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #73
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
48   ... PHA      × 2
18       CLC
D0 FA    BNE *-4
Clobbers A, S, Z&N, and C; and writes in stack
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
98       TYA
48       PHA
A0 13    LDY #19
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 13    LDY #19
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 13    LDX #19
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
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      × 3
18       CLC
D0 F9    BNE *-5
Clobbers A, S, Z&N, and C
08       PHP
48       PHA
A9       LDA #66
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
08       PHP
38       SEC
A9 13    LDA #19
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
EA   ... NOP      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 3
18       CLC
D0 F9    BNE *-5
Clobbers A, Z&N, and C
EA       NOP
48       PHA
38       SEC
A9 13    LDA #19
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
E6 xx    INC @zptemp
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
68       PLA
Clobbers Z&N, and C; requires @zptemp; and writes in stack
EA       NOP
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 12    LDA #18
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack
27 bytes
68       PLA
48       PHA
68   ... PLA      × 25
Clobbers A, S, and Z&N
29 bytes
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 24
10 E4    BPL *-26
Clobbers A, and Z&N
37 bytes
EA   ... NOP      × 3
E6 xx    INC @zptemp
36 00    ROL $00,X \ × 8
76 00    ROR $00,X /
Clobbers Z&N; and requires @zptemp
38 bytes
C5 00    CMP $00
26 00    ROL $00   \ × 2
66 00    ROR $00   /
36 00    ROL $00,X \ × 7
76 00    ROR $00,X /
Clobbers Z&N, and C
24 00    BIT $00
26 00    ROL $00   \ × 2
66 00    ROR $00   /
36 00    ROL $00,X \ × 7
76 00    ROR $00,X /
Clobbers Z&N, and V
04 00    NOP $00
26 00    ROL $00   \ × 2
66 00    ROR $00   /
36 00    ROL $00,X \ × 7
76 00    ROR $00,X /
Clobbers Z&N; and requires support for unofficial opcodes
39 bytes
4C xx xx JMP *+3
26 00    ROL $00   \ × 2
66 00    ROR $00   /
36 00    ROL $00,X \ × 7
76 00    ROR $00,X /
Clobbers Z&N; and not relocatable code


108 cycles

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


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
A0 15    LDY #21
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 15    LDX #21
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
A0 0C    LDY #12
68       PLA
88       DEY
D0 FA    BNE *-4
Clobbers A, Y, S, and Z&N
A2 0C    LDX #12
68       PLA
CA       DEX
D0 FA    BNE *-4
Clobbers A, X, S, and Z&N
7 bytes
A4 00    LDY $00
A0 15    LDY #21
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A6 00    LDX $00
A2 15    LDX #21
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
90 FB    BCC *-3
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$08'
08       PHP ;first loop only
EA       NOP
30 FB    BMI *-3
Clobbers A, S, Z&N, C, and V; and writes in stack
08       PHP
A9       LDA #75
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #75
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
18       CLC
10 F9    BPL *-5
Clobbers A, Z&N, and C; requires @rts15; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
20 xx xx JSR @rts14
10 F9    BPL *-5
Clobbers A, S, Z&N, and C; requires @rts14; and writes in stack
18       CLC
A9 F4    LDA #244 ;hides 'NOP zp,X'
EA       NOP
69 01    ADC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes
9 bytes
20 xx xx JSR @rts14
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
Clobbers A, Z&N, and C; requires @rts14; and writes in stack
48   ... PHA      × 2
08       PHP
A0 13    LDY #19
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
48   ... PHA      × 2
08       PHP
A2 13    LDX #19
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
48   ... PHA      × 2
18       CLC
D0 FA    BNE *-4
Clobbers A, S, Z&N, and C; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V
08       PHP
48       PHA
A9       LDA #68
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
68       PLA
28       PLP
Writes in stack
EA       NOP
38       SEC
A9 0D    LDA #13
24 00    BIT $00
E9 01    SBC #1
D0 F7    BNE *-7
Clobbers A, Z&N, C, and V
EA       NOP
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 3
18       CLC
D0 F9    BNE *-5
Clobbers A, S, Z&N, and C
11 bytes
EA   ... NOP      × 3
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 3
18       CLC
D0 F9    BNE *-5
Clobbers A, Z&N, and C
28 bytes
EA       NOP
68       PLA
48       PHA
68   ... PLA      × 25
Clobbers A, S, and Z&N
30 bytes
EA       NOP
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 24
10 E4    BPL *-26
Clobbers A, and Z&N
38 bytes
C5 00    CMP $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X \ × 8
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 \ × 8
76 00    ROR $00,X /
Clobbers Z&N, and V
E6 xx    INC @zptemp
26 00    ROL $00   \ × 2
66 00    ROR $00   /
36 00    ROL $00,X \ × 7
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 \ × 8
76 00    ROR $00,X /
Clobbers Z&N; and requires support for unofficial opcodes
39 bytes
4C xx xx JMP *+3
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X \ × 8
76 00    ROR $00,X /
Clobbers Z&N; and not relocatable code


110 cycles

5 bytes
A9       LDA #83
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
68       PLA
A0 15    LDY #21
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
68       PLA
A2 15    LDX #21
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
7 bytes
EA   ... NOP      × 2
A0 15    LDY #21
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA   ... NOP      × 2
A2 15    LDX #21
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
68       PLA
A9 E9    LDA #$E9 ;hides 'SBC #$08'
08       PHP ;first loop only
EA       NOP
30 FB    BMI *-3
Clobbers A, S, Z&N, C, and V; and writes in stack
08       PHP
A9       LDA #76
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #76
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA       NOP
08       PHP
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      × 3
18       CLC
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, and C; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
Clobbers A, Z&N, and C
12 bytes
48       PHA
8C       TXA
48       PHA
A2 0D    LDX #13
EA       NOP
CA       DEX
D0 FA    BNE *-4
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
10 FA    BPL *-4
68       PLA
28       PLP
Requires @rts14; and writes in stack
08       PHP
28       PLP
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
10 FB    BPL *-3
68       PLA
28       PLP
Requires dummy interrupt handler; and writes in stack
48       PHA
08       PHP
48       PHA
38       SEC
A9 12    LDA #18
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP       \ × 2
28       PLP       /
10 F9    BPL *-5
68       PLA
28       PLP
Writes in stack
28 bytes
EA       NOP
68   ... PLA      × 27
Clobbers A, S, and Z&N
30 bytes
68       PLA
48       PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 23
10 E5    BPL *-25
Clobbers A, and Z&N
37 bytes
EA       NOP
36 00    ROL $00,X \ × 9
76 00    ROR $00,X /
Clobbers Z&N


111 cycles

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


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      × 2
A0 15    LDY #21
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
48   ... PHA      × 2
A2 15    LDX #21
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A2 15    LDX #21
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
EA       NOP
68       PLA
A0 15    LDY #21
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, 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      × 3
A2 15    LDX #21
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 3
A0 15    LDY #21
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 15    LDA #21
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
90 FB    BCC *-3
Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack
9 bytes
98       TYA
48       PHA
A0 14    LDY #20
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
08       PHP
A0 0D    LDY #13
C5 00    CMP $00
88       DEY
D0 F9    BNE *-5
28       PLP
Clobbers Y; 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
EA   ... NOP      × 2
38       SEC
A9 15    LDA #21
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
48       PHA
A9       LDA #71
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
08       PHP
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 13    LDA #19
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
18       CLC
D0 FB    BNE *-3
Clobbers A, Z&N, and C
28 bytes
68   ... PLA      × 28
Clobbers A, S, and Z&N
31 bytes
EA       NOP
68       PLA
48       PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 23
10 E5    BPL *-25
Clobbers A, and Z&N
38 bytes
EA   ... NOP      × 2
36 00    ROL $00,X \ × 9
76 00    ROR $00,X /
Clobbers Z&N


113 cycles

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


114 cycles

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


115 cycles

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


116 cycles

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


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      × 2
A2 16    LDX #22
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
48   ... PHA      × 2
A0 16    LDY #22
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC    BNE *-2
Clobbers A, S, Z&N, C, and V
08       PHP
A9       LDA #83
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #83
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA   ... NOP      × 3
A0 16    LDY #22
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA   ... NOP      × 3
A2 16    LDX #22
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA   ... NOP      × 3
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC    BNE *-2
Clobbers A, Z&N, C, and V
9 bytes
8C       TXA
48       PHA
A2 15    LDX #21
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 15    LDY #21
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 15    LDX #21
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
48       PHA
A9       LDA #76
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
08       PHP
38       SEC
A9 15    LDA #21
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 15    LDA #21
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack
18   ... CLC      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
90 F8    BCC *-6
Clobbers A, Z&N, and C
30 bytes
EA       NOP
68       PLA
48       PHA
68   ... PLA      × 27
Clobbers A, S, and Z&N
32 bytes
EA       NOP
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 26
10 E2    BPL *-28
Clobbers A, and Z&N
40 bytes
EA   ... NOP      × 2
E6 xx    INC @zptemp
36 00    ROL $00,X \ × 9
76 00    ROR $00,X /
Clobbers Z&N; and requires @zptemp
41 bytes
EA   ... NOP      × 3
C5 00    CMP $00
36 00    ROL $00,X \ × 9
76 00    ROR $00,X /
Clobbers Z&N, and C
EA   ... NOP      × 3
24 00    BIT $00
36 00    ROL $00,X \ × 9
76 00    ROR $00,X /
Clobbers Z&N, and V
EA   ... NOP      × 3
04 00    NOP $00
36 00    ROL $00,X \ × 9
76 00    ROR $00,X /
Clobbers Z&N; and requires support for unofficial opcodes
42 bytes
EA   ... NOP      × 3
4C xx xx JMP *+3
36 00    ROL $00,X \ × 9
76 00    ROR $00,X /
Clobbers Z&N; and not relocatable code


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
A0 17    LDY #23
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA       NOP
A2 17    LDX #23
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FA    BCS *-4
Clobbers A, Z&N, C, and V
7 bytes
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC    BNE *-2
28       PLP
Clobbers A; and writes in stack
08       PHP
A0 16    LDY #22
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 16    LDX #22
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC    BNE *-2
68       PLA
Clobbers Z&N, C, and V; and writes in stack
9 bytes
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
18       CLC
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, and C; and writes in stack
08       PHP
48       PHA
A9       LDA #77
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
11 bytes
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18   ... CLC      × 2
90 00    BCC *+2
18       CLC
D0 F8    BNE *-6
Clobbers A, Z&N, and C
12 bytes
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts14
18       CLC
10 F9    BPL *-5
68       PLA
28       PLP
Requires @rts14; and writes in stack
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
85 xx    STA @zptemp
00 00    BRK 0
10 F9    BPL *-5
68       PLA
28       PLP
Requires @zptemp, and dummy interrupt handler; and writes in stack
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
04 00    NOP $00
00 00    BRK 0
10 F9    BPL *-5
68       PLA
28       PLP
Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack
48       PHA
08       PHP
48       PHA
38       SEC
A9 69    LDA #$69 ;hides 'ADC #$5A'
5A       NOP ;first loop only
EA       NOP
D0 F9    BNE *-5
68       PLA
28       PLP
Clobbers S; requires support for unofficial opcodes; and writes in stack
13 bytes
EA       NOP
08       PHP
28       PLP
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
68       PLA
28       PLP
Writes in stack
30 bytes
EA       NOP
68   ... PLA      × 29
Clobbers A, S, and Z&N
32 bytes
68       PLA
48       PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 25
10 E3    BPL *-27
Clobbers A, and Z&N
40 bytes
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X \ × 9
76 00    ROR $00,X /
Clobbers Z&N


119 cycles

5 bytes
A9       LDA #92
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A0 88    LDY #136 ;hides 'DEY'
08       PHP
28       PLP
30 FB    BMI *-3
Clobbers Y, and Z&N; and writes in stack
A0 88    LDY #136 ;hides 'DEY'
68       PLA
48       PHA
30 FB    BMI *-3
Clobbers A, Y, and Z&N
48       PHA
A2 17    LDX #23
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
Clobbers A, S, Z&N, C, and V; and writes in stack
7 bytes
A6 00    LDX $00
A2 17    LDX #23
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A4 00    LDY $00
A0 17    LDY #23
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A5 00    LDA $00
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
Clobbers A, Z&N, C, and V
A9 0A    LDA #$0A ;hides 'ASL A'
48       PHA
08       PHP
28       PLP
D0 FA    BNE *-4
Clobbers A, S, Z&N, and C; and writes in stack
08       PHP
A9       LDA #85
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #85
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
24 00    BIT $00
28       PLP
D0 F9    BNE *-5
Clobbers A, Z&N, and C; and writes in stack
9 bytes
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 4
18       CLC
D0 F8    BNE *-6
Clobbers A, Z&N, and C
48   ... PHA      × 2
08       PHP
A0 15    LDY #21
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
48   ... PHA      × 2
08       PHP
A2 15    LDX #21
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
08       PHP
48       PHA
A9       LDA #78
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
8C       TXA
48       PHA
A2 15    LDX #21
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 3
08       PHP
A0 15    LDY #21
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA   ... NOP      × 3
08       PHP
A2 15    LDX #21
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
48       PHA
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
90 FB    BCC *-3
28       PLP
Clobbers A, and S; requires dummy interrupt handler; and writes in stack
48   ... PHA      × 2
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
90 FB    BCC *-3
68       PLA
Clobbers S, Z&N, and C; requires dummy interrupt handler; and writes in stack
11 bytes
48       PHA
98       TYA
48       PHA
A0 14    LDY #20
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
38       SEC
A9 15    LDA #21
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack
30 bytes
68       PLA
48       PHA
68   ... PLA      × 28
Clobbers A, S, and Z&N
32 bytes
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 27
10 E1    BPL *-29
Clobbers A, and Z&N
41 bytes
EA   ... NOP      × 3
E6 xx    INC @zptemp
36 00    ROL $00,X \ × 9
76 00    ROR $00,X /
Clobbers Z&N; and requires @zptemp
42 bytes
C5 00    CMP $00
26 00    ROL $00   \ × 2
66 00    ROR $00   /
36 00    ROL $00,X \ × 8
76 00    ROR $00,X /
Clobbers Z&N, and C
24 00    BIT $00
26 00    ROL $00   \ × 2
66 00    ROR $00   /
36 00    ROL $00,X \ × 8
76 00    ROR $00,X /
Clobbers Z&N, and V
04 00    NOP $00
26 00    ROL $00   \ × 2
66 00    ROR $00   /
36 00    ROL $00,X \ × 8
76 00    ROR $00,X /
Clobbers Z&N; and requires support for unofficial opcodes
43 bytes
4C xx xx JMP *+3
26 00    ROL $00   \ × 2
66 00    ROR $00   /
36 00    ROL $00,X \ × 8
76 00    ROR $00,X /
Clobbers Z&N; and not relocatable code


120 cycles

5 bytes
A9       LDA #93
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A2 11    LDX #17
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
A0 11    LDY #17
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
68       PLA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
Clobbers A, S, Z&N, C, and V
7 bytes
EA   ... NOP      × 2
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
Clobbers A, Z&N, C, and V
08       PHP
A9       LDA #86
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #86
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FA    BNE *-4
28       PLP
Clobbers A; and writes in stack
08       PHP
A0 10    LDY #16
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 10    LDX #16
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
48       PHA
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, C, and V; and writes in stack
9 bytes
08       PHP
48       PHA
A9       LDA #79
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
18       CLC
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
EA       NOP
68       PLA
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
18   ... CLC      × 2
90 00    BCC *+2
18       CLC
D0 F8    BNE *-6
Clobbers A, Z&N, and C
48       PHA
08       PHP
48       PHA
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 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
30 bytes
68   ... PLA      × 30
Clobbers A, S, and Z&N
33 bytes
EA       NOP
68       PLA
48       PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 25
10 E3    BPL *-27
Clobbers A, and Z&N
40 bytes
36 00    ROL $00,X \ × 10
76 00    ROR $00,X /
Clobbers Z&N


121 cycles

5 bytes
A2 18    LDX #24
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A0 18    LDY #24
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
A9       LDA #94
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
7 bytes
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
08       PHP
28       PLP
30 FA    BMI *-4
Clobbers A, Z&N, C, and V; and writes in stack
E6 xx    INC @zptemp
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
Clobbers A, Z&N, C, and V; and requires @zptemp
08       PHP
A9       LDA #87
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #87
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
90 FA    BCC *-4
Clobbers A, Z&N, and C; requires @rts15; and writes in stack
EA       NOP
A5 00    LDA $00
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
Clobbers A, Z&N, C, and V
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
00 00    BRK 0
90 FA    BCC *-4
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack
48       PHA
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC    BNE *-2
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
08       PHP
A0 16    LDY #22
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 16    LDX #22
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X, and S; and writes in stack
48   ... PHA      × 2
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC    BNE *-2
68       PLA
Clobbers S, Z&N, C, and V; and writes in stack
9 bytes
08       PHP
A5 00    LDA $00
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC    BNE *-2
28       PLP
Clobbers A; and writes in stack
08       PHP
A4 00    LDY $00
A0 16    LDY #22
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
08       PHP
A6 00    LDX $00
A2 16    LDX #22
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
24 00    BIT $00
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC    BNE *-2
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
A9       LDA #80
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 4
18       CLC
D0 F8    BNE *-6
Clobbers A, Z&N, and C
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
18       CLC
D0 FA    BNE *-4
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
C5 00    CMP $00
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
18       CLC
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 14    LDY #20
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA   ... NOP      × 2
08       PHP
48       PHA
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack
31 bytes
EA       NOP
68       PLA
48       PHA
68   ... PLA      × 28
Clobbers A, S, and Z&N
33 bytes
EA       NOP
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 27
10 E1    BPL *-29
Clobbers A, and Z&N
42 bytes
C5 00    CMP $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X \ × 9
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 \ × 9
76 00    ROR $00,X /
Clobbers Z&N, and V
E6 xx    INC @zptemp
26 00    ROL $00   \ × 2
66 00    ROR $00   /
36 00    ROL $00,X \ × 8
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 \ × 9
76 00    ROR $00,X /
Clobbers Z&N; and requires support for unofficial opcodes
43 bytes
4C xx xx JMP *+3
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X \ × 9
76 00    ROR $00,X /
Clobbers Z&N; and not relocatable code


122 cycles

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


123 cycles

5 bytes
A9       LDA #96
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
EA       NOP
A2 18    LDX #24
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
EA       NOP
A0 18    LDY #24
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
7 bytes
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
28       PLP
Clobbers A; and writes in stack
08       PHP
A2 17    LDX #23
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 17    LDY #23
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
68       PLA
Clobbers Z&N, C, and V; and writes in stack
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      × 4
18       CLC
D0 F8    BNE *-6
Clobbers A, S, Z&N, and C
11 bytes
EA   ... NOP      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 4
18       CLC
D0 F8    BNE *-6
Clobbers A, Z&N, and C
E6 xx    INC @zptemp
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
18       CLC
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, and C; requires @zptemp; and writes in stack
08       PHP
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
90 FB    BCC *-3
68       PLA
28       PLP
Requires dummy interrupt handler; and writes in stack
EA       NOP
48   ... PHA      × 2
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
18       CLC
D0 FA    BNE *-4
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts15
18       CLC
10 F9    BPL *-5
68       PLA
28       PLP
Requires @rts15; and writes in stack
EA       NOP
C5 00    CMP $00
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
18       CLC
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, and C; and writes in stack
08       PHP
48       PHA
18       CLC
A9 F4    LDA #244 ;hides 'NOP zp,X'
EA       NOP
69 01    ADC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
13 bytes
48       PHA
98       TYA
48       PHA
A0 0D    LDY #13
A5 00    LDA $00
88       DEY
D0 F9    BNE *-5
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
20 xx xx JSR @rts14
08       PHP
48       PHA
A9 0A    LDA #$0A ;hides 'ASL A'
08       PHP
28       PLP
D0 FB    BNE *-3
68       PLA
28       PLP
Requires @rts14; and writes in stack
48   ... PHA      × 2
08       PHP
48       PHA
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA   ... NOP      × 3
08       PHP
48       PHA
38       SEC
A9 14    LDA #20
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack
31 bytes
68       PLA
48       PHA
68   ... PLA      × 29
Clobbers A, S, and Z&N
33 bytes
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 28
10 E0    BPL *-30
Clobbers A, and Z&N
42 bytes
C5 00    CMP $00
36 00    ROL $00,X \ × 10
76 00    ROR $00,X /
Clobbers Z&N, and C
24 00    BIT $00
36 00    ROL $00,X \ × 10
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 \ × 9
76 00    ROR $00,X /
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
36 00    ROL $00,X \ × 10
76 00    ROR $00,X /
Clobbers Z&N; and requires support for unofficial opcodes
43 bytes
4C xx xx JMP *+3
36 00    ROL $00,X \ × 10
76 00    ROR $00,X /
Clobbers Z&N; and not relocatable code


124 cycles

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


125 cycles

5 bytes
A9       LDA #98
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
68       PLA
A0 18    LDY #24
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
68       PLA
A2 18    LDX #24
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
7 bytes
EA   ... NOP      × 2
A0 18    LDY #24
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA   ... NOP      × 2
A2 18    LDX #24
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
08       PHP
A9       LDA #91
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #91
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FA    BCS *-4
28       PLP
Clobbers A; and writes in stack
EA       NOP
08       PHP
A2 17    LDX #23
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 17    LDY #23
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
48       PHA
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FA    BCS *-4
68       PLA
Clobbers Z&N, C, and V; and writes in stack
EA       NOP
38       SEC
A9 18    LDA #24
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
9 bytes
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FC    BNE *-2
68       PLA
28       PLP
Writes in stack
11 bytes
EA       NOP
68       PLA
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 4
18       CLC
D0 F8    BNE *-6
Clobbers A, S, Z&N, and C
12 bytes
EA   ... NOP      × 3
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 4
18       CLC
D0 F8    BNE *-6
Clobbers A, Z&N, and C
32 bytes
EA       NOP
68       PLA
48       PHA
68   ... PLA      × 29
Clobbers A, S, and Z&N
34 bytes
EA       NOP
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 28
10 E0    BPL *-30
Clobbers A, and Z&N
42 bytes
E6 xx    INC @zptemp
36 00    ROL $00,X \ × 10
76 00    ROR $00,X /
Clobbers Z&N; and requires @zptemp
43 bytes
EA       NOP
C5 00    CMP $00
36 00    ROL $00,X \ × 10
76 00    ROR $00,X /
Clobbers Z&N, and C
EA       NOP
24 00    BIT $00
36 00    ROL $00,X \ × 10
76 00    ROR $00,X /
Clobbers Z&N, and V
EA       NOP
04 00    NOP $00
36 00    ROL $00,X \ × 10
76 00    ROR $00,X /
Clobbers Z&N; and requires support for unofficial opcodes


126 cycles

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


127 cycles

5 bytes
48       PHA
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
Clobbers X, S, and Z&N; and writes in stack
A9       LDA #100
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
A2 12    LDX #18
EA       NOP
CA       DEX
D0 FA    BNE *-4
Clobbers X, and Z&N
A0 12    LDY #18
EA       NOP
88       DEY
D0 FA    BNE *-4
Clobbers Y, and Z&N
7 bytes
A9 E9    LDA #$E9 ;hides 'SBC #$2A'
2A       ROL A ;first loop only
00 00    BRK 0
B0 FA    BCS *-4
Clobbers A, Z&N, C, and V; requires dummy interrupt handler; and writes in stack
08       PHP
A9       LDA #93
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #93
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A0 11    LDY #17
EA       NOP
88       DEY
D0 FA    BNE *-4
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 11    LDX #17
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; and writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
EA       NOP
08       PHP
28       PLP
18       CLC
D0 F9    BNE *-5
Clobbers A, Z&N, and C; and writes in stack
68       PLA
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
28       PLP
Clobbers A, S, and Z&N; and writes in stack
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      × 2
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
28       PLP
Clobbers A; and writes in stack
EA   ... NOP      × 2
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
68       PLA
Clobbers Z&N, C, and V; and writes in stack
EA   ... NOP      × 2
38       SEC
A9 18    LDA #24
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
48       PHA
A9       LDA #86
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
48       PHA
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
D0 FA    BNE *-4
68       PLA
28       PLP
Writes in stack
A9 0A    LDA #$0A ;hides 'ASL A'
18   ... CLC      × 3
90 00    BCC *+2
18       CLC
D0 F7    BNE *-7
Clobbers A, Z&N, and C
32 bytes
68       PLA
48       PHA
68   ... PLA      × 30
Clobbers A, S, and Z&N
34 bytes
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 29
10 DF    BPL *-31
Clobbers A, and Z&N
43 bytes
EA       NOP
E6 xx    INC @zptemp
36 00    ROL $00,X \ × 10
76 00    ROR $00,X /
Clobbers Z&N; and requires @zptemp


128 cycles

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


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


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


131 cycles

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


132 cycles

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


133 cycles

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


134 cycles

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


135 cycles

5 bytes
A9       LDA #108
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
68       PLA
A2 1A    LDX #26
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
68       PLA
A0 1A    LDY #26
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
7 bytes
EA   ... NOP      × 2
A0 1A    LDY #26
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA   ... NOP      × 2
A2 1A    LDX #26
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
D0 FA    BNE *-4
Clobbers A, Z&N, and C; requires @rts12; and writes in stack
08       PHP
A9       LDA #101
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #101
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
8C       TXA
48       PHA
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA       NOP
08       PHP
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      × 5
18       CLC
D0 F7    BNE *-7
Clobbers A, Z&N, and C
11 bytes
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
08       PHP
28       PLP
30 FA    BMI *-4
68       PLA
28       PLP
Writes in stack
34 bytes
68       PLA
48       PHA
68   ... PLA      × 32
Clobbers A, S, and Z&N
36 bytes
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 31
10 DD    BPL *-33
Clobbers A, and Z&N


136 cycles

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


137 cycles

5 bytes
A9       LDA #110
20 xx xx JSR delay_a_25_clocks
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks
6 bytes
00 00    BRK 0
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
Clobbers X, and Z&N; requires dummy interrupt handler; and writes in stack
A0 11    LDY #17
48       PHA
88       DEY
D0 FA    BNE *-4
Clobbers Y, S, and Z&N; and writes in stack
A2 11    LDX #17
48       PHA
CA       DEX
D0 FA    BNE *-4
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A0 11    LDY #17
A5 00    LDA $00
88       DEY
D0 F9    BNE *-5
Clobbers A, Y, and Z&N
A2 11    LDX #17
A5 00    LDA $00
CA       DEX
D0 F9    BNE *-5
Clobbers A, X, and Z&N
A2 11    LDX #17
A4 00    LDY $00
CA       DEX
D0 F9    BNE *-5
Clobbers X, Y, and Z&N
A0 11    LDY #17
C5 00    CMP $00
88       DEY
D0 F9    BNE *-5
Clobbers Y, Z&N, and C
A2 11    LDX #17
C5 00    CMP $00
CA       DEX
D0 F9    BNE *-5
Clobbers X, Z&N, and C
A0 11    LDY #17
24 00    BIT $00
88       DEY
D0 F9    BNE *-5
Clobbers Y, Z&N, and V
A2 11    LDX #17
24 00    BIT $00
CA       DEX
D0 F9    BNE *-5
Clobbers X, Z&N, and V
A0 11    LDY #17
85 xx    STA @zptemp
88       DEY
D0 F9    BNE *-5
Clobbers Y, and Z&N; and requires @zptemp
A2 11    LDX #17
85 xx    STA @zptemp
CA       DEX
D0 F9    BNE *-5
Clobbers X, and Z&N; and requires @zptemp
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
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
20 xx xx JSR @rts12
D0 FA    BNE *-4
Clobbers A, Z&N, and C; requires @rts12; and writes in stack
48   ... PHA      × 2
08       PHP
A2 E8    LDX #232 ;hides 'INX'
D0 FD    BNE *-1
28       PLP
Clobbers X, and S; and writes in stack
68       PLA
38       SEC
A9 1A    LDA #26
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, S, Z&N, C, and V
9 bytes
8C       TXA
48       PHA
A2 19    LDX #25
CA       DEX
D0 FB    BNE *-3
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 19    LDX #25
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 19    LDY #25
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA   ... NOP      × 2
38       SEC
A9 1A    LDA #26
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
48       PHA
A9       LDA #96
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
08       PHP
38       SEC
A9 19    LDA #25
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 19    LDA #25
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
11 bytes
08       PHP
28       PLP
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
B0 FC    BCS *-2
68       PLA
28       PLP
Writes in stack
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 5
18       CLC
D0 F7    BNE *-7
Clobbers A, Z&N, and C
35 bytes
EA       NOP
68       PLA
48       PHA
68   ... PLA      × 32
Clobbers A, S, and Z&N
37 bytes
EA       NOP
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 31
10 DD    BPL *-33
Clobbers A, and Z&N


138 cycles

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


139 cycles

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


140 cycles

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


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


142 cycles

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


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


144 cycles

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


145 cycles

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


146 cycles

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


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


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


149 cycles

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


150 cycles

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


151 cycles

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


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      × 2
A0 1D    LDY #29
88       DEY
D0 FB    BNE *-3
Clobbers Y, S, and Z&N; and writes in stack
48   ... PHA      × 2
A2 1D    LDX #29
CA       DEX
D0 FB    BNE *-3
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A0 1D    LDY #29
88       DEY
D0 FB    BNE *-3
Clobbers A, Y, S, and Z&N
EA       NOP
68       PLA
A2 1D    LDX #29
CA       DEX
D0 FB    BNE *-3
Clobbers A, X, S, and Z&N
68       PLA
18       CLC
A9 E9    LDA #$E9 ;hides 'SBC #$9A'
9A       TXS ;first loop only
D0 FA    BNE *-4
Clobbers A, S, Z&N, C, and V
08       PHP
A9       LDA #118
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #118
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
EA   ... NOP      × 3
A0 1D    LDY #29
88       DEY
D0 FB    BNE *-3
Clobbers Y, and Z&N
EA   ... NOP      × 3
A2 1D    LDX #29
CA       DEX
D0 FB    BNE *-3
Clobbers X, and Z&N
9 bytes
98       TYA
48       PHA
A0 1C    LDY #28
88       DEY
D0 FB    BNE *-3
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA   ... NOP      × 2
08       PHP
A2 1C    LDX #28
CA       DEX
D0 FB    BNE *-3
28       PLP
Clobbers X; and writes in stack
EA   ... NOP      × 2
08       PHP
A0 1C    LDY #28
88       DEY
D0 FB    BNE *-3
28       PLP
Clobbers Y; and writes in stack
EA   ... NOP      × 2
38       SEC
A9 1D    LDA #29
E9 01    SBC #1
D0 F9    BNE *-5
Clobbers A, Z&N, C, and V
08       PHP
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
D0 FB    BNE *-3
28       PLP
Clobbers A; requires dummy interrupt handler; and writes in stack
48       PHA
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
00 00    BRK 0
D0 FB    BNE *-3
68       PLA
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack
EA       NOP
08       PHP
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A       NOP ;first loop only
D0 FA    BNE *-4
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
EA       NOP
48       PHA
18       CLC
A9 EB    LDA #$EB ;hides 'SBC #$7A'
7A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack
08       PHP
48       PHA
A9       LDA #111
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
EA       NOP
08       PHP
38       SEC
A9 1C    LDA #28
E9 01    SBC #1
D0 F9    BNE *-5
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 1C    LDA #28
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
Clobbers Z&N, C, and V; and writes in stack
08       PHP
48       PHA
38       SEC
A9 E9    LDA #$E9 ;hides 'SBC #$3A'
3A       NOP ;first loop only
D0 FA    BNE *-4
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 1B    LDA #27
E9 01    SBC #1
D0 F9    BNE *-5
68       PLA
28       PLP
Writes in stack
14 bytes
EA       NOP
A9 0A    LDA #$0A ;hides 'ASL A'
D0 FD    BNE *-1
A9 0A    LDA #$0A ;hides 'ASL A'
18   ... CLC      × 2
90 00    BCC *+2
18       CLC
D0 F8    BNE *-6
Clobbers A, Z&N, and C
38 bytes
68   ... PLA      × 38
Clobbers A, S, and Z&N
41 bytes
EA       NOP
68       PLA
48       PHA
A9 09    LDA #$09 ;hides 'ORA #$EA'
EA       NOP ;first loop only
EA   ... NOP      × 33
10 DB    BPL *-35
Clobbers A, and Z&N


153 cycles

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


154 cycles

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


155 cycles

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


156 cycles

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


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


158 cycles

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


159 cycles

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


160 cycles

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


161 cycles

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


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


163 cycles

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


164 cycles

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


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


166 cycles

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


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


168 cycles

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


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
D0 FC    BNE *-2
Clobbers A, Z&N, C, and V; requires dummy interrupt handler; and writes in stack
68   ... PLA      × 2
A9 EB    LDA #$EB ;hides 'SBC #$18'
18       CLC ;first loop only
D0 FC    BNE *-2
Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes
08       PHP
A9       LDA #135
20 xx xx JSR delay_a_25_clocks
28       PLP
Clobbers A; requires delay_a_25_clocks; and writes in stack
48       PHA
A9       LDA #135
20 xx xx JSR delay_a_25_clocks
68       PLA
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack
8 bytes
08       PHP
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
B0 FB    BCS *-3
28       PLP
Clobbers A; and writes in stack
08       PHP
A2 17    LDX #23
EA       NOP
CA       DEX
D0 FA    BNE *-4
28       PLP
Clobbers X; 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
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
B0 FB    BCS *-3
68       PLA
Clobbers Z&N, C, and V; and writes in stack
68       PLA
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
B0 FB    BCS *-3
Clobbers A, Z&N, C, and V
9 bytes
08       PHP
48       PHA
A9       LDA #128
20 xx xx JSR delay_a_25_clocks
68       PLA
28       PLP
Requires delay_a_25_clocks; and writes in stack
10 bytes
08       PHP
48       PHA
A9 E9    LDA #$E9 ;hides 'SBC #$0A'
0A       ASL A ;first loop only
EA       NOP
D0 FB    BNE *-3
68       PLA
28       PLP
Writes in stack
13 bytes
18       CLC
A9 0A    LDA #$0A ;hides 'ASL A'
EA   ... NOP      × 7
18       CLC
D0 F5    BNE *-9
Clobbers A, Z&N, and C
43 bytes
EA       NOP
68       PLA
48       PHA
68   ... PLA      × 40
Clobbers A, S, and Z&N


170 cycles

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


171 cycles

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


172 cycles

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


173 cycles

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


174 cycles

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


175 cycles

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


176 cycles

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


177 cycles

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


178 cycles

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


179 cycles

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


180 cycles

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


182 cycles

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


183 cycles

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


184 cycles

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


185 cycles

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


186 cycles

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


187 cycles

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


188 cycles

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


189 cycles

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


190 cycles

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


191 cycles

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


192 cycles

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


See also