Fixed cycle delay

From NESdev Wiki
Revision as of 12:34, 14 March 2016 by Bisqwit (talk | contribs) (Add opcodes)
Jump to navigationJump to search

Delay code

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

All branch instructions assume that no page wrap occurs.

Explanations on the requirements:

  • @zp_temp means you have a zeropage address that you can write random data into.
  • @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, @rts15 means you know a memory address that contains a harmless 3-cycle instruction that fits your constraints (such as LDA $00), followed by RTS.
  • @A, @X, @Y are local labels.

{{#css:

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

}}


2 cycles

1 bytes
EA       NOP
No requirements


3 cycles

1 bytes
48       PHA
Clobbers S; and writes in stack
2 bytes
A5 00    LDA $00
Clobbers A, and Z&N
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


4 cycles

1 bytes
68       PLA
Clobbers A, S, and Z&N
2 bytes
EA       NOP
EA       NOP
No requirements


5 cycles

2 bytes
EA       NOP
48       PHA
Clobbers S; and writes in stack
3 bytes
EA       NOP
A5 00    LDA $00
Clobbers A, 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


6 cycles

2 bytes
48       PHA
48       PHA
Clobbers S; and writes in stack
EA       NOP
68       PLA
Clobbers A, S, and Z&N
3 bytes
EA       NOP
EA       NOP
EA       NOP
No requirements


7 cycles

2 bytes
08       PHP
28       PLP
Writes in stack
3 bytes
A5 00    LDA $00
68       PLA
Clobbers A, S, and Z&N
4 bytes
EA       NOP
EA       NOP
A5 00    LDA $00
Clobbers A, and Z&N
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
5 bytes
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


8 cycles

2 bytes
68       PLA
68       PLA
Clobbers A, S, and Z&N
3 bytes
BA       TSX
68       PLA
9A       TXS
Clobbers A, X, and Z&N
EA       NOP
48       PHA
48       PHA
Clobbers S; and writes in stack
4 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


9 cycles

3 bytes
EA       NOP
08       PHP
28       PLP
Writes in stack
4 bytes
EA       NOP
A5 00    LDA $00
68       PLA
Clobbers A, S, and Z&N
5 bytes
EA       NOP
EA       NOP
EA       NOP
A5 00    LDA $00
Clobbers A, and Z&N
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
6 bytes
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


10 cycles

3 bytes
48       PHA
08       PHP
28       PLP
Clobbers S; and writes in stack
EA       NOP
68       PLA
68       PLA
Clobbers A, S, and Z&N
4 bytes
08       PHP
24 00    BIT $00
28       PLP
Writes in stack
26 00    ROL $00
66 00    ROR $00
Clobbers Z&N
5 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


11 cycles

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


12 cycles

3 bytes
20 xx xx JSR @rts12
Requires @rts12; and writes in stack
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
4 bytes
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
EA       NOP
48       PHA
08       PHP
28       PLP
Clobbers S; and writes in stack
5 bytes
08       PHP
18       CLC
90 00    BCC *+2
28       PLP
Writes in stack
6 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


13 cycles

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


14 cycles

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


15 cycles

3 bytes
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
4 bytes
48       PHA
20 xx xx JSR @rts12
Clobbers S; requires @rts12; and writes in stack
48       PHA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N; and writes in stack
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
08       PHP
BA       TSX
68       PLA
9A       TXS
28       PLP
Clobbers A, and X; and writes in stack
24 00    BIT $00
20 xx xx JSR @rts12
Clobbers Z&N, and V; requires @rts12; and writes in stack
85 xx    STA @zptemp
20 xx xx JSR @rts12
Requires @zptemp, and @rts12; and writes in stack
EA       NOP
48       PHA
48       PHA
08       PHP
28       PLP
Clobbers S; and writes in stack
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
04 00    NOP $00
20 xx xx JSR @rts12
Requires @rts12, and support for unofficial opcodes; and writes in stack
6 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
08       PHP
28       PLP
Writes in stack
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
A2 02    LDX #2
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 02    LDY #2
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
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
18       CLC
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
Clobbers Z&N, and C
8 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
9 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


16 cycles

4 bytes
EA       NOP
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
5 bytes
EA       NOP
08       PHP
28       PLP
08       PHP
28       PLP
Writes in stack
A2 03    LDX #3
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 03    LDY #3
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
6 bytes
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
8 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


17 cycles

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


18 cycles

4 bytes
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
5 bytes
A5 00    LDA $00
20 xx xx JSR @rts15
Clobbers A, and Z&N; requires @rts15; and writes in stack
24 00    BIT $00
20 xx xx JSR @rts15
Clobbers Z&N, and V; requires @rts15; and writes in stack
EA       NOP
EA       NOP
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
85 xx    STA @zptemp
20 xx xx JSR @rts15
Requires @zptemp, and @rts15; and writes in stack
48       PHA
48       PHA
20 xx xx JSR @rts12
Clobbers S; requires @rts12; and writes in stack
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
04 00    NOP $00
20 xx xx JSR @rts15
Requires @rts15, and support for unofficial opcodes; and writes in stack
6 bytes
EA       NOP
EA       NOP
08       PHP
28       PLP
08       PHP
28       PLP
Writes in stack
EA       NOP
A0 03    LDY #3
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 03    LDX #3
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
7 bytes
EA       NOP
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
9 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


19 cycles

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


20 cycles

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


21 cycles

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


22 cycles

5 bytes
08       PHP
28       PLP
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
68       PLA
68       PLA
20 xx xx JSR @rts14
Clobbers A, S, and Z&N; requires @rts14; and writes in stack
6 bytes
A0 03    LDY #3
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 03    LDX #3
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts12
Clobbers S; requires @rts12; and writes in stack
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
EA       NOP
48       PHA
48       PHA
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
7 bytes
08       PHP
24 00    BIT $00
28       PLP
20 xx xx JSR @rts12
Requires @rts12; and writes in stack
08       PHP
48       PHA
BA       TSX
68       PLA
9A       TXS
68       PLA
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
EA       NOP
EA       NOP
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
48       PHA
08       PHP
36 00    ROL $00,X
76 00    ROR $00,X
28       PLP
Clobbers S; and writes in stack
8 bytes
08       PHP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
28       PLP
Writes in stack
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
11 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


23 cycles

5 bytes
68       PLA
68       PLA
20 xx xx JSR @rts15
Clobbers A, S, and Z&N; requires @rts15; and writes in stack
6 bytes
EA       NOP
A2 04    LDX #4
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 04    LDY #4
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
EA       NOP
48       PHA
48       PHA
20 xx xx JSR @rts15
Clobbers S; requires @rts15; and writes in stack
48       PHA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N; and writes in stack
7 bytes
EA       NOP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
Writes in stack
38       SEC
A9 04    LDA #4
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
10 bytes
A5 00    LDA $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
Clobbers A, and Z&N
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
24 00    BIT $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
Clobbers Z&N, and V
85 xx    STA @zptemp
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
Clobbers Z&N; and requires support for unofficial opcodes
11 bytes
4C xx xx JMP *+3
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
Clobbers Z&N; and not relocatable code
12 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
13 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


24 cycles

6 bytes
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Requires @rts12; and writes in stack
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
48       PHA
A0 04    LDY #4
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 04    LDX #4
@X:
CA       DEX
D0 xx    BNE @X
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
EA       NOP
A0 03    LDY #3
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 03    LDX #3
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, 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
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
Clobbers S; and writes in stack
8 bytes
08       PHP
28       PLP
08       PHP
26 00    ROL $00
66 00    ROR $00
28       PLP
Writes in stack
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
12 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


25 cycles

6 bytes
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts15
Clobbers S; requires @rts15; and writes in stack
A0 03    LDY #3
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
A2 03    LDX #3
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
68       PLA
A2 04    LDX #4
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 04    LDY #4
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
48       PHA
68       PLA
68       PLA
20 xx xx JSR @rts14
Clobbers A, S, and Z&N; requires @rts14; 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
EA       NOP
EA       NOP
A2 04    LDX #4
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
A0 04    LDY #4
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
48       PHA
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts12
Clobbers S; requires @rts12; and writes in stack
EA       NOP
48       PHA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N; and writes in stack
8 bytes
EA       NOP
EA       NOP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
Writes in stack
EA       NOP
38       SEC
A9 04    LDA #4
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
10 bytes
A5 00    LDA $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
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
85 xx    STA @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
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
18       CLC
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
Clobbers Z&N, and C
13 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
14 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


26 cycles

5 bytes
A0 05    LDY #5
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 05    LDX #5
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
6 bytes
20 xx xx JSR @rts12
20 xx xx JSR @rts14
Requires @rts12, and @rts14; and writes in stack
48       PHA
68       PLA
68       PLA
20 xx xx JSR @rts15
Clobbers A, S, and Z&N; requires @rts15; and writes in stack
68       PLA
68       PLA
68       PLA
20 xx xx JSR @rts14
Clobbers A, S, and Z&N; requires @rts14; and writes in stack
7 bytes
EA       NOP
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Requires @rts12; and writes in stack
EA       NOP
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
36 00    ROL $00,X
76 00    ROR $00,X
20 xx xx JSR @rts14
Clobbers Z&N; requires @rts14; and writes in stack
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
EA       NOP
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
8 bytes
08       PHP
28       PLP
08       PHP
36 00    ROL $00,X
76 00    ROR $00,X
28       PLP
Writes in stack
9 bytes
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
13 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


27 cycles

6 bytes
20 xx xx JSR @rts12
20 xx xx JSR @rts15
Requires @rts12, and @rts15; and writes in stack
68       PLA
68       PLA
68       PLA
20 xx xx JSR @rts15
Clobbers A, S, and Z&N; requires @rts15; and writes in stack
7 bytes
36 00    ROL $00,X
76 00    ROR $00,X
20 xx xx JSR @rts15
Clobbers Z&N; requires @rts15; and writes in stack
48       PHA
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Clobbers S; requires @rts12; and writes in stack
EA       NOP
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts15
Clobbers S; requires @rts15; and writes in stack
48       PHA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N; and writes in stack
EA       NOP
A0 03    LDY #3
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
EA       NOP
A2 03    LDX #3
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
A0 02    LDY #2
@Y:
68       PLA
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
A2 02    LDX #2
@X:
68       PLA
68       PLA
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
48       PHA
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
8 bytes
EA       NOP
08       PHP
24 00    BIT $00
28       PLP
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
A5 00    LDA $00
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Clobbers A, and Z&N; requires @rts12; and writes in stack
EA       NOP
EA       NOP
EA       NOP
A0 04    LDY #4
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
EA       NOP
A2 04    LDX #4
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
08       PHP
BA       TSX
68       PLA
68       PLA
68       PLA
68       PLA
9A       TXS
28       PLP
Clobbers A, and X; and writes in stack
24 00    BIT $00
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Clobbers Z&N, and V; requires @rts12; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
85 xx    STA @zptemp
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Requires @zptemp, and @rts12; and writes in stack
48       PHA
48       PHA
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
Clobbers S; and writes in stack
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
04 00    NOP $00
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Requires @rts12, and support for unofficial opcodes; and writes in stack
9 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
Writes in stack
EA       NOP
EA       NOP
38       SEC
A9 04    LDA #4
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
11 bytes
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
18       CLC
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
14 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
15 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


28 cycles

6 bytes
EA       NOP
A2 05    LDX #5
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 05    LDY #5
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
7 bytes
08       PHP
A0 04    LDY #4
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 04    LDX #4
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 05    LDA #5
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
48       PHA
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts15
Clobbers S; requires @rts15; and writes in stack
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
8 bytes
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
Writes in stack
10 bytes
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
14 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


29 cycles

6 bytes
A0 04    LDY #4
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 04    LDX #4
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
20 xx xx JSR @rts14
20 xx xx JSR @rts15
Requires @rts14, and @rts15; and writes in stack
7 bytes
08       PHP
28       PLP
08       PHP
28       PLP
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
48       PHA
20 xx xx JSR @rts12
20 xx xx JSR @rts14
Clobbers S; requires @rts12, and @rts14; and writes in stack
48       PHA
68       PLA
68       PLA
68       PLA
20 xx xx JSR @rts14
Clobbers A, S, and Z&N; requires @rts14; and writes in stack
8 bytes
08       PHP
A2 03    LDX #3
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 03    LDY #3
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
A5 00    LDA $00
20 xx xx JSR @rts12
20 xx xx JSR @rts14
Clobbers A, and Z&N; requires @rts12, and @rts14; 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
85 xx    STA @zptemp
20 xx xx JSR @rts12
20 xx xx JSR @rts14
Requires @zptemp, @rts12, and @rts14; and writes in stack
EA       NOP
48       PHA
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Clobbers S; requires @rts12; and writes in stack
EA       NOP
48       PHA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N; and writes in stack
EA       NOP
48       PHA
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
04 00    NOP $00
20 xx xx JSR @rts12
20 xx xx JSR @rts14
Requires @rts12, @rts14, and support for unofficial opcodes; and writes in stack
9 bytes
20 xx xx JSR @rts12
08       PHP
26 00    ROL $00
66 00    ROR $00
28       PLP
Requires @rts12; and writes in stack
EA       NOP
EA       NOP
EA       NOP
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
48       PHA
08       PHP
28       PLP
08       PHP
36 00    ROL $00,X
76 00    ROR $00,X
28       PLP
Clobbers S; and writes in stack
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
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
EA       NOP
EA       NOP
EA       NOP
38       SEC
A9 04    LDA #4
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
12 bytes
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
15 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
16 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


30 cycles

6 bytes
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
68       PLA
A2 05    LDX #5
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 05    LDY #5
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 05    LDY #5
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 05    LDX #5
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
8 bytes
EA       NOP
08       PHP
A2 04    LDX #4
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 04    LDY #4
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 05    LDA #5
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
48       PHA
48       PHA
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Clobbers S; requires @rts12; and writes in stack
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
9 bytes
EA       NOP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
Writes in stack
11 bytes
EA       NOP
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
15 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


31 cycles

5 bytes
A2 06    LDX #6
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
EA       NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts15
Requires @rts14, and @rts15; and writes in stack
68       PLA
68       PLA
68       PLA
68       PLA
20 xx xx JSR @rts15
Clobbers A, S, and Z&N; requires @rts15; and writes in stack
48       PHA
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
8 bytes
08       PHP
28       PLP
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Requires @rts12; and writes in stack
EA       NOP
08       PHP
28       PLP
08       PHP
28       PLP
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
38       SEC
A9 04    LDA #4
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
A5 00    LDA $00
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Clobbers A, and Z&N; requires @rts14; and writes in stack
24 00    BIT $00
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Clobbers Z&N, and V; requires @rts14; and writes in stack
85 xx    STA @zptemp
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @zptemp, and @rts14; and writes in stack
48       PHA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N; and writes in stack
48       PHA
08       PHP
A0 04    LDY #4
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 04    LDX #4
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
04 00    NOP $00
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14, and support for unofficial opcodes; and writes in stack
9 bytes
EA       NOP
08       PHP
A0 03    LDY #3
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 03    LDX #3
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
20 xx xx JSR @rts14
08       PHP
26 00    ROL $00
66 00    ROR $00
28       PLP
Requires @rts14; and writes in stack
48       PHA
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
Clobbers S; and writes in stack
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
10 bytes
08       PHP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
28       PLP
Writes in stack
12 bytes
EA       NOP
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
13 bytes
EA       NOP
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
16 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
17 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


32 cycles

7 bytes
EA       NOP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
48       PHA
A2 04    LDX #4
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 04    LDY #4
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A0 05    LDY #5
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
EA       NOP
68       PLA
A2 05    LDX #5
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Clobbers A, S, and Z&N; requires @rts14; and writes in stack
8 bytes
EA       NOP
EA       NOP
EA       NOP
A2 05    LDX #5
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
EA       NOP
A0 05    LDY #5
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
9 bytes
8C       TXA
48       PHA
A2 04    LDX #4
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
08       PHP
A0 03    LDY #3
@Y:
24 00    BIT $00
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 03    LDX #3
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 05    LDA #5
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
EA       NOP
48       PHA
48       PHA
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Clobbers S; requires @rts12; and writes in stack
10 bytes
EA       NOP
EA       NOP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
Writes in stack
12 bytes
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
16 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


33 cycles

6 bytes
EA       NOP
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 06    LDX #6
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
7 bytes
08       PHP
A0 05    LDY #5
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 05    LDX #5
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
48       PHA
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers S; requires @rts15; and writes in stack
8 bytes
A5 00    LDA $00
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers A, and Z&N; requires @rts15; and writes in stack
24 00    BIT $00
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers Z&N, and V; requires @rts15; and writes in stack
08       PHP
28       PLP
20 xx xx JSR @rts12
20 xx xx JSR @rts14
Requires @rts12, and @rts14; and writes in stack
EA       NOP
EA       NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts15
Requires @rts14, and @rts15; and writes in stack
85 xx    STA @zptemp
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @zptemp, and @rts15; and writes in stack
EA       NOP
48       PHA
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
04 00    NOP $00
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15, and support for unofficial opcodes; and writes in stack
9 bytes
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Requires @rts12; and writes in stack
EA       NOP
EA       NOP
08       PHP
28       PLP
08       PHP
28       PLP
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
20 xx xx JSR @rts14
08       PHP
36 00    ROL $00,X
76 00    ROR $00,X
28       PLP
Requires @rts14; and writes in stack
EA       NOP
48       PHA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N; and writes in stack
10 bytes
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
36 00    ROL $00,X
76 00    ROR $00,X
28       PLP
Writes in stack
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
13 bytes
EA       NOP
EA       NOP
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
EA       NOP
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
14 bytes
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
17 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
18 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


34 cycles

6 bytes
48       PHA
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 06    LDX #6
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A5 00    LDA $00
A2 06    LDX #6
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, and Z&N
A5 00    LDA $00
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, and Z&N
24 00    BIT $00
A2 06    LDX #6
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, Z&N, and V
24 00    BIT $00
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, Z&N, and V
85 xx    STA @zptemp
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires @zptemp
85 xx    STA @zptemp
A2 06    LDX #6
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires @zptemp
68       PLA
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers A, S, and Z&N; requires @rts15; and writes in stack
04 00    NOP $00
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires support for unofficial opcodes
04 00    NOP $00
A2 06    LDX #6
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires support for unofficial opcodes
8 bytes
EA       NOP
EA       NOP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
A2 03    LDX #3
@X:
EA       NOP
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 03    LDY #3
@Y:
EA       NOP
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
48       PHA
48       PHA
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
9 bytes
EA       NOP
EA       NOP
EA       NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Clobbers S; requires @rts12; and writes in stack
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
48       PHA
48       PHA
08       PHP
A0 04    LDY #4
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A2 04    LDX #4
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
10 bytes
08       PHP
24 00    BIT $00
28       PLP
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Requires @rts12; and writes in stack
EA       NOP
8C       TXA
48       PHA
A2 04    LDX #4
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA       NOP
08       PHP
A0 03    LDY #3
@Y:
24 00    BIT $00
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 03    LDX #3
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
A5 00    LDA $00
38       SEC
A9 04    LDA #4
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
48       PHA
48       PHA
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
Clobbers S; and writes in stack
11 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
Writes in stack
12 bytes
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
17 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


35 cycles

6 bytes
68       PLA
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
68       PLA
A2 06    LDX #6
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 06    LDX #6
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A2 05    LDX #5
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 05    LDY #5
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
08       PHP
28       PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
EA       NOP
48       PHA
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers S; requires @rts15; and writes in stack
9 bytes
08       PHP
38       SEC
A9 05    LDA #5
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
18       CLC
90 00    BCC *+2
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers C; requires @rts15; and writes in stack
48       PHA
38       SEC
A9 05    LDA #5
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
B8       CLV
50 00    BVC *+2
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers V; requires @rts15; and writes in stack
EA       NOP
85 xx    STA @zptemp
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @zptemp, and @rts15; and writes in stack
EA       NOP
04 00    NOP $00
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15, and support for unofficial opcodes; and writes in stack
10 bytes
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
Writes in stack
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
14 bytes
A5 00    LDA $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
24 00    BIT $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
15 bytes
4C xx xx JMP *+3
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
18 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
19 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


36 cycles

5 bytes
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 07    LDX #7
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A2 04    LDX #4
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 04    LDY #4
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; 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
48       PHA
48       PHA
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers S; requires @rts15; and writes in stack
48       PHA
38       SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
68       PLA
68       PLA
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Clobbers A, S, and Z&N; requires @rts14; and writes in stack
9 bytes
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Requires @rts12; and writes in stack
EA       NOP
EA       NOP
EA       NOP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
A5 00    LDA $00
38       SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
EA       NOP
48       PHA
48       PHA
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
10 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
11 bytes
98       TYA
48       PHA
A0 03    LDY #3
@Y:
A5 00    LDA $00
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
36 00    ROL $00,X
76 00    ROR $00,X
28       PLP
Clobbers S; and writes in stack
12 bytes
08       PHP
26 00    ROL $00
66 00    ROR $00
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
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
18 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


37 cycles

6 bytes
A0 04    LDY #4
@Y:
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
A2 04    LDX #4
@X:
68       PLA
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
A0 04    LDY #4
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 04    LDX #4
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
28       PLP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
68       PLA
38       SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 05    LDY #5
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 05    LDY #5
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 05    LDX #5
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
10 bytes
EA       NOP
08       PHP
38       SEC
A9 05    LDA #5
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 05    LDA #5
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
48       PHA
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Clobbers S; requires @rts12; and writes in stack
11 bytes
EA       NOP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
Writes in stack
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
14 bytes
A5 00    LDA $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
24 00    BIT $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
15 bytes
4C xx xx JMP *+3
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
18       CLC
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
19 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
20 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


38 cycles

6 bytes
EA       NOP
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 07    LDX #7
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
7 bytes
08       PHP
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 06    LDX #6
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
8 bytes
68       PLA
68       PLA
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers A, S, and Z&N; requires @rts15; and writes in stack
9 bytes
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts14
Requires @rts12, and @rts14; and writes in stack
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts15
Requires @rts14, and @rts15; and writes in stack
EA       NOP
48       PHA
48       PHA
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers S; requires @rts15; and writes in stack
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
10 bytes
EA       NOP
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Requires @rts12; and writes in stack
EA       NOP
EA       NOP
EA       NOP
EA       NOP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
08       PHP
38       SEC
A9 04    LDA #4
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 04    LDA #4
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
08       PHP
24 00    BIT $00
28       PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
11 bytes
48       PHA
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
Clobbers S; and writes in stack
12 bytes
08       PHP
36 00    ROL $00,X
76 00    ROR $00,X
28       PLP
08       PHP
36 00    ROL $00,X
76 00    ROR $00,X
28       PLP
Writes in stack
13 bytes
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
19 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


39 cycles

6 bytes
48       PHA
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 07    LDX #7
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A5 00    LDA $00
A2 07    LDX #7
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, and Z&N
A5 00    LDA $00
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, and Z&N
24 00    BIT $00
A2 07    LDX #7
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, Z&N, and V
24 00    BIT $00
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, Z&N, and V
85 xx    STA @zptemp
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires @zptemp
85 xx    STA @zptemp
A2 07    LDX #7
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires @zptemp
04 00    NOP $00
A2 07    LDX #7
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires support for unofficial opcodes
04 00    NOP $00
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires support for unofficial opcodes
8 bytes
EA       NOP
A2 04    LDX #4
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 04    LDY #4
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
9 bytes
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
38       SEC
A9 04    LDA #4
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
48       PHA
08       PHP
A0 04    LDY #4
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 04    LDX #4
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
68       PLA
68       PLA
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Clobbers A, S, and Z&N; requires @rts14; and writes in stack
10 bytes
EA       NOP
98       TYA
48       PHA
A0 05    LDY #5
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A2 05    LDX #5
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A0 05    LDY #5
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
48       PHA
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Clobbers S; requires @rts12; and writes in stack
11 bytes
48       PHA
8C       TXA
48       PHA
A2 04    LDX #4
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 05    LDA #5
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
85 xx    STA @zptemp
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Requires @zptemp, and @rts12; and writes in stack
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
04 00    NOP $00
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Requires @rts12, and support for unofficial opcodes; and writes in stack
12 bytes
EA       NOP
EA       NOP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
Writes in stack
14 bytes
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
15 bytes
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
18       CLC
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
20 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
21 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


40 cycles

6 bytes
68       PLA
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
68       PLA
A2 07    LDX #7
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A2 07    LDX #7
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
EA       NOP
08       PHP
A2 06    LDX #6
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
20 xx xx JSR @rts12
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts12, and @rts14; and writes in stack
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers S; requires @rts15; and writes in stack
10 bytes
08       PHP
24 00    BIT $00
28       PLP
20 xx xx JSR @rts15
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
20 xx xx JSR @rts14
Clobbers Z&N; requires @rts14; and writes in stack
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
EA       NOP
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
11 bytes
EA       NOP
EA       NOP
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Requires @rts12; and writes in stack
EA       NOP
08       PHP
24 00    BIT $00
28       PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
12 bytes
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
36 00    ROL $00,X
76 00    ROR $00,X
28       PLP
Writes in stack
14 bytes
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
20 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


41 cycles

5 bytes
A2 08    LDX #8
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 08    LDY #8
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
48       PHA
08       PHP
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 06    LDX #6
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
24 00    BIT $00
A2 06    LDX #6
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
24 00    BIT $00
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
A5 00    LDA $00
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
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
68       PLA
68       PLA
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers A, S, and Z&N; requires @rts15; and writes in stack
10 bytes
EA       NOP
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
68       PLA
98       TYA
48       PHA
A0 05    LDY #5
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
11 bytes
EA       NOP
EA       NOP
98       TYA
48       PHA
A0 05    LDY #5
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
EA       NOP
48       PHA
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Clobbers S; requires @rts12; and writes in stack
48       PHA
08       PHP
38       SEC
A9 04    LDA #4
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 04    LDA #4
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
20 xx xx JSR @rts12
20 xx xx JSR @rts12
08       PHP
26 00    ROL $00
66 00    ROR $00
28       PLP
Requires @rts12; and writes in stack
EA       NOP
48       PHA
8C       TXA
48       PHA
A2 04    LDX #4
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
A5 00    LDA $00
38       SEC
A9 04    LDA #4
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
48       PHA
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
Clobbers S; and writes in stack
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
13 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
Writes in stack
15 bytes
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
16 bytes
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
21 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
22 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


42 cycles

7 bytes
48       PHA
48       PHA
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
48       PHA
A2 07    LDX #7
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A2 07    LDX #7
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
EA       NOP
68       PLA
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
8 bytes
EA       NOP
EA       NOP
EA       NOP
A2 07    LDX #7
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
EA       NOP
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
20 xx xx JSR @rts12
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts12, and @rts15; and writes in stack
98       TYA
48       PHA
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 06    LDX #6
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
10 bytes
36 00    ROL $00,X
76 00    ROR $00,X
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers Z&N; requires @rts15; and writes in stack
EA       NOP
08       PHP
38       SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
EA       NOP
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers S; requires @rts15; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 05    LDA #5
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
15 bytes
EA       NOP
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
21 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


43 cycles

6 bytes
A2 06    LDX #6
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 06    LDY #6
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 07    LDX #7
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 08    LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts15
Requires @rts14, and @rts15; and writes in stack
10 bytes
48       PHA
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers S; requires @rts15; and writes in stack
48       PHA
08       PHP
38       SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
48       PHA
20 xx xx JSR @rts12
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Clobbers S; requires @rts12, and @rts14; and writes in stack
11 bytes
08       PHP
28       PLP
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Requires @rts12; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
08       PHP
A5 00    LDA $00
38       SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
EA       NOP
48       PHA
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
12 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
13 bytes
48       PHA
98       TYA
48       PHA
A0 03    LDY #3
@Y:
A5 00    LDA $00
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
28       PLP
08       PHP
36 00    ROL $00,X
76 00    ROR $00,X
28       PLP
Clobbers S; and writes in stack
14 bytes
08       PHP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
28       PLP
Writes in stack
16 bytes
EA       NOP
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
17 bytes
EA       NOP
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
22 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
23 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


44 cycles

6 bytes
48       PHA
A2 08    LDX #8
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 08    LDY #8
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A5 00    LDA $00
A0 08    LDY #8
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, and Z&N
A5 00    LDA $00
A2 08    LDX #8
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, and Z&N
24 00    BIT $00
A0 08    LDY #8
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, Z&N, and V
24 00    BIT $00
A2 08    LDX #8
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, Z&N, and V
85 xx    STA @zptemp
A0 08    LDY #8
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires @zptemp
85 xx    STA @zptemp
A2 08    LDX #8
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires @zptemp
04 00    NOP $00
A0 08    LDY #8
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires support for unofficial opcodes
04 00    NOP $00
A2 08    LDX #8
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires support for unofficial opcodes
8 bytes
4C xx xx JMP *+3
A2 08    LDX #8
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and not relocatable code
4C xx xx JMP *+3
A0 08    LDY #8
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and not relocatable code
9 bytes
08       PHP
A0 04    LDY #4
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 04    LDX #4
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
EA       NOP
EA       NOP
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
EA       NOP
EA       NOP
A2 07    LDX #7
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
20 xx xx JSR @rts14
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts14, and @rts15; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
08       PHP
28       PLP
08       PHP
28       PLP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
EA       NOP
98       TYA
48       PHA
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
EA       NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
11 bytes
48       PHA
98       TYA
48       PHA
A0 05    LDY #5
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 05    LDA #5
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
16 bytes
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
22 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


45 cycles

6 bytes
68       PLA
A0 08    LDY #8
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
68       PLA
A2 08    LDX #8
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
EA       NOP
A0 06    LDY #6
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 06    LDX #6
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A2 07    LDX #7
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 06    LDA #6
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
08       PHP
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
10 bytes
48       PHA
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
11 bytes
08       PHP
28       PLP
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts14
Requires @rts12, and @rts14; and writes in stack
24 00    BIT $00
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Clobbers Z&N, and V; requires @rts14; and writes in stack
85 xx    STA @zptemp
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @zptemp, and @rts14; and writes in stack
04 00    NOP $00
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14, and support for unofficial opcodes; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 04    LDA #4
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
13 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
17 bytes
EA       NOP
EA       NOP
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
EA       NOP
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
18 bytes
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
23 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
24 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


46 cycles

5 bytes
A0 09    LDY #9
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 09    LDX #9
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
48       PHA
08       PHP
A2 07    LDX #7
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
08       PHP
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
38       SEC
A9 08    LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
24 00    BIT $00
A2 07    LDX #7
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
24 00    BIT $00
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
A5 00    LDA $00
38       SEC
A9 08    LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts14, and @rts15; and writes in stack
68       PLA
98       TYA
48       PHA
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
EA       NOP
08       PHP
28       PLP
08       PHP
28       PLP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
08       PHP
38       SEC
A9 04    LDA #4
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 04    LDA #4
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
EA       NOP
EA       NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 05    LDY #5
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
08       PHP
28       PLP
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Clobbers S; requires @rts12; and writes in stack
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 05    LDA #5
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
16 bytes
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
23 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


47 cycles

7 bytes
48       PHA
48       PHA
A0 08    LDY #8
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
48       PHA
A2 08    LDX #8
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A0 08    LDY #8
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
EA       NOP
68       PLA
A2 08    LDX #8
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
8 bytes
EA       NOP
EA       NOP
A0 06    LDY #6
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 06    LDX #6
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
68       PLA
38       SEC
A9 08    LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 07    LDX #7
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 06    LDA #6
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
EA       NOP
08       PHP
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
13 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
18 bytes
A5 00    LDA $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
24 00    BIT $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
19 bytes
4C xx xx JMP *+3
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
24 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
25 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


48 cycles

6 bytes
EA       NOP
A0 09    LDY #9
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 09    LDX #9
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
7 bytes
08       PHP
A0 08    LDY #8
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 08    LDX #8
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 09    LDA #9
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers S; requires @rts15; and writes in stack
48       PHA
08       PHP
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
24 00    BIT $00
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers Z&N, and V; requires @rts15; and writes in stack
EA       NOP
EA       NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts14, and @rts15; and writes in stack
85 xx    STA @zptemp
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @zptemp, and @rts15; and writes in stack
48       PHA
48       PHA
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Clobbers S; requires @rts14; and writes in stack
04 00    NOP $00
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15, and support for unofficial opcodes; and writes in stack
12 bytes
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
Requires @rts12; and writes in stack
EA       NOP
EA       NOP
08       PHP
28       PLP
08       PHP
28       PLP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
EA       NOP
EA       NOP
EA       NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
13 bytes
EA       NOP
EA       NOP
48       PHA
98       TYA
48       PHA
A0 05    LDY #5
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
08       PHP
48       PHA
38       SEC
A9 04    LDA #4
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 05    LDA #5
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
16 bytes
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
24 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


49 cycles

4 bytes
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
Clobbers Y, and Z&N
6 bytes
A2 06    LDX #6
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A2 04    LDX #4
@X:
08       PHP
28       PLP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and writes in stack
A2 06    LDX #6
@X:
A5 00    LDA $00
CA       DEX
D0 xx    BNE @X
Clobbers A, X, and Z&N
A2 06    LDX #6
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
Clobbers X, Z&N, and V
A2 06    LDX #6
@X:
85 xx    STA @zptemp
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires @zptemp
A2 06    LDX #6
@X:
04 00    NOP $00
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires support for unofficial opcodes
8 bytes
A2 06    LDX #6
@X:
4C xx xx JMP *+3
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and not relocatable code
9 bytes
EA       NOP
EA       NOP
EA       NOP
A2 06    LDX #6
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
48       PHA
48       PHA
08       PHP
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A2 07    LDX #7
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 08    LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A2 07    LDX #7
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 06    LDA #6
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
EA       NOP
EA       NOP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
48       PHA
98       TYA
48       PHA
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
08       PHP
28       PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
14 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
18 bytes
A5 00    LDA $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
24 00    BIT $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
19 bytes
4C xx xx JMP *+3
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
18       CLC
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
25 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
26 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


50 cycles

6 bytes
A0 07    LDY #7
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 07    LDX #7
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A2 06    LDX #6
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 06    LDY #6
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 09    LDA #9
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 08    LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 08    LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
28       PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts15
Requires @rts14, and @rts15; and writes in stack
EA       NOP
48       PHA
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers S; requires @rts15; and writes in stack
12 bytes
18       CLC
90 00    BCC *+2
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers C; requires @rts15; and writes in stack
B8       CLV
50 00    BVC *+2
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers V; requires @rts15; and writes in stack
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts12
20 xx xx JSR @rts14
Requires @rts12, and @rts14; and writes in stack
EA       NOP
85 xx    STA @zptemp
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @zptemp, and @rts15; and writes in stack
48       PHA
08       PHP
48       PHA
38       SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
EA       NOP
04 00    NOP $00
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15, and support for unofficial opcodes; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
17 bytes
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
25 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


51 cycles

5 bytes
A0 0A    LDY #10
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 0A    LDX #10
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
48       PHA
08       PHP
A0 08    LDY #8
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 08    LDX #8
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
38       SEC
A9 06    LDA #6
@A:
48       PHA
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
24 00    BIT $00
A2 08    LDX #8
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
24 00    BIT $00
A0 08    LDY #8
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
A5 00    LDA $00
38       SEC
A9 09    LDA #9
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
EA       NOP
EA       NOP
98       TYA
48       PHA
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
08       PHP
28       PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts14, and @rts15; and writes in stack
48       PHA
48       PHA
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers S; requires @rts15; and writes in stack
48       PHA
48       PHA
08       PHP
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
48       PHA
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
EA       NOP
EA       NOP
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
EA       NOP
48       PHA
98       TYA
48       PHA
A0 06    LDY #6
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 06    LDA #6
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
14 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
18 bytes
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
19 bytes
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
18       CLC
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
26 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
27 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


52 cycles

5 bytes
48       PHA
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
Clobbers Y, S, and Z&N; and writes in stack
6 bytes
A5 00    LDA $00
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
Clobbers A, Y, and Z&N
24 00    BIT $00
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
Clobbers Y, Z&N, and V
85 xx    STA @zptemp
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
Clobbers Y, and Z&N; and requires @zptemp
04 00    NOP $00
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
Clobbers Y, and Z&N; and requires support for unofficial opcodes
7 bytes
EA       NOP
A0 07    LDY #7
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 07    LDX #7
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
38       SEC
A9 07    LDA #7
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 08    LDY #8
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
08       PHP
A2 06    LDX #6
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 06    LDY #6
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
10 bytes
08       PHP
38       SEC
A9 06    LDA #6
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 06    LDA #6
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
13 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
18 bytes
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
26 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


53 cycles

5 bytes
68       PLA
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
Clobbers A, Y, S, and Z&N
6 bytes
EA       NOP
A2 0A    LDX #10
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 0A    LDY #10
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 09    LDX #9
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 09    LDY #9
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 0A    LDA #10
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 08    LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 08    LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 08    LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 08    LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
EA       NOP
08       PHP
28       PLP
20 xx xx JSR @rts14
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts14, and @rts15; and writes in stack
EA       NOP
48       PHA
48       PHA
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Clobbers S; requires @rts15; and writes in stack
13 bytes
08       PHP
48       PHA
38       SEC
A9 04    LDA #4
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
15 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
19 bytes
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
20 bytes
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
27 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
28 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


54 cycles

6 bytes
48       PHA
A2 0A    LDX #10
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 0A    LDY #10
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A5 00    LDA $00
A2 0A    LDX #10
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, and Z&N
A5 00    LDA $00
A0 0A    LDY #10
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, and Z&N
18       CLC
90 00    BCC *+2
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
Clobbers Y, Z&N, and C
24 00    BIT $00
A0 0A    LDY #10
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, Z&N, and V
24 00    BIT $00
A2 0A    LDX #10
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, Z&N, and V
85 xx    STA @zptemp
A0 0A    LDY #10
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires @zptemp
85 xx    STA @zptemp
A2 0A    LDX #10
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires @zptemp
04 00    NOP $00
A2 0A    LDX #10
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires support for unofficial opcodes
04 00    NOP $00
A0 0A    LDY #10
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires support for unofficial opcodes
8 bytes
EA       NOP
EA       NOP
A2 07    LDX #7
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
A0 07    LDY #7
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
9 bytes
EA       NOP
38       SEC
A9 07    LDA #7
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
48       PHA
48       PHA
08       PHP
A2 08    LDX #8
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A0 08    LDY #8
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
10 bytes
98       TYA
48       PHA
A0 06    LDY #6
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 06    LDY #6
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 06    LDX #6
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
11 bytes
48       PHA
98       TYA
48       PHA
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
08       PHP
38       SEC
A9 06    LDA #6
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
14 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
19 bytes
EA       NOP
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
27 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


55 cycles

6 bytes
48       PHA
48       PHA
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
Clobbers Y, S, and Z&N; and writes in stack
A0 06    LDY #6
@Y:
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
A2 06    LDX #6
@X:
68       PLA
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
A2 06    LDX #6
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 06    LDY #6
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
EA       NOP
08       PHP
A0 09    LDY #9
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 09    LDX #9
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 0A    LDA #10
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 09    LDA #9
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 09    LDA #9
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
20 xx xx JSR @rts12
20 xx xx JSR @rts14
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
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
15 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
20 bytes
EA       NOP
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
21 bytes
EA       NOP
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
28 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
29 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


56 cycles

5 bytes
A2 0B    LDX #11
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
6 bytes
08       PHP
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
28       PLP
Clobbers Y; and writes in stack
8 bytes
48       PHA
08       PHP
A2 09    LDX #9
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 0A    LDA #10
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
A2 06    LDX #6
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
A5 00    LDA $00
38       SEC
A9 0A    LDA #10
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 08    LDY #8
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
EA       NOP
98       TYA
48       PHA
A0 06    LDY #6
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
38       SEC
A9 08    LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
48       PHA
38       SEC
A9 08    LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 06    LDA #6
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
14 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
20 bytes
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
28 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


57 cycles

6 bytes
A2 08    LDX #8
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 08    LDY #8
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
18       CLC
A9 F8    LDA #248
@A = * - 1
; ^ Hides SED
69 01    ADC #1
D0 xx    BNE @A
Clobbers A, Z&N, C, and D
8 bytes
08       PHP
A0 07    LDY #7
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 07    LDX #7
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
68       PLA
38       SEC
A9 0A    LDA #10
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 09    LDY #9
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
38       SEC
A9 06    LDA #6
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 09    LDA #9
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 09    LDA #9
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 08    LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
16 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
21 bytes
EA       NOP
EA       NOP
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
EA       NOP
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
22 bytes
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
29 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
30 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


58 cycles

6 bytes
EA       NOP
A2 0B    LDX #11
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A0 0A    LDY #10
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 0A    LDX #10
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 09    LDA #9
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 09    LDA #9
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
38       SEC
A9 06    LDA #6
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 09    LDA #9
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts14, and @rts15; and writes in stack
13 bytes
EA       NOP
EA       NOP
48       PHA
98       TYA
48       PHA
A0 07    LDY #7
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
20 xx xx JSR @rts14
Requires @rts14; and writes in stack
48       PHA
48       PHA
08       PHP
48       PHA
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 07    LDA #7
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
15 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
20 bytes
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
29 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


59 cycles

6 bytes
48       PHA
A2 0B    LDX #11
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
EA       NOP
A2 08    LDX #8
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 08    LDY #8
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
48       PHA
08       PHP
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
28       PLP
Clobbers Y, and S; and writes in stack
8 bytes
08       PHP
24 00    BIT $00
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 08    LDA #8
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
EA       NOP
08       PHP
A2 07    LDX #7
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
10 bytes
08       PHP
38       SEC
A9 07    LDA #7
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 07    LDA #7
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
48       PHA
98       TYA
48       PHA
A0 08    LDY #8
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 06    LDA #6
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
16 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
22 bytes
A5 00    LDA $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
24 00    BIT $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
23 bytes
4C xx xx JMP *+3
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
30 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
31 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


60 cycles

6 bytes
68       PLA
A2 0B    LDX #11
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A2 0B    LDX #11
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
98       TYA
48       PHA
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
08       PHP
A0 0A    LDY #10
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 0A    LDX #10
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 0A    LDA #10
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 0A    LDA #10
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
20 xx xx JSR @rts15
Requires @rts15; and writes in stack
48       PHA
08       PHP
48       PHA
38       SEC
A9 08    LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 08    LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
15 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
20 bytes
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
30 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


61 cycles

5 bytes
A2 0C    LDX #12
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 0C    LDY #12
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
48       PHA
08       PHP
A2 0A    LDX #10
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
08       PHP
A0 0A    LDY #10
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
68       PLA
18       CLC
A9 F8    LDA #248
@A = * - 1
; ^ Hides SED
69 01    ADC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, C, and D
9 bytes
08       PHP
24 00    BIT $00
A2 0A    LDX #10
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
24 00    BIT $00
A0 0A    LDY #10
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
A5 00    LDA $00
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
8C       TXA
48       PHA
A2 07    LDX #7
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
11 bytes
EA       NOP
08       PHP
38       SEC
A9 07    LDA #7
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 07    LDA #7
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
98       TYA
48       PHA
A0 06    LDY #6
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 06    LDA #6
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
17 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
22 bytes
A5 00    LDA $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
24 00    BIT $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
23 bytes
4C xx xx JMP *+3
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
18       CLC
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
31 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
32 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


62 cycles

7 bytes
48       PHA
48       PHA
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
48       PHA
A2 0B    LDX #11
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
EA       NOP
68       PLA
A2 0B    LDX #11
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
8 bytes
EA       NOP
EA       NOP
EA       NOP
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
EA       NOP
A2 0B    LDX #11
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
48       PHA
48       PHA
08       PHP
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
28       PLP
Clobbers Y, and S; and writes in stack
68       PLA
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 0A    LDY #10
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
08       PHP
A2 06    LDX #6
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 06    LDY #6
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 0A    LDA #10
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 0A    LDA #10
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 09    LDA #9
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
16 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
21 bytes
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
31 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


63 cycles

6 bytes
EA       NOP
A2 0C    LDX #12
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 0C    LDY #12
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 0B    LDX #11
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 0C    LDA #12
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
48       PHA
98       TYA
48       PHA
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
10 bytes
A5 00    LDA $00
98       TYA
48       PHA
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
08       PHP
38       SEC
A9 0A    LDA #10
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 0A    LDA #10
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 0A    LDA #10
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 0A    LDA #10
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 06    LDY #6
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
48       PHA
38       SEC
A9 08    LDA #8
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 06    LDA #6
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
17 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
22 bytes
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
23 bytes
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
18       CLC
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
32 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
33 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


64 cycles

6 bytes
A0 09    LDY #9
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 09    LDX #9
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A2 08    LDX #8
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 08    LDY #8
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
9 bytes
08       PHP
18       CLC
A9 F8    LDA #248
@A = * - 1
; ^ Hides SED
69 01    ADC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
18       CLC
A9 F8    LDA #248
@A = * - 1
; ^ Hides SED
69 01    ADC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, C, and D; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
EA       NOP
EA       NOP
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 09    LDY #9
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 09    LDA #9
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
16 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
22 bytes
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
32 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


65 cycles

6 bytes
A0 08    LDY #8
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
A2 08    LDX #8
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
68       PLA
A2 0C    LDX #12
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 0C    LDY #12
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 0C    LDY #12
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 0C    LDX #12
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 0B    LDX #11
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 0C    LDA #12
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 09    LDA #9
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 09    LDA #9
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
18 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
23 bytes
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
24 bytes
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
33 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
34 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


66 cycles

5 bytes
A0 0D    LDY #13
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 0D    LDX #13
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
38       SEC
A9 09    LDA #9
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
48       PHA
08       PHP
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 0B    LDX #11
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
9 bytes
EA       NOP
08       PHP
A0 08    LDY #8
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 08    LDX #8
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
10 bytes
08       PHP
38       SEC
A9 08    LDA #8
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 08    LDA #8
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 07    LDA #7
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
17 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
23 bytes
EA       NOP
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
33 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


67 cycles

7 bytes
A0 06    LDY #6
@Y:
48       PHA
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
A2 06    LDX #6
@X:
48       PHA
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
A0 06    LDY #6
@Y:
EA       NOP
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
A2 06    LDX #6
@X:
EA       NOP
68       PLA
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
8 bytes
A2 06    LDX #6
@X:
EA       NOP
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 06    LDY #6
@Y:
EA       NOP
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 0C    LDA #12
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 0B    LDX #11
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 0C    LDA #12
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
98       TYA
48       PHA
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
08       PHP
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 0A    LDA #10
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
18 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
24 bytes
EA       NOP
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
25 bytes
EA       NOP
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
34 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
35 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


68 cycles

6 bytes
EA       NOP
A2 0D    LDX #13
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 0D    LDY #13
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 0C    LDX #12
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0C    LDY #12
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
98       TYA
48       PHA
A0 08    LDY #8
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
08       PHP
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
8C       TXA
48       PHA
A2 07    LDX #7
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 07    LDA #7
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
17 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
24 bytes
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
34 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


69 cycles

5 bytes
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
88       DEY
30 xx    BMI @Y
Clobbers Y, and Z&N
6 bytes
48       PHA
A2 0D    LDX #13
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A5 00    LDA $00
A2 0D    LDX #13
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, and Z&N
24 00    BIT $00
A2 0D    LDX #13
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, Z&N, and V
85 xx    STA @zptemp
A2 0D    LDX #13
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires @zptemp
04 00    NOP $00
A2 0D    LDX #13
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires support for unofficial opcodes
8 bytes
4C xx xx JMP *+3
A2 0D    LDX #13
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and not relocatable code
A2 04    LDX #4
@X:
20 xx xx JSR @rts12
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; requires @rts12; and writes in stack
9 bytes
A2 04    LDX #4
@X:
36 00    ROL $00,X
76 00    ROR $00,X
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
48       PHA
48       PHA
08       PHP
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A2 0B    LDX #11
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 0C    LDA #12
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A2 0B    LDX #11
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
A5 00    LDA $00
38       SEC
A9 09    LDA #9
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 0A    LDY #10
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 0A    LDA #10
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
19 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
25 bytes
EA       NOP
EA       NOP
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
EA       NOP
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
26 bytes
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
35 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
36 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


70 cycles

6 bytes
68       PLA
A2 0D    LDX #13
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 0D    LDY #13
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 0D    LDY #13
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 0D    LDX #13
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 0C    LDY #12
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 0C    LDX #12
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 0C    LDA #12
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 0C    LDA #12
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
48       PHA
48       PHA
98       TYA
48       PHA
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
68       PLA
A8       TAY
68       PLA
Clobbers S, and Z&N; and writes in stack
12 bytes
48       PHA
A5 00    LDA $00
98       TYA
48       PHA
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
30 xx    BMI @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
08       PHP
48       PHA
38       SEC
A9 0A    LDA #10
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 0A    LDA #10
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
18 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
24 bytes
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
35 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


71 cycles

5 bytes
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A2 09    LDX #9
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 09    LDY #9
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
48       PHA
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
A5 00    LDA $00
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
08       PHP
48       PHA
18       CLC
A9 F8    LDA #248
@A = * - 1
; ^ Hides SED
69 01    ADC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
19 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
26 bytes
A5 00    LDA $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
24 00    BIT $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
27 bytes
4C xx xx JMP *+3
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
36 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
37 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


72 cycles

6 bytes
48       PHA
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
88       DEY
30 xx    BMI @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A5 00    LDA $00
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
88       DEY
30 xx    BMI @Y
Clobbers A, Y, and Z&N
24 00    BIT $00
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
88       DEY
30 xx    BMI @Y
Clobbers Y, Z&N, and V
85 xx    STA @zptemp
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
88       DEY
30 xx    BMI @Y
Clobbers Y, and Z&N; and requires @zptemp
48       PHA
48       PHA
A2 0D    LDX #13
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A2 0D    LDX #13
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
04 00    NOP $00
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
88       DEY
30 xx    BMI @Y
Clobbers Y, and Z&N; and requires support for unofficial opcodes
8 bytes
EA       NOP
EA       NOP
EA       NOP
A2 0D    LDX #13
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
EA       NOP
A0 0D    LDY #13
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 0C    LDY #12
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
08       PHP
A2 08    LDX #8
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 08    LDY #8
@Y:
24 00    BIT $00
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 0C    LDA #12
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 0C    LDA #12
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
18 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
24 bytes
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
36 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


73 cycles

6 bytes
EA       NOP
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
7 bytes
08       PHP
A2 0D    LDX #13
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0D    LDY #13
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
08       PHP
38       SEC
A9 09    LDA #9
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 09    LDA #9
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 08    LDA #8
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
20 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
26 bytes
A5 00    LDA $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
24 00    BIT $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
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
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
18       CLC
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
37 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
38 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


74 cycles

6 bytes
48       PHA
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A5 00    LDA $00
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, and Z&N
A5 00    LDA $00
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, and Z&N
24 00    BIT $00
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, Z&N, and V
24 00    BIT $00
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, Z&N, and V
85 xx    STA @zptemp
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires @zptemp
85 xx    STA @zptemp
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires @zptemp
04 00    NOP $00
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires support for unofficial opcodes
04 00    NOP $00
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires support for unofficial opcodes
8 bytes
4C xx xx JMP *+3
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and not relocatable code
4C xx xx JMP *+3
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and not relocatable code
18       CLC
90 00    BCC *+2
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
88       DEY
30 xx    BMI @Y
Clobbers Y, Z&N, and C
9 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
A0 0D    LDY #13
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
EA       NOP
EA       NOP
A2 0D    LDX #13
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
48       PHA
08       PHP
A2 09    LDX #9
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
08       PHP
A0 09    LDY #9
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 0C    LDY #12
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
08       PHP
A0 08    LDY #8
@Y:
24 00    BIT $00
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 08    LDX #8
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
EA       NOP
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
38       SEC
A9 08    LDA #8
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
19 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
25 bytes
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
37 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


75 cycles

6 bytes
68       PLA
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 0D    LDY #13
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 0D    LDX #13
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
98       TYA
48       PHA
A0 08    LDY #8
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
08       PHP
48       PHA
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
20 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
26 bytes
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
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
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
18       CLC
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
38 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes
39 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
Not relocatable code


76 cycles

5 bytes
A0 0F    LDY #15
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 0F    LDX #15
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
7 bytes
08       PHP
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
88       DEY
30 xx    BMI @Y
28       PLP
Clobbers Y; and writes in stack
8 bytes
48       PHA
08       PHP
A2 0D    LDX #13
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
24 00    BIT $00
A2 0D    LDX #13
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
A5 00    LDA $00
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 0C    LDY #12
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
98       TYA
48       PHA
A0 08    LDY #8
@Y:
A5 00    LDA $00
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
08       PHP
38       SEC
A9 09    LDA #9
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 09    LDA #9
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 0B    LDY #11
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
08       PHP
38       SEC
A9 08    LDA #8
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 0B    LDA #11
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
19 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
26 bytes
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
38 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


77 cycles

7 bytes
48       PHA
48       PHA
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
48       PHA
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
EA       NOP
68       PLA
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
8 bytes
EA       NOP
EA       NOP
EA       NOP
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
EA       NOP
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
68       PLA
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 0D    LDY #13
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 0D    LDX #13
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 0D    LDY #13
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 0C    LDA #12
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
21 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
27 bytes
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
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
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
39 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
Clobbers C
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
B8       CLV
50 00    BVC *+2
Clobbers V
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
Requires @zptemp
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
Requires support for unofficial opcodes


78 cycles

6 bytes
A0 0B    LDY #11
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 0B    LDX #11
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
7 bytes
08       PHP
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 0F    LDA #15
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
08       PHP
28       PLP
08       PHP
48       PHA
18       CLC
A9 F8    LDA #248
@A = * - 1
; ^ Hides SED
69 01    ADC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
20 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
27 bytes
EA       NOP
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N
39 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
EA       NOP
No requirements


79 cycles

5 bytes
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
48       PHA
30 xx    BMI @Y
Clobbers Y, S, and Z&N; and writes in stack
6 bytes
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
A5 00    LDA $00
30 xx    BMI @Y
Clobbers A, Y, and Z&N
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
24 00    BIT $00
30 xx    BMI @Y
Clobbers Y, Z&N, and V
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
85 xx    STA @zptemp
30 xx    BMI @Y
Clobbers Y, and Z&N; and requires @zptemp
48       PHA
A2 0F    LDX #15
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
04 00    NOP $00
30 xx    BMI @Y
Clobbers Y, and Z&N; and requires support for unofficial opcodes
7 bytes
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
4C xx xx JMP *+3
30 xx    BMI @Y
Clobbers Y, and Z&N; and not relocatable code
A5 00    LDA $00
A2 0F    LDX #15
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, and Z&N
24 00    BIT $00
A2 0F    LDX #15
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, Z&N, and V
85 xx    STA @zptemp
A2 0F    LDX #15
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires @zptemp
04 00    NOP $00
A2 0F    LDX #15
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires support for unofficial opcodes
8 bytes
4C xx xx JMP *+3
A2 0F    LDX #15
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and not relocatable code
48       PHA
08       PHP
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
88       DEY
30 xx    BMI @Y
28       PLP
Clobbers Y, and S; and writes in stack
9 bytes
08       PHP
24 00    BIT $00
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
88       DEY
30 xx    BMI @Y
28       PLP
Clobbers Y; and writes in stack
A2 06    LDX #6
@X:
EA       NOP
EA       NOP
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 06    LDY #6
@Y:
EA       NOP
EA       NOP
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
48       PHA
48       PHA
08       PHP
A2 0D    LDX #13
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 0D    LDY #13
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A2 0D    LDX #13
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
EA       NOP
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 0C    LDY #12
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 0C    LDA #12
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
21 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
28 bytes
EA       NOP
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
29 bytes
EA       NOP
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code


80 cycles

6 bytes
68       PLA
A2 0F    LDX #15
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 0F    LDY #15
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
A2 0B    LDX #11
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 0B    LDY #11
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
EA       NOP
08       PHP
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 0B    LDA #11
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 09    LDA #9
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
20 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
28 bytes
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


81 cycles

5 bytes
A2 10    LDX #16
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 10    LDY #16
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
48       PHA
08       PHP
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
08       PHP
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
38       SEC
A9 0F    LDA #15
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
24 00    BIT $00
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
24 00    BIT $00
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
A5 00    LDA $00
38       SEC
A9 0F    LDA #15
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 0D    LDY #13
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
EA       NOP
EA       NOP
98       TYA
48       PHA
A0 0D    LDY #13
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
48       PHA
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 0C    LDY #12
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 0C    LDA #12
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
22 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
29 bytes
EA       NOP
EA       NOP
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
EA       NOP
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
30 bytes
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code


82 cycles

6 bytes
48       PHA
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
48       PHA
30 xx    BMI @Y
Clobbers Y, S, and Z&N; and writes in stack
A0 09    LDY #9
@Y:
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
A2 09    LDX #9
@X:
68       PLA
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
A0 09    LDY #9
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 09    LDX #9
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
68       PLA
38       SEC
A9 0F    LDA #15
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 0B    LDA #11
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
21 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
28 bytes
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


83 cycles

6 bytes
EA       NOP
A2 10    LDX #16
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 10    LDY #16
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 0F    LDX #15
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0F    LDY #15
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 10    LDA #16
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
48       PHA
98       TYA
48       PHA
A0 08    LDY #8
@Y:
A5 00    LDA $00
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
08       PHP
48       PHA
38       SEC
A9 09    LDA #9
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
08       PHP
48       PHA
38       SEC
A9 06    LDA #6
@A:
EA       NOP
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
22 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
30 bytes
A5 00    LDA $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
24 00    BIT $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
31 bytes
4C xx xx JMP *+3
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code


84 cycles

6 bytes
48       PHA
A2 10    LDX #16
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 10    LDY #16
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A5 00    LDA $00
A2 10    LDX #16
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, and Z&N
A5 00    LDA $00
A0 10    LDY #16
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, and Z&N
24 00    BIT $00
A2 10    LDX #16
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, Z&N, and V
24 00    BIT $00
A0 10    LDY #16
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, Z&N, and V
85 xx    STA @zptemp
A0 10    LDY #16
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires @zptemp
85 xx    STA @zptemp
A2 10    LDX #16
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires @zptemp
04 00    NOP $00
A0 10    LDY #16
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires support for unofficial opcodes
04 00    NOP $00
A2 10    LDX #16
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires support for unofficial opcodes
8 bytes
EA       NOP
A0 09    LDY #9
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 09    LDX #9
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
9 bytes
38       SEC
A9 09    LDA #9
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
48       PHA
48       PHA
08       PHP
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
10 bytes
EA       NOP
98       TYA
48       PHA
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A2 0E    LDX #14
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
11 bytes
48       PHA
98       TYA
48       PHA
A0 0D    LDY #13
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
21 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
28 bytes
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


85 cycles

6 bytes
A0 0C    LDY #12
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 0C    LDX #12
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A2 0B    LDX #11
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0B    LDY #11
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 10    LDA #16
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 0F    LDA #15
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 0F    LDA #15
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
23 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
30 bytes
A5 00    LDA $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
24 00    BIT $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
31 bytes
4C xx xx JMP *+3
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
18       CLC
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C


86 cycles

5 bytes
A0 11    LDY #17
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 11    LDX #17
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
24 00    BIT $00
30 xx    BMI @Y
28       PLP
Clobbers Y; and writes in stack
48       PHA
08       PHP
A2 0F    LDX #15
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 10    LDA #16
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
24 00    BIT $00
A2 0F    LDX #15
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
A5 00    LDA $00
38       SEC
A9 10    LDA #16
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
EA       NOP
EA       NOP
98       TYA
48       PHA
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
48       PHA
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 0D    LDY #13
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
22 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
29 bytes
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


87 cycles

7 bytes
EA       NOP
A2 0C    LDX #12
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 0C    LDY #12
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
38       SEC
A9 0C    LDA #12
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 0F    LDY #15
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
08       PHP
A0 0B    LDY #11
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 0B    LDX #11
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
10 bytes
08       PHP
38       SEC
A9 0B    LDA #11
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 0B    LDA #11
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
23 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
30 bytes
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
31 bytes
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
18       CLC
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C


88 cycles

6 bytes
EA       NOP
A2 11    LDX #17
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 11    LDY #17
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 10    LDX #16
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 10    LDY #16
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 11    LDA #17
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 0F    LDA #15
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 0F    LDA #15
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 0F    LDA #15
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 0F    LDA #15
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
EA       NOP
EA       NOP
48       PHA
98       TYA
48       PHA
A0 0D    LDY #13
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
48       PHA
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 0D    LDA #13
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
22 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
30 bytes
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


89 cycles

5 bytes
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
68       PLA
30 xx    BMI @Y
Clobbers A, Y, S, and Z&N
6 bytes
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
EA       NOP
88       DEY
30 xx    BMI @Y
Clobbers Y, and Z&N
A2 0B    LDX #11
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A2 0B    LDX #11
@X:
A5 00    LDA $00
CA       DEX
D0 xx    BNE @X
Clobbers A, X, and Z&N
A2 0B    LDX #11
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
Clobbers X, Z&N, and V
A2 0B    LDX #11
@X:
85 xx    STA @zptemp
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires @zptemp
A2 0B    LDX #11
@X:
04 00    NOP $00
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires support for unofficial opcodes
8 bytes
A2 08    LDX #8
@X:
EA       NOP
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
9 bytes
08       PHP
A2 09    LDX #9
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 09    LDY #9
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 0C    LDA #12
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
98       TYA
48       PHA
A0 0B    LDY #11
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
11 bytes
48       PHA
98       TYA
48       PHA
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
08       PHP
38       SEC
A9 0B    LDA #11
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
24 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
31 bytes
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
32 bytes
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code


90 cycles

6 bytes
68       PLA
A2 11    LDX #17
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 11    LDY #17
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 11    LDY #17
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 11    LDX #17
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 10    LDY #16
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 10    LDX #16
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 11    LDA #17
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 10    LDA #16
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 10    LDA #16
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
23 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
31 bytes
EA       NOP
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


91 cycles

5 bytes
A2 12    LDX #18
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 12    LDY #18
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
48       PHA
08       PHP
A0 10    LDY #16
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 10    LDX #16
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
38       SEC
A9 0B    LDA #11
@A:
48       PHA
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
24 00    BIT $00
A2 10    LDX #16
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
24 00    BIT $00
A0 10    LDY #16
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
A5 00    LDA $00
38       SEC
A9 11    LDA #17
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 0F    LDY #15
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
08       PHP
38       SEC
A9 09    LDA #9
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 09    LDA #9
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
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
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
24 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
32 bytes
EA       NOP
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
33 bytes
EA       NOP
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code


92 cycles

6 bytes
A2 0D    LDX #13
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 0D    LDY #13
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
08       PHP
A2 0C    LDX #12
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0C    LDY #12
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
68       PLA
38       SEC
A9 11    LDA #17
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 10    LDY #16
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 11    LDA #17
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 10    LDA #16
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 10    LDA #16
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 0F    LDA #15
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
23 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
32 bytes
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


93 cycles

6 bytes
EA       NOP
A2 12    LDX #18
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 12    LDY #18
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A0 11    LDY #17
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 11    LDX #17
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 10    LDA #16
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 10    LDA #16
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 10    LDA #16
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 10    LDA #16
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
EA       NOP
EA       NOP
48       PHA
98       TYA
48       PHA
A0 0E    LDY #14
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
48       PHA
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 0E    LDA #14
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
25 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
33 bytes
EA       NOP
EA       NOP
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
EA       NOP
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
34 bytes
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code


94 cycles

6 bytes
48       PHA
A2 12    LDX #18
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 12    LDY #18
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
EA       NOP
A0 0D    LDY #13
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 0D    LDX #13
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
38       SEC
A9 0D    LDA #13
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
EA       NOP
08       PHP
A0 0C    LDY #12
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 0C    LDX #12
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
10 bytes
08       PHP
38       SEC
A9 0C    LDA #12
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 0C    LDA #12
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
48       PHA
98       TYA
48       PHA
A0 0F    LDY #15
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 0B    LDA #11
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
24 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
32 bytes
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


95 cycles

6 bytes
68       PLA
A2 12    LDX #18
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 12    LDY #18
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 12    LDY #18
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 12    LDX #18
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 11    LDY #17
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 11    LDX #17
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 11    LDA #17
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 11    LDA #17
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 0F    LDA #15
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 0F    LDA #15
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
25 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
34 bytes
A5 00    LDA $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
24 00    BIT $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
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
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code


96 cycles

5 bytes
A0 13    LDY #19
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 13    LDX #19
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
EA       NOP
88       DEY
30 xx    BMI @Y
28       PLP
Clobbers Y; and writes in stack
48       PHA
08       PHP
A2 11    LDX #17
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
A2 0B    LDX #11
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
A5 00    LDA $00
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
98       TYA
48       PHA
A0 0C    LDY #12
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
11 bytes
EA       NOP
08       PHP
38       SEC
A9 0C    LDA #12
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 0C    LDA #12
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
98       TYA
48       PHA
A0 0B    LDY #11
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 0B    LDA #11
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
24 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
32 bytes
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


97 cycles

6 bytes
A2 0C    LDX #12
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
A0 0C    LDY #12
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A2 08    LDX #8
@X:
08       PHP
28       PLP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and writes in stack
A0 08    LDY #8
@Y:
08       PHP
28       PLP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and writes in stack
A2 0C    LDX #12
@X:
A5 00    LDA $00
CA       DEX
D0 xx    BNE @X
Clobbers A, X, and Z&N
A0 0C    LDY #12
@Y:
A5 00    LDA $00
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, and Z&N
A2 0C    LDX #12
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
Clobbers X, Z&N, and V
A0 0C    LDY #12
@Y:
24 00    BIT $00
88       DEY
D0 xx    BNE @Y
Clobbers Y, Z&N, and V
A2 0C    LDX #12
@X:
85 xx    STA @zptemp
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires @zptemp
A0 0C    LDY #12
@Y:
85 xx    STA @zptemp
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires @zptemp
A0 0C    LDY #12
@Y:
04 00    NOP $00
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires support for unofficial opcodes
A2 0C    LDX #12
@X:
04 00    NOP $00
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires support for unofficial opcodes
8 bytes
EA       NOP
EA       NOP
EA       NOP
A0 12    LDY #18
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
EA       NOP
A2 12    LDX #18
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
68       PLA
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 11    LDY #17
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 11    LDX #17
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 11    LDY #17
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 11    LDA #17
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 11    LDA #17
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 10    LDA #16
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
26 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
34 bytes
A5 00    LDA $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
24 00    BIT $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
35 bytes
4C xx xx JMP *+3
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
18       CLC
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C


98 cycles

6 bytes
EA       NOP
A2 13    LDX #19
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 13    LDY #19
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 12    LDX #18
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 12    LDY #18
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 13    LDA #19
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 11    LDA #17
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 11    LDA #17
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
38       SEC
A9 0B    LDA #11
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 11    LDA #17
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
08       PHP
48       PHA
38       SEC
A9 09    LDA #9
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
25 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
33 bytes
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


99 cycles

6 bytes
A0 0E    LDY #14
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 0E    LDX #14
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A0 0D    LDY #13
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 0D    LDX #13
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 0C    LDA #12
@A:
48       PHA
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
38       SEC
A9 08    LDA #8
@A:
08       PHP
28       PLP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C; and writes in stack
38       SEC
A9 0C    LDA #12
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, C, and V
38       SEC
A9 0C    LDA #12
@A:
85 xx    STA @zptemp
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C; and requires @zptemp
EA       NOP
68       PLA
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
38       SEC
A9 0C    LDA #12
@A:
04 00    NOP $00
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C; and requires support for unofficial opcodes
10 bytes
EA       NOP
98       TYA
48       PHA
A0 11    LDY #17
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 10    LDY #16
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 11    LDA #17
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 10    LDA #16
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
26 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
34 bytes
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
35 bytes
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
18       CLC
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C


100 cycles

6 bytes
A0 0B    LDY #11
@Y:
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
A2 0B    LDX #11
@X:
68       PLA
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
A0 0B    LDY #11
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 0B    LDX #11
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A2 12    LDX #18
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 12    LDY #18
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 13    LDA #19
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 10    LDA #16
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 10    LDA #16
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
25 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
34 bytes
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


101 cycles

5 bytes
A2 14    LDX #20
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 14    LDY #20
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
38       SEC
A9 0E    LDA #14
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
48       PHA
08       PHP
A2 12    LDX #18
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
08       PHP
A0 12    LDY #18
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
9 bytes
EA       NOP
08       PHP
A2 0D    LDX #13
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 0D    LDY #13
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
10 bytes
08       PHP
38       SEC
A9 0D    LDA #13
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 0D    LDA #13
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 0C    LDA #12
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
27 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
35 bytes
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
36 bytes
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code


102 cycles

7 bytes
48       PHA
A2 0E    LDX #14
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 0E    LDY #14
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
EA       NOP
A2 0B    LDX #11
@X:
68       PLA
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
EA       NOP
A0 0B    LDY #11
@Y:
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
8 bytes
EA       NOP
A2 0B    LDX #11
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 0B    LDY #11
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 13    LDA #19
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 12    LDY #18
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 12    LDY #18
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 12    LDX #18
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 0B    LDA #11
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 11    LDA #17
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
26 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
35 bytes
EA       NOP
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


103 cycles

6 bytes
EA       NOP
A2 14    LDX #20
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 14    LDY #20
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A0 13    LDY #19
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 13    LDX #19
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
8C       TXA
48       PHA
A2 0D    LDX #13
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
48       PHA
08       PHP
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
98       TYA
48       PHA
A0 0C    LDY #12
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 0C    LDA #12
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
27 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
36 bytes
EA       NOP
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
37 bytes
EA       NOP
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code


104 cycles

6 bytes
48       PHA
A2 14    LDX #20
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 14    LDY #20
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A5 00    LDA $00
A2 14    LDX #20
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, and Z&N
A5 00    LDA $00
A0 14    LDY #20
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, and Z&N
24 00    BIT $00
A2 14    LDX #20
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, Z&N, and V
24 00    BIT $00
A0 14    LDY #20
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, Z&N, and V
85 xx    STA @zptemp
A0 14    LDY #20
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires @zptemp
85 xx    STA @zptemp
A2 14    LDX #20
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires @zptemp
04 00    NOP $00
A0 14    LDY #20
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires support for unofficial opcodes
04 00    NOP $00
A2 14    LDX #20
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires support for unofficial opcodes
8 bytes
4C xx xx JMP *+3
A2 14    LDX #20
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and not relocatable code
4C xx xx JMP *+3
A0 14    LDY #20
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and not relocatable code
9 bytes
08       PHP
A2 0C    LDX #12
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0C    LDY #12
@Y:
24 00    BIT $00
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
A0 0B    LDY #11
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 0B    LDX #11
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
68       PLA
38       SEC
A9 13    LDA #19
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 12    LDY #18
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
A5 00    LDA $00
38       SEC
A9 0E    LDA #14
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 11    LDY #17
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 11    LDA #17
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
26 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
36 bytes
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


105 cycles

6 bytes
A2 0D    LDX #13
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
A0 0D    LDY #13
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
68       PLA
A0 14    LDY #20
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
68       PLA
A2 14    LDX #20
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 14    LDY #20
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 14    LDX #20
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 13    LDY #19
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 13    LDX #19
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 13    LDA #19
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 13    LDA #19
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 11    LDA #17
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
38       SEC
A9 0B    LDA #11
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
28 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
37 bytes
EA       NOP
EA       NOP
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
EA       NOP
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
EA       NOP
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
EA       NOP
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
38 bytes
EA       NOP
EA       NOP
EA       NOP
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code


106 cycles

5 bytes
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 15    LDY #21
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
08       PHP
A2 0E    LDX #14
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0E    LDY #14
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
48       PHA
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
A5 00    LDA $00
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 12    LDY #18
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
08       PHP
38       SEC
A9 0C    LDA #12
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 08    LDA #8
@A:
08       PHP
28       PLP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 11    LDY #17
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 11    LDA #17
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
27 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
36 bytes
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


107 cycles

7 bytes
EA       NOP
A2 0D    LDX #13
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
A0 0D    LDY #13
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A0 14    LDY #20
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
EA       NOP
68       PLA
A2 14    LDX #20
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
8 bytes
EA       NOP
EA       NOP
EA       NOP
A2 14    LDX #20
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
EA       NOP
A0 14    LDY #20
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 13    LDY #19
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
08       PHP
A0 0B    LDY #11
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 0B    LDX #11
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 13    LDA #19
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 13    LDA #19
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
28 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
38 bytes
A5 00    LDA $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
EA       NOP
EA       NOP
EA       NOP
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
24 00    BIT $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
39 bytes
4C xx xx JMP *+3
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code


108 cycles

6 bytes
EA       NOP
A0 15    LDY #21
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
7 bytes
08       PHP
A2 14    LDX #20
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 14    LDY #20
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
08       PHP
38       SEC
A9 0E    LDA #14
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 0E    LDA #14
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 0D    LDA #13
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
27 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
36 bytes
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


109 cycles

6 bytes
48       PHA
A0 15    LDY #21
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
A2 0C    LDX #12
@X:
68       PLA
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
A0 0C    LDY #12
@Y:
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
A2 0C    LDX #12
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 0C    LDY #12
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
18       CLC
A9 F4    LDA #244
@A = * - 1
; ^ Hides NOP zp,X
EA       NOP
69 01    ADC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C; and requires support for unofficial opcodes
9 bytes
48       PHA
08       PHP
A2 0E    LDX #14
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
08       PHP
A0 0E    LDY #14
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 13    LDY #19
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
08       PHP
A2 0B    LDX #11
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 0B    LDY #11
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
EA       NOP
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 12    LDY #18
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
38       SEC
A9 0B    LDA #11
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
29 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
38 bytes
A5 00    LDA $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
24 00    BIT $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
39 bytes
4C xx xx JMP *+3
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
18       CLC
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C


110 cycles

6 bytes
68       PLA
A0 15    LDY #21
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
68       PLA
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
A0 15    LDY #21
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
EA       NOP
08       PHP
A2 14    LDX #20
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 14    LDY #20
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
8C       TXA
48       PHA
A2 0D    LDX #13
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
08       PHP
48       PHA
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
28 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
37 bytes
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


111 cycles

5 bytes
A2 16    LDX #22
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 16    LDY #22
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
48       PHA
08       PHP
A0 14    LDY #20
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 14    LDX #20
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
24 00    BIT $00
A2 14    LDX #20
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
24 00    BIT $00
A0 14    LDY #20
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
A5 00    LDA $00
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 13    LDY #19
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
98       TYA
48       PHA
A0 0B    LDY #11
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
08       PHP
38       SEC
A9 0E    LDA #14
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 0E    LDA #14
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 12    LDY #18
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
A5 00    LDA $00
38       SEC
A9 0E    LDA #14
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 12    LDA #18
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
29 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
38 bytes
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes
39 bytes
4C xx xx JMP *+3
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and not relocatable code
18       CLC
90 00    BCC *+2
26 00    ROL $00
66 00    ROR $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C


112 cycles

7 bytes
48       PHA
48       PHA
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
48       PHA
A0 15    LDY #21
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
EA       NOP
68       PLA
A0 15    LDY #21
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
8 bytes
EA       NOP
EA       NOP
EA       NOP
A0 15    LDY #21
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
EA       NOP
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
68       PLA
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 14    LDY #20
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
08       PHP
A0 0D    LDY #13
@Y:
24 00    BIT $00
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 0D    LDX #13
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 13    LDA #19
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
28 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
38 bytes
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


113 cycles

6 bytes
A0 10    LDY #16
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 10    LDX #16
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
7 bytes
08       PHP
A0 15    LDY #21
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
08       PHP
48       PHA
38       SEC
A9 08    LDA #8
@A:
08       PHP
28       PLP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
30 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
39 bytes
EA       NOP
A5 00    LDA $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers A, and Z&N
18       CLC
90 00    BCC *+2
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and C
EA       NOP
24 00    BIT $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N, and V
EA       NOP
85 xx    STA @zptemp
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires @zptemp
EA       NOP
04 00    NOP $00
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N; and requires support for unofficial opcodes


114 cycles

6 bytes
48       PHA
A2 16    LDX #22
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 16    LDY #22
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A5 00    LDA $00
A0 16    LDY #22
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, and Z&N
A5 00    LDA $00
A2 16    LDX #22
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, and Z&N
24 00    BIT $00
A2 16    LDX #22
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, Z&N, and V
24 00    BIT $00
A0 16    LDY #22
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, Z&N, and V
85 xx    STA @zptemp
A0 16    LDY #22
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires @zptemp
85 xx    STA @zptemp
A2 16    LDX #22
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires @zptemp
04 00    NOP $00
A0 16    LDY #22
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires support for unofficial opcodes
04 00    NOP $00
A2 16    LDX #22
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires support for unofficial opcodes
8 bytes
4C xx xx JMP *+3
A2 16    LDX #22
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and not relocatable code
4C xx xx JMP *+3
A0 16    LDY #22
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and not relocatable code
9 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
EA       NOP
EA       NOP
A0 15    LDY #21
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
48       PHA
48       PHA
08       PHP
A2 14    LDX #20
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A0 14    LDY #20
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 14    LDY #20
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
08       PHP
A0 0D    LDY #13
@Y:
24 00    BIT $00
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 0D    LDX #13
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
EA       NOP
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 13    LDY #19
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
38       SEC
A9 0D    LDA #13
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 13    LDA #19
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
29 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N
39 bytes
EA       NOP
EA       NOP
EA       NOP
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
36 00    ROL $00,X
76 00    ROR $00,X
Clobbers Z&N


115 cycles

6 bytes
68       PLA
A2 16    LDX #22
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 16    LDY #22
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
A2 10    LDX #16
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 10    LDY #16
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
EA       NOP
08       PHP
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 15    LDY #21
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 10    LDA #16
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 0E    LDA #14
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
30 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


116 cycles

5 bytes
A2 17    LDX #23
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 17    LDY #23
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
48       PHA
08       PHP
A0 15    LDY #21
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
A2 0C    LDX #12
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 0C    LDY #12
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
A5 00    LDA $00
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 14    LDY #20
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
08       PHP
18       CLC
A9 F4    LDA #244
@A = * - 1
; ^ Hides NOP zp,X
EA       NOP
69 01    ADC #1
D0 xx    BNE @A
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
48       PHA
18       CLC
A9 F4    LDA #244
@A = * - 1
; ^ Hides NOP zp,X
EA       NOP
69 01    ADC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
11 bytes
98       TYA
48       PHA
A0 0D    LDY #13
@Y:
A5 00    LDA $00
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
48       PHA
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 13    LDY #19
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
08       PHP
38       SEC
A9 0D    LDA #13
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 13    LDA #19
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
29 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


117 cycles

7 bytes
48       PHA
48       PHA
A2 16    LDX #22
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
48       PHA
A0 16    LDY #22
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A0 16    LDY #22
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
EA       NOP
68       PLA
A2 16    LDX #22
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
8 bytes
EA       NOP
EA       NOP
A0 10    LDY #16
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 10    LDX #16
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
68       PLA
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
8C       TXA
48       PHA
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 15    LDY #21
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 10    LDA #16
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
31 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


118 cycles

6 bytes
EA       NOP
A2 17    LDX #23
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 17    LDY #23
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 16    LDX #22
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 16    LDY #22
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 17    LDA #23
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
48       PHA
98       TYA
48       PHA
A0 0B    LDY #11
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
08       PHP
48       PHA
38       SEC
A9 0E    LDA #14
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 13    LDA #19
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
30 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


119 cycles

6 bytes
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
08       PHP
28       PLP
30 xx    BMI @Y
Clobbers Y, and Z&N; and writes in stack
48       PHA
A2 17    LDX #23
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
7 bytes
A5 00    LDA $00
A2 17    LDX #23
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, and Z&N
A5 00    LDA $00
A0 17    LDY #23
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, and Z&N
24 00    BIT $00
A0 17    LDY #23
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, Z&N, and V
24 00    BIT $00
A2 17    LDX #23
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, Z&N, and V
85 xx    STA @zptemp
A0 17    LDY #23
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires @zptemp
85 xx    STA @zptemp
A2 17    LDX #23
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires @zptemp
04 00    NOP $00
A0 17    LDY #23
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires support for unofficial opcodes
04 00    NOP $00
A2 17    LDX #23
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires support for unofficial opcodes
8 bytes
4C xx xx JMP *+3
A2 17    LDX #23
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and not relocatable code
4C xx xx JMP *+3
A0 17    LDY #23
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and not relocatable code
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
18       CLC
90 00    BCC *+2
88       DEY
30 xx    BMI @Y
Clobbers Y, Z&N, and C
9 bytes
EA       NOP
EA       NOP
EA       NOP
A2 10    LDX #16
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
EA       NOP
A0 10    LDY #16
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
48       PHA
48       PHA
08       PHP
A0 15    LDY #21
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
8C       TXA
48       PHA
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A0 15    LDY #21
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 10    LDA #16
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 14    LDY #20
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
31 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


120 cycles

6 bytes
A0 11    LDY #17
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 11    LDX #17
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A0 10    LDY #16
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 10    LDX #16
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 17    LDA #23
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
30 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


121 cycles

5 bytes
A0 18    LDY #24
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 18    LDX #24
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
48       PHA
08       PHP
A0 16    LDY #22
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 16    LDX #22
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 17    LDA #23
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
24 00    BIT $00
A0 16    LDY #22
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
24 00    BIT $00
A2 16    LDX #22
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
A5 00    LDA $00
38       SEC
A9 17    LDA #23
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
8C       TXA
48       PHA
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
Clobbers A, S, and Z&N; and writes in stack
11 bytes
EA       NOP
EA       NOP
8C       TXA
48       PHA
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
48       PHA
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 14    LDY #20
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
32 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


122 cycles

7 bytes
EA       NOP
A2 11    LDX #17
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 11    LDY #17
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
38       SEC
A9 11    LDA #17
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 16    LDY #22
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
08       PHP
A0 10    LDY #16
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 10    LDX #16
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
10 bytes
08       PHP
38       SEC
A9 10    LDA #16
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 10    LDA #16
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
31 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


123 cycles

6 bytes
EA       NOP
A2 18    LDX #24
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 18    LDY #24
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 17    LDX #23
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 17    LDY #23
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
18       CLC
A9 F4    LDA #244
@A = * - 1
; ^ Hides NOP zp,X
EA       NOP
69 01    ADC #1
D0 xx    BNE @A
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
@Y:
A5 00    LDA $00
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
48       PHA
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 14    LDA #20
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
32 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


124 cycles

4 bytes
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
Clobbers X, and Z&N
6 bytes
48       PHA
A0 18    LDY #24
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A5 00    LDA $00
A0 18    LDY #24
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, and Z&N
24 00    BIT $00
A0 18    LDY #24
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, Z&N, and V
85 xx    STA @zptemp
A0 18    LDY #24
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires @zptemp
04 00    NOP $00
A0 18    LDY #24
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires support for unofficial opcodes
8 bytes
EA       NOP
EA       NOP
A0 11    LDY #17
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
9 bytes
EA       NOP
38       SEC
A9 11    LDA #17
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
48       PHA
48       PHA
08       PHP
A0 16    LDY #22
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A2 16    LDX #22
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
10 bytes
98       TYA
48       PHA
A0 10    LDY #16
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 10    LDX #16
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 10    LDY #16
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
11 bytes
48       PHA
8C       TXA
48       PHA
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
08       PHP
38       SEC
A9 10    LDA #16
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
31 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


125 cycles

6 bytes
68       PLA
A2 18    LDX #24
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 18    LDY #24
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 18    LDY #24
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 18    LDX #24
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 17    LDY #23
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 17    LDX #23
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 17    LDA #23
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 17    LDA #23
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
33 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


126 cycles

5 bytes
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 19    LDX #25
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
08       PHP
28       PLP
30 xx    BMI @Y
28       PLP
Clobbers Y; and writes in stack
48       PHA
08       PHP
A2 17    LDX #23
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
24 00    BIT $00
A2 17    LDX #23
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
A5 00    LDA $00
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 16    LDY #22
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
EA       NOP
98       TYA
48       PHA
A0 10    LDY #16
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
48       PHA
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
8C       TXA
48       PHA
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 10    LDA #16
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
32 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


127 cycles

5 bytes
48       PHA
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
6 bytes
A0 12    LDY #18
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 12    LDX #18
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A2 11    LDX #17
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 11    LDY #17
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
68       PLA
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 17    LDY #23
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 17    LDA #23
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 17    LDA #23
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
33 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


128 cycles

5 bytes
68       PLA
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
6 bytes
EA       NOP
A2 19    LDX #25
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 18    LDX #24
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 18    LDY #24
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 17    LDA #23
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 17    LDA #23
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 17    LDA #23
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 17    LDA #23
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
EA       NOP
EA       NOP
48       PHA
8C       TXA
48       PHA
A2 15    LDX #21
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
48       PHA
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 15    LDA #21
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
32 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


129 cycles

6 bytes
A2 10    LDX #16
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
A0 10    LDY #16
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
68       PLA
68       PLA
30 xx    BMI @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
A2 12    LDX #18
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 12    LDY #18
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
38       SEC
A9 12    LDA #18
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
EA       NOP
08       PHP
A0 11    LDY #17
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 11    LDX #17
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
10 bytes
08       PHP
38       SEC
A9 11    LDA #17
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 11    LDA #17
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
48       PHA
98       TYA
48       PHA
A0 16    LDY #22
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 10    LDA #16
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
34 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


130 cycles

6 bytes
48       PHA
48       PHA
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
68       PLA
A2 19    LDX #25
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 19    LDX #25
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 18    LDY #24
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 18    LDX #24
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
33 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


131 cycles

5 bytes
A2 1A    LDX #26
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 1A    LDY #26
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
6 bytes
08       PHP
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
8 bytes
48       PHA
08       PHP
A0 18    LDY #24
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
38       SEC
A9 10    LDA #16
@A:
48       PHA
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
24 00    BIT $00
A0 18    LDY #24
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
A5 00    LDA $00
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
98       TYA
48       PHA
A0 11    LDY #17
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
11 bytes
EA       NOP
08       PHP
38       SEC
A9 11    LDA #17
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 11    LDA #17
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
98       TYA
48       PHA
A0 10    LDY #16
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 10    LDA #16
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
34 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


132 cycles

6 bytes
68       PLA
68       PLA
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
BA       TSX
68       PLA
9A       TXS
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
Clobbers A, X, and Z&N
48       PHA
A0 10    LDY #16
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 10    LDX #16
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
8 bytes
EA       NOP
EA       NOP
EA       NOP
A2 19    LDX #25
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
EA       NOP
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 18    LDY #24
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 18    LDX #24
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 18    LDY #24
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 17    LDA #23
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
33 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


133 cycles

6 bytes
EA       NOP
A0 1A    LDY #26
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 1A    LDX #26
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
7 bytes
08       PHP
A2 19    LDX #25
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 1A    LDA #26
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 10    LDY #16
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
48       PHA
38       SEC
A9 16    LDA #22
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 10    LDA #16
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
35 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


134 cycles

6 bytes
A0 13    LDY #19
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 13    LDX #19
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
7 bytes
48       PHA
08       PHP
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
8 bytes
08       PHP
A2 12    LDX #18
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 12    LDY #18
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
9 bytes
EA       NOP
68       PLA
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 18    LDY #24
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 17    LDY #23
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 17    LDA #23
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
34 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


135 cycles

6 bytes
68       PLA
A0 1A    LDY #26
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
68       PLA
A2 1A    LDX #26
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A2 1A    LDX #26
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
A0 1A    LDY #26
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
8C       TXA
48       PHA
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA       NOP
08       PHP
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 19    LDX #25
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 1A    LDA #26
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 17    LDA #23
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 17    LDA #23
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
35 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


136 cycles

5 bytes
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
38       SEC
A9 13    LDA #19
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
48       PHA
08       PHP
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 19    LDX #25
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
9 bytes
08       PHP
A0 10    LDY #16
@Y:
24 00    BIT $00
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 10    LDX #16
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
10 bytes
08       PHP
38       SEC
A9 12    LDA #18
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 12    LDA #18
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 11    LDA #17
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
34 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


137 cycles

6 bytes
A2 11    LDX #17
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
A0 11    LDY #17
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A2 11    LDX #17
@X:
A5 00    LDA $00
CA       DEX
D0 xx    BNE @X
Clobbers A, X, and Z&N
A0 11    LDY #17
@Y:
A5 00    LDA $00
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, and Z&N
A2 11    LDX #17
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
Clobbers X, Z&N, and V
A0 11    LDY #17
@Y:
24 00    BIT $00
88       DEY
D0 xx    BNE @Y
Clobbers Y, Z&N, and V
A2 11    LDX #17
@X:
85 xx    STA @zptemp
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires @zptemp
A0 11    LDY #17
@Y:
85 xx    STA @zptemp
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires @zptemp
A2 11    LDX #17
@X:
04 00    NOP $00
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires support for unofficial opcodes
A0 11    LDY #17
@Y:
04 00    NOP $00
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires support for unofficial opcodes
8 bytes
EA       NOP
EA       NOP
EA       NOP
A0 1A    LDY #26
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
EA       NOP
A2 1A    LDX #26
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
48       PHA
48       PHA
08       PHP
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
68       PLA
38       SEC
A9 1A    LDA #26
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 19    LDX #25
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 1A    LDA #26
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
36 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


138 cycles

6 bytes
EA       NOP
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A0 1A    LDY #26
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 1A    LDX #26
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
48       PHA
8C       TXA
48       PHA
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
68       PLA
AA       TAX
Clobbers A, S, and Z&N; and writes in stack
10 bytes
98       TYA
48       PHA
A0 12    LDY #18
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
08       PHP
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
38       SEC
A9 10    LDA #16
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
98       TYA
48       PHA
A0 11    LDY #17
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 11    LDA #17
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
35 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


139 cycles

6 bytes
48       PHA
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
08       PHP
28       PLP
88       DEY
30 xx    BMI @Y
Clobbers Y, and Z&N; and writes in stack
20 xx xx JSR @rts15
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
Clobbers X, and Z&N; requires @rts15; and writes in stack
A5 00    LDA $00
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, and Z&N
A5 00    LDA $00
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, and Z&N
24 00    BIT $00
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, Z&N, and V
24 00    BIT $00
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, Z&N, and V
85 xx    STA @zptemp
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires @zptemp
85 xx    STA @zptemp
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires @zptemp
04 00    NOP $00
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires support for unofficial opcodes
04 00    NOP $00
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires support for unofficial opcodes
8 bytes
4C xx xx JMP *+3
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and not relocatable code
4C xx xx JMP *+3
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and not relocatable code
38       SEC
A9 11    LDA #17
@A:
48       PHA
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
A2 1A    LDX #26
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
EA       NOP
EA       NOP
A0 1A    LDY #26
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
08       PHP
BA       TSX
68       PLA
9A       TXS
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
28       PLP
Clobbers A, and X; and writes in stack
38       SEC
A9 11    LDA #17
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, C, and V
38       SEC
A9 11    LDA #17
@A:
85 xx    STA @zptemp
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C; and requires @zptemp
68       PLA
8C       TXA
48       PHA
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
68       PLA
AA       TAX
Clobbers A, S, and Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A2 19    LDX #25
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 1A    LDA #26
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
38       SEC
A9 11    LDA #17
@A:
04 00    NOP $00
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C; and requires support for unofficial opcodes
10 bytes
EA       NOP
98       TYA
48       PHA
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A2 19    LDX #25
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
A5 00    LDA $00
38       SEC
A9 13    LDA #19
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 18    LDY #24
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
36 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


140 cycles

6 bytes
68       PLA
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A2 1A    LDX #26
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 1A    LDY #26
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 1A    LDA #26
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 1A    LDA #26
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
35 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


141 cycles

5 bytes
A0 1C    LDY #28
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 1C    LDX #28
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A2 13    LDX #19
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 13    LDY #19
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
48       PHA
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
A5 00    LDA $00
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
EA       NOP
EA       NOP
98       TYA
48       PHA
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
48       PHA
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 18    LDY #24
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 18    LDA #24
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
37 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


142 cycles

7 bytes
48       PHA
48       PHA
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
48       PHA
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
EA       NOP
68       PLA
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
8 bytes
EA       NOP
EA       NOP
EA       NOP
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
EA       NOP
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
8C       TXA
48       PHA
A2 1A    LDX #26
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 1A    LDY #26
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 1A    LDX #26
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
8C       TXA
48       PHA
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
08       PHP
38       SEC
A9 1A    LDA #26
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
36 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


143 cycles

6 bytes
EA       NOP
A2 1C    LDX #28
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 1C    LDY #28
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
08       PHP
38       SEC
A9 13    LDA #19
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 13    LDA #19
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 12    LDA #18
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
37 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


144 cycles

6 bytes
48       PHA
A2 1C    LDX #28
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 1C    LDY #28
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A5 00    LDA $00
A0 1C    LDY #28
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, and Z&N
A5 00    LDA $00
A2 1C    LDX #28
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, and Z&N
24 00    BIT $00
A2 1C    LDX #28
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, Z&N, and V
24 00    BIT $00
A0 1C    LDY #28
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, Z&N, and V
85 xx    STA @zptemp
A0 1C    LDY #28
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires @zptemp
85 xx    STA @zptemp
A2 1C    LDX #28
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires @zptemp
04 00    NOP $00
A2 1C    LDX #28
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires support for unofficial opcodes
04 00    NOP $00
A0 1C    LDY #28
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires support for unofficial opcodes
8 bytes
A2 0D    LDX #13
@X:
EA       NOP
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 0D    LDY #13
@Y:
EA       NOP
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
9 bytes
08       PHP
A2 11    LDX #17
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 11    LDY #17
@Y:
24 00    BIT $00
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
8C       TXA
48       PHA
A2 1A    LDX #26
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 1A    LDA #26
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
36 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


145 cycles

6 bytes
A0 12    LDY #18
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
A2 12    LDX #18
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
A0 10    LDY #16
@Y:
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
A2 10    LDX #16
@X:
68       PLA
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
A0 10    LDY #16
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 10    LDX #16
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
48       PHA
48       PHA
8C       TXA
48       PHA
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
68       PLA
AA       TAX
68       PLA
Clobbers S, and Z&N; and writes in stack
12 bytes
48       PHA
98       TYA
48       PHA
A0 12    LDY #18
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
08       PHP
48       PHA
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
38       SEC
A9 10    LDA #16
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
38 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


146 cycles

5 bytes
A2 1D    LDX #29
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 1D    LDY #29
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
48       PHA
08       PHP
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
24 00    BIT $00
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
24 00    BIT $00
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
A5 00    LDA $00
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
8C       TXA
48       PHA
A2 1A    LDX #26
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
Clobbers A, S, and Z&N; and writes in stack
11 bytes
08       PHP
38       SEC
A9 11    LDA #17
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 11    LDA #17
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, C, and V; and writes in stack
48       PHA
38       SEC
A9 11    LDA #17
@A:
85 xx    STA @zptemp
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; requires @zptemp; and writes in stack
48       PHA
48       PHA
38       SEC
A9 13    LDA #19
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
48       PHA
38       SEC
A9 11    LDA #17
@A:
04 00    NOP $00
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
37 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


147 cycles

7 bytes
EA       NOP
A2 12    LDX #18
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
A0 12    LDY #18
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
EA       NOP
A2 10    LDX #16
@X:
68       PLA
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
EA       NOP
A0 10    LDY #16
@Y:
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
8 bytes
EA       NOP
A2 10    LDX #16
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 10    LDY #16
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 10    LDA #16
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 1A    LDA #26
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
38 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


148 cycles

6 bytes
A2 15    LDX #21
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 15    LDY #21
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A0 1C    LDY #28
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 1C    LDX #28
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 1D    LDA #29
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
48       PHA
48       PHA
8C       TXA
48       PHA
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
D0 xx    BNE @X
68       PLA
AA       TAX
68       PLA
Clobbers S, and Z&N; and writes in stack
13 bytes
EA       NOP
EA       NOP
48       PHA
98       TYA
48       PHA
A0 19    LDY #25
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
48       PHA
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 19    LDA #25
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
37 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


149 cycles

6 bytes
48       PHA
A2 1D    LDX #29
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 1D    LDY #29
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A5 00    LDA $00
A2 1D    LDX #29
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, and Z&N
A5 00    LDA $00
A0 1D    LDY #29
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, and Z&N
24 00    BIT $00
A0 1D    LDY #29
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, Z&N, and V
24 00    BIT $00
A2 1D    LDX #29
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, Z&N, and V
85 xx    STA @zptemp
A2 1D    LDX #29
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires @zptemp
85 xx    STA @zptemp
A0 1D    LDY #29
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires @zptemp
04 00    NOP $00
A0 1D    LDY #29
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires support for unofficial opcodes
04 00    NOP $00
A2 1D    LDX #29
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires support for unofficial opcodes
8 bytes
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
26 00    ROL $00
66 00    ROR $00
30 xx    BMI @Y
Clobbers Y, and Z&N
4C xx xx JMP *+3
A2 1D    LDX #29
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and not relocatable code
9 bytes
EA       NOP
EA       NOP
A2 10    LDX #16
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
48       PHA
48       PHA
08       PHP
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A2 1B    LDX #27
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 10    LDA #16
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
8C       TXA
48       PHA
A2 1A    LDX #26
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 1A    LDA #26
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
39 bytes
EA       NOP
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


150 cycles

6 bytes
68       PLA
A2 1D    LDX #29
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 1D    LDY #29
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
A0 15    LDY #21
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 15    LDX #21
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A2 1C    LDX #28
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 1C    LDY #28
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 15    LDA #21
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 13    LDA #19
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
38 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


151 cycles

5 bytes
A0 1E    LDY #30
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 1E    LDX #30
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
48       PHA
08       PHP
A2 1C    LDX #28
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
08       PHP
A0 1C    LDY #28
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
38       SEC
A9 1D    LDA #29
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
24 00    BIT $00
A0 1C    LDY #28
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
24 00    BIT $00
A2 1C    LDX #28
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
A5 00    LDA $00
38       SEC
A9 1D    LDA #29
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
EA       NOP
EA       NOP
98       TYA
48       PHA
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
48       PHA
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
8C       TXA
48       PHA
A2 1A    LDX #26
@X:
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 1A    LDA #26
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
39 bytes
A5 00    LDA $00
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


152 cycles

7 bytes
48       PHA
48       PHA
A0 1D    LDY #29
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
48       PHA
A2 1D    LDX #29
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A0 1D    LDY #29
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
EA       NOP
68       PLA
A2 1D    LDX #29
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
8 bytes
EA       NOP
EA       NOP
A2 15    LDX #21
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
A0 15    LDY #21
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 1D    LDA #29
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 1C    LDY #28
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
08       PHP
A2 10    LDX #16
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 10    LDY #16
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 15    LDA #21
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
38 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


153 cycles

6 bytes
EA       NOP
A2 1E    LDX #30
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 1E    LDY #30
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A0 1D    LDY #29
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 1D    LDX #29
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 1E    LDA #30
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
08       PHP
48       PHA
38       SEC
A9 11    LDA #17
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


154 cycles

6 bytes
48       PHA
A2 1E    LDX #30
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 1E    LDY #30
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
A0 11    LDY #17
@Y:
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
A2 11    LDX #17
@X:
68       PLA
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
A2 11    LDX #17
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 11    LDY #17
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
9 bytes
48       PHA
48       PHA
08       PHP
A0 1C    LDY #28
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A2 1C    LDX #28
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 1D    LDA #29
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 1C    LDY #28
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
08       PHP
A2 10    LDX #16
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 10    LDY #16
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 15    LDA #21
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
38       SEC
A9 10    LDA #16
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
39 bytes
EA       NOP
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


155 cycles

6 bytes
A0 16    LDY #22
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 16    LDX #22
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
7 bytes
18       CLC
A9 EA    LDA #234
@A = * - 1
; ^ Hides NOP
69 01    ADC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
8 bytes
08       PHP
A0 15    LDY #21
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 15    LDX #21
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
9 bytes
08       PHP
38       SEC
A9 1D    LDA #29
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 1D    LDA #29
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


156 cycles

5 bytes
A2 1F    LDX #31
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 1F    LDY #31
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
48       PHA
08       PHP
A0 1D    LDY #29
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 1D    LDX #29
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 1E    LDA #30
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
24 00    BIT $00
A0 1D    LDY #29
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
24 00    BIT $00
A2 1D    LDX #29
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
A5 00    LDA $00
38       SEC
A9 1E    LDA #30
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 1C    LDY #28
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
98       TYA
48       PHA
A0 10    LDY #16
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
48       PHA
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
08       PHP
38       SEC
A9 10    LDA #16
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack
39 bytes
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
68       PLA
Clobbers A, S, and Z&N


157 cycles

7 bytes
EA       NOP
A2 16    LDX #22
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 16    LDY #22
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
38       SEC
A9 16    LDA #22
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 1D    LDY #29
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
08       PHP
A2 15    LDX #21
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 15    LDY #21
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
10 bytes
08       PHP
38       SEC
A9 15    LDA #21
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 15    LDA #21
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


158 cycles

6 bytes
EA       NOP
A2 1F    LDX #31
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 1F    LDY #31
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A0 1E    LDY #30
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 1E    LDX #30
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 1F    LDA #31
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 1D    LDA #29
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 1D    LDA #29
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 1D    LDA #29
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 1D    LDA #29
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
EA       NOP
EA       NOP
48       PHA
98       TYA
48       PHA
A0 1B    LDY #27
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
48       PHA
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 1B    LDA #27
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


159 cycles

6 bytes
48       PHA
A2 1F    LDX #31
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 1F    LDY #31
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A5 00    LDA $00
A2 1F    LDX #31
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, and Z&N
A5 00    LDA $00
A0 1F    LDY #31
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, and Z&N
24 00    BIT $00
A0 1F    LDY #31
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, Z&N, and V
24 00    BIT $00
A2 1F    LDX #31
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, Z&N, and V
85 xx    STA @zptemp
A2 1F    LDX #31
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires @zptemp
85 xx    STA @zptemp
A0 1F    LDY #31
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires @zptemp
04 00    NOP $00
A2 1F    LDX #31
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires support for unofficial opcodes
04 00    NOP $00
A0 1F    LDY #31
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires support for unofficial opcodes
8 bytes
EA       NOP
EA       NOP
A2 16    LDX #22
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
A0 16    LDY #22
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
68       PLA
18       CLC
A9 EA    LDA #234
@A = * - 1
; ^ Hides NOP
69 01    ADC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
EA       NOP
38       SEC
A9 16    LDA #22
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
48       PHA
48       PHA
08       PHP
A0 1D    LDY #29
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A2 1D    LDX #29
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
10 bytes
98       TYA
48       PHA
A0 15    LDY #21
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 15    LDY #21
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 15    LDX #21
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
11 bytes
48       PHA
98       TYA
48       PHA
A0 1C    LDY #28
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
08       PHP
38       SEC
A9 15    LDA #21
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


160 cycles

6 bytes
68       PLA
A2 1F    LDX #31
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 1F    LDY #31
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 1F    LDY #31
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 1F    LDX #31
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A2 1E    LDX #30
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 1E    LDY #30
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 1F    LDA #31
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 1E    LDA #30
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 1E    LDA #30
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


161 cycles

5 bytes
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 20    LDX #32
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
48       PHA
08       PHP
A2 1E    LDX #30
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
08       PHP
A0 1E    LDY #30
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
38       SEC
A9 1F    LDA #31
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
A2 11    LDX #17
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 11    LDY #17
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
A5 00    LDA $00
38       SEC
A9 1F    LDA #31
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 1D    LDY #29
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
EA       NOP
98       TYA
48       PHA
A0 15    LDY #21
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
38       SEC
A9 1D    LDA #29
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
48       PHA
38       SEC
A9 1D    LDA #29
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 1C    LDY #28
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 15    LDA #21
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


162 cycles

6 bytes
A0 17    LDY #23
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 17    LDX #23
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A0 16    LDY #22
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 16    LDX #22
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
68       PLA
38       SEC
A9 1F    LDA #31
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
08       PHP
18       CLC
A9 EA    LDA #234
@A = * - 1
; ^ Hides NOP
69 01    ADC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
18       CLC
A9 EA    LDA #234
@A = * - 1
; ^ Hides NOP
69 01    ADC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 1F    LDA #31
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
08       PHP
48       PHA
38       SEC
A9 1D    LDA #29
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


163 cycles

6 bytes
EA       NOP
A2 20    LDX #32
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 1F    LDX #31
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 1F    LDY #31
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 1E    LDA #30
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 1E    LDA #30
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 1E    LDA #30
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 1E    LDA #30
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
48       PHA
98       TYA
48       PHA
A0 10    LDY #16
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
48       PHA
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 1C    LDA #28
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


164 cycles

6 bytes
48       PHA
A2 20    LDX #32
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
EA       NOP
A2 17    LDX #23
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 17    LDY #23
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
38       SEC
A9 17    LDA #23
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
A0 0D    LDY #13
@Y:
08       PHP
28       PLP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 0D    LDX #13
@X:
08       PHP
28       PLP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
10 bytes
08       PHP
38       SEC
A9 16    LDA #22
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 16    LDA #22
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
48       PHA
98       TYA
48       PHA
A0 1D    LDY #29
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 15    LDA #21
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


165 cycles

6 bytes
68       PLA
A2 20    LDX #32
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 20    LDX #32
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 1F    LDY #31
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 1F    LDX #31
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 1F    LDA #31
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 1F    LDA #31
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 1D    LDA #29
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 1D    LDA #29
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


166 cycles

5 bytes
A0 21    LDY #33
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 21    LDX #33
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
48       PHA
08       PHP
A0 1F    LDY #31
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 1F    LDX #31
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
24 00    BIT $00
A0 1F    LDY #31
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
24 00    BIT $00
A2 1F    LDX #31
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
A5 00    LDA $00
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
98       TYA
48       PHA
A0 16    LDY #22
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
11 bytes
08       PHP
38       SEC
A9 0D    LDA #13
@A:
08       PHP
28       PLP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 0D    LDA #13
@A:
08       PHP
28       PLP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
98       TYA
48       PHA
A0 15    LDY #21
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 15    LDA #21
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


167 cycles

7 bytes
48       PHA
48       PHA
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
48       PHA
A2 20    LDX #32
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
EA       NOP
68       PLA
A2 20    LDX #32
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
8 bytes
EA       NOP
EA       NOP
EA       NOP
A2 20    LDX #32
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
EA       NOP
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 1F    LDY #31
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 1F    LDX #31
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 1F    LDY #31
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 1F    LDA #31
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 1F    LDA #31
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 1E    LDA #30
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


168 cycles

6 bytes
EA       NOP
A2 21    LDX #33
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 21    LDY #33
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 20    LDX #32
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 21    LDA #33
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 1F    LDA #31
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 1F    LDA #31
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 1F    LDA #31
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 1F    LDA #31
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 15    LDY #21
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
48       PHA
38       SEC
A9 1D    LDA #29
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 15    LDA #21
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


169 cycles

6 bytes
A0 18    LDY #24
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 18    LDX #24
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A2 17    LDX #23
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 17    LDY #23
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
9 bytes
EA       NOP
68       PLA
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 1F    LDY #31
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
08       PHP
48       PHA
18       CLC
A9 EA    LDA #234
@A = * - 1
; ^ Hides NOP
69 01    ADC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


170 cycles

6 bytes
68       PLA
A2 21    LDX #33
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 21    LDY #33
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 21    LDY #33
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 21    LDX #33
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A2 20    LDX #32
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 21    LDA #33
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 1E    LDA #30
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 1E    LDA #30
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


171 cycles

5 bytes
A0 22    LDY #34
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 22    LDX #34
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
38       SEC
A9 18    LDA #24
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
48       PHA
08       PHP
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 20    LDX #32
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
9 bytes
EA       NOP
08       PHP
A0 17    LDY #23
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 17    LDX #23
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
10 bytes
08       PHP
38       SEC
A9 17    LDA #23
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 17    LDA #23
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 16    LDA #22
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


172 cycles

6 bytes
A0 13    LDY #19
@Y:
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
A2 13    LDX #19
@X:
68       PLA
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
A0 13    LDY #19
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 13    LDX #19
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
68       PLA
38       SEC
A9 21    LDA #33
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 20    LDX #32
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 21    LDA #33
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 1F    LDA #31
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


173 cycles

6 bytes
EA       NOP
A2 22    LDX #34
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 22    LDY #34
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 21    LDX #33
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 21    LDY #33
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
98       TYA
48       PHA
A0 17    LDY #23
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
08       PHP
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
98       TYA
48       PHA
A0 16    LDY #22
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
08       PHP
48       PHA
38       SEC
A9 0D    LDA #13
@A:
08       PHP
28       PLP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


174 cycles

5 bytes
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
6 bytes
48       PHA
A0 22    LDY #34
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A5 00    LDA $00
A0 22    LDY #34
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, and Z&N
24 00    BIT $00
A0 22    LDY #34
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, Z&N, and V
85 xx    STA @zptemp
A0 22    LDY #34
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires @zptemp
04 00    NOP $00
A0 22    LDY #34
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires support for unofficial opcodes
8 bytes
EA       NOP
A0 13    LDY #19
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
9 bytes
38       SEC
A9 13    LDA #19
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
48       PHA
48       PHA
08       PHP
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A2 20    LDX #32
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
10 bytes
EA       NOP
98       TYA
48       PHA
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A2 20    LDX #32
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
11 bytes
48       PHA
98       TYA
48       PHA
A0 1F    LDY #31
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 1F    LDA #31
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


175 cycles

6 bytes
68       PLA
A2 22    LDX #34
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 22    LDY #34
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 22    LDY #34
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 22    LDX #34
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 21    LDY #33
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 21    LDX #33
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 21    LDA #33
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 21    LDA #33
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 1F    LDA #31
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 1F    LDA #31
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


176 cycles

5 bytes
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 23    LDX #35
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A2 18    LDX #24
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 18    LDY #24
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
48       PHA
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
A5 00    LDA $00
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
EA       NOP
EA       NOP
98       TYA
48       PHA
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
48       PHA
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 1F    LDY #31
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 1F    LDA #31
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


177 cycles

6 bytes
A2 16    LDX #22
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
A0 16    LDY #22
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A2 16    LDX #22
@X:
A5 00    LDA $00
CA       DEX
D0 xx    BNE @X
Clobbers A, X, and Z&N
A0 16    LDY #22
@Y:
A5 00    LDA $00
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, and Z&N
A2 16    LDX #22
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
Clobbers X, Z&N, and V
A0 16    LDY #22
@Y:
24 00    BIT $00
88       DEY
D0 xx    BNE @Y
Clobbers Y, Z&N, and V
A0 16    LDY #22
@Y:
85 xx    STA @zptemp
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires @zptemp
A2 16    LDX #22
@X:
85 xx    STA @zptemp
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires @zptemp
A0 16    LDY #22
@Y:
04 00    NOP $00
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires support for unofficial opcodes
A2 16    LDX #22
@X:
04 00    NOP $00
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires support for unofficial opcodes
8 bytes
A0 10    LDY #16
@Y:
EA       NOP
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 10    LDX #16
@X:
EA       NOP
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
68       PLA
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 21    LDY #33
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 21    LDX #33
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 21    LDY #33
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 21    LDA #33
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 21    LDA #33
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


178 cycles

6 bytes
EA       NOP
A2 23    LDX #35
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 22    LDX #34
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 22    LDY #34
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
08       PHP
38       SEC
A9 18    LDA #24
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 18    LDA #24
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 17    LDA #23
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


179 cycles

6 bytes
48       PHA
A2 23    LDX #35
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A5 00    LDA $00
A2 23    LDX #35
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, and Z&N
A5 00    LDA $00
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, and Z&N
24 00    BIT $00
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, Z&N, and V
24 00    BIT $00
A2 23    LDX #35
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, Z&N, and V
85 xx    STA @zptemp
A2 23    LDX #35
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires @zptemp
85 xx    STA @zptemp
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires @zptemp
04 00    NOP $00
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires support for unofficial opcodes
04 00    NOP $00
A2 23    LDX #35
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires support for unofficial opcodes
8 bytes
4C xx xx JMP *+3
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and not relocatable code
4C xx xx JMP *+3
A2 23    LDX #35
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and not relocatable code
18       CLC
90 00    BCC *+2
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
CA       DEX
D0 xx    BNE @X
Clobbers X, Z&N, and C
38       SEC
A9 16    LDA #22
@A:
48       PHA
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
A2 13    LDX #19
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 13    LDY #19
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
A2 10    LDX #16
@X:
EA       NOP
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 10    LDY #16
@Y:
EA       NOP
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
38       SEC
A9 16    LDA #22
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, C, and V
38       SEC
A9 16    LDA #22
@A:
85 xx    STA @zptemp
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C; and requires @zptemp
EA       NOP
68       PLA
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
38       SEC
A9 16    LDA #22
@A:
04 00    NOP $00
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C; and requires support for unofficial opcodes
10 bytes
EA       NOP
98       TYA
48       PHA
A0 21    LDY #33
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
38       SEC
A9 10    LDA #16
@A:
EA       NOP
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 21    LDA #33
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


180 cycles

6 bytes
68       PLA
A2 23    LDX #35
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 23    LDX #35
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 22    LDY #34
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 22    LDX #34
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
98       TYA
48       PHA
A0 17    LDY #23
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
08       PHP
48       PHA
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


181 cycles

5 bytes
A0 24    LDY #36
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 24    LDX #36
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
7 bytes
08       PHP
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
8 bytes
48       PHA
08       PHP
A0 22    LDY #34
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
38       SEC
A9 14    LDA #20
@A = * - 1
; ^ Hides NOP zp,X
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C; and requires support for unofficial opcodes
9 bytes
08       PHP
24 00    BIT $00
A0 22    LDY #34
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
A5 00    LDA $00
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 21    LDY #33
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
08       PHP
38       SEC
A9 13    LDA #19
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 13    LDA #19
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


182 cycles

7 bytes
48       PHA
48       PHA
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
48       PHA
A2 23    LDX #35
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A2 23    LDX #35
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
EA       NOP
68       PLA
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
8 bytes
EA       NOP
EA       NOP
EA       NOP
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
EA       NOP
A2 23    LDX #35
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
68       PLA
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 22    LDY #34
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 22    LDY #34
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 22    LDX #34
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 21    LDA #33
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


183 cycles

6 bytes
A2 1A    LDX #26
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 1A    LDY #26
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 23    LDX #35
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 24    LDA #36
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
EA       NOP
EA       NOP
48       PHA
98       TYA
48       PHA
A0 20    LDY #32
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
48       PHA
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 20    LDA #32
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


184 cycles

6 bytes
48       PHA
A2 24    LDX #36
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 24    LDY #36
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A5 00    LDA $00
A2 24    LDX #36
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, and Z&N
A5 00    LDA $00
A0 24    LDY #36
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, and Z&N
24 00    BIT $00
A0 24    LDY #36
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, Z&N, and V
24 00    BIT $00
A2 24    LDX #36
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, Z&N, and V
85 xx    STA @zptemp
A2 24    LDX #36
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires @zptemp
85 xx    STA @zptemp
A0 24    LDY #36
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires @zptemp
04 00    NOP $00
A0 24    LDY #36
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires support for unofficial opcodes
04 00    NOP $00
A2 24    LDX #36
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires support for unofficial opcodes
8 bytes
4C xx xx JMP *+3
A0 24    LDY #36
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and not relocatable code
4C xx xx JMP *+3
A2 24    LDX #36
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and not relocatable code
48       PHA
08       PHP
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
9 bytes
08       PHP
A2 16    LDX #22
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 16    LDY #22
@Y:
24 00    BIT $00
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
EA       NOP
EA       NOP
A2 23    LDX #35
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
EA       NOP
EA       NOP
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
68       PLA
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 22    LDY #34
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 21    LDY #33
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 21    LDA #33
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


185 cycles

6 bytes
A0 17    LDY #23
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
A2 17    LDX #23
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
68       PLA
A2 24    LDX #36
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 24    LDY #36
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
A0 1A    LDY #26
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 1A    LDX #26
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 23    LDX #35
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 1A    LDA #26
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 18    LDA #24
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


186 cycles

5 bytes
A0 25    LDY #37
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 25    LDX #37
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
48       PHA
08       PHP
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 23    LDX #35
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 24    LDA #36
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
24 00    BIT $00
A2 23    LDX #35
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
24 00    BIT $00
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
A5 00    LDA $00
38       SEC
A9 24    LDA #36
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 22    LDY #34
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
08       PHP
38       SEC
A9 16    LDA #22
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 16    LDA #22
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, C, and V; and writes in stack
48       PHA
38       SEC
A9 16    LDA #22
@A:
85 xx    STA @zptemp
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; requires @zptemp; and writes in stack
48       PHA
48       PHA
48       PHA
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
48       PHA
38       SEC
A9 16    LDA #22
@A:
04 00    NOP $00
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 21    LDY #33
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 21    LDA #33
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


187 cycles

7 bytes
EA       NOP
A2 17    LDX #23
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
A0 17    LDY #23
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A0 24    LDY #36
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
EA       NOP
68       PLA
A2 24    LDX #36
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
8 bytes
EA       NOP
EA       NOP
A2 1A    LDX #26
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
A0 1A    LDY #26
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 24    LDA #36
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 23    LDX #35
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 1A    LDA #26
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


188 cycles

6 bytes
EA       NOP
A2 25    LDX #37
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 25    LDY #37
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 24    LDX #36
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 24    LDY #36
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 25    LDA #37
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
08       PHP
38       SEC
A9 14    LDA #20
@A = * - 1
; ^ Hides NOP zp,X
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
48       PHA
38       SEC
A9 14    LDA #20
@A = * - 1
; ^ Hides NOP zp,X
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
08       PHP
48       PHA
38       SEC
A9 13    LDA #19
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


189 cycles

6 bytes
48       PHA
A2 25    LDX #37
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 25    LDY #37
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A5 00    LDA $00
A2 25    LDX #37
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, and Z&N
A5 00    LDA $00
A0 25    LDY #37
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, and Z&N
24 00    BIT $00
A0 25    LDY #37
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, Z&N, and V
24 00    BIT $00
A2 25    LDX #37
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, Z&N, and V
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
20 xx xx JSR @rts14
30 xx    BMI @Y
Clobbers Y, and Z&N; requires @rts14; and writes in stack
85 xx    STA @zptemp
A2 25    LDX #37
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires @zptemp
85 xx    STA @zptemp
A0 25    LDY #37
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires @zptemp
04 00    NOP $00
A0 25    LDY #37
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires support for unofficial opcodes
04 00    NOP $00
A2 25    LDX #37
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires support for unofficial opcodes
8 bytes
4C xx xx JMP *+3
A2 25    LDX #37
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and not relocatable code
4C xx xx JMP *+3
A0 25    LDY #37
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and not relocatable code
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
08       PHP
28       PLP
08       PHP
28       PLP
30 xx    BMI @Y
Clobbers Y, and Z&N; and writes in stack
20 xx xx JSR @rts15
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; requires @rts15; and writes in stack
9 bytes
EA       NOP
EA       NOP
EA       NOP
A0 1A    LDY #26
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
EA       NOP
A2 1A    LDX #26
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
48       PHA
48       PHA
08       PHP
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A2 23    LDX #35
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 24    LDA #36
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A2 23    LDX #35
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 1A    LDA #26
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 22    LDY #34
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


190 cycles

6 bytes
A0 1B    LDY #27
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 1B    LDX #27
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A0 1A    LDY #26
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 1A    LDX #26
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 25    LDA #37
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 24    LDA #36
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 24    LDA #36
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


191 cycles

5 bytes
A0 26    LDY #38
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 26    LDX #38
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
48       PHA
08       PHP
A0 24    LDY #36
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 24    LDX #36
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 25    LDA #37
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
24 00    BIT $00
A0 24    LDY #36
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
24 00    BIT $00
A2 24    LDX #36
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
A5 00    LDA $00
38       SEC
A9 25    LDA #37
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
EA       NOP
EA       NOP
98       TYA
48       PHA
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
48       PHA
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 22    LDY #34
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 22    LDA #34
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


192 cycles

7 bytes
EA       NOP
A2 1B    LDX #27
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 1B    LDY #27
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
38       SEC
A9 1B    LDA #27
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 24    LDY #36
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
08       PHP
A0 17    LDY #23
@Y:
24 00    BIT $00
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 17    LDX #23
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
10 bytes
08       PHP
38       SEC
A9 1A    LDA #26
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 1A    LDA #26
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


193 cycles

6 bytes
EA       NOP
A2 26    LDX #38
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 26    LDY #38
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A0 25    LDY #37
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 25    LDX #37
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 26    LDA #38
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 24    LDA #36
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 24    LDA #36
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 24    LDA #36
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 24    LDA #36
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
08       PHP
48       PHA
38       SEC
A9 16    LDA #22
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


194 cycles

6 bytes
48       PHA
A2 26    LDX #38
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 26    LDY #38
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A5 00    LDA $00
A2 26    LDX #38
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, and Z&N
A5 00    LDA $00
A0 26    LDY #38
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, and Z&N
24 00    BIT $00
A0 26    LDY #38
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, Z&N, and V
24 00    BIT $00
A2 26    LDX #38
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, Z&N, and V
85 xx    STA @zptemp
A0 26    LDY #38
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires @zptemp
85 xx    STA @zptemp
A2 26    LDX #38
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires @zptemp
04 00    NOP $00
A2 26    LDX #38
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires support for unofficial opcodes
04 00    NOP $00
A0 26    LDY #38
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires support for unofficial opcodes
8 bytes
EA       NOP
EA       NOP
A2 1B    LDX #27
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
A0 1B    LDY #27
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
9 bytes
EA       NOP
38       SEC
A9 1B    LDA #27
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
48       PHA
48       PHA
08       PHP
A0 24    LDY #36
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A2 24    LDX #36
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
10 bytes
8C       TXA
48       PHA
A2 1A    LDX #26
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA       NOP
08       PHP
A0 17    LDY #23
@Y:
24 00    BIT $00
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 17    LDX #23
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
11 bytes
48       PHA
98       TYA
48       PHA
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
38       SEC
A9 17    LDA #23
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


195 cycles

6 bytes
68       PLA
A2 26    LDX #38
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 26    LDY #38
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A2 26    LDX #38
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
A0 26    LDY #38
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
EA       NOP
08       PHP
A2 25    LDX #37
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 25    LDY #37
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 26    LDA #38
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 25    LDA #37
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 25    LDA #37
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
08       PHP
48       PHA
38       SEC
A9 14    LDA #20
@A = * - 1
; ^ Hides NOP zp,X
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


196 cycles

5 bytes
A2 27    LDX #39
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
48       PHA
08       PHP
A0 25    LDY #37
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 25    LDX #37
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 26    LDA #38
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
24 00    BIT $00
A0 25    LDY #37
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
24 00    BIT $00
A2 25    LDX #37
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
A5 00    LDA $00
38       SEC
A9 26    LDA #38
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 24    LDY #36
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
98       TYA
48       PHA
A0 17    LDY #23
@Y:
A5 00    LDA $00
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
38       SEC
A9 24    LDA #36
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
48       PHA
38       SEC
A9 24    LDA #36
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
08       PHP
38       SEC
A9 17    LDA #23
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


197 cycles

6 bytes
A0 1C    LDY #28
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 1C    LDX #28
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A2 1B    LDX #27
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 1B    LDY #27
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
68       PLA
38       SEC
A9 26    LDA #38
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 25    LDY #37
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 26    LDA #38
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 25    LDA #37
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 25    LDA #37
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 24    LDA #36
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


198 cycles

6 bytes
EA       NOP
A2 27    LDX #39
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A0 26    LDY #38
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 26    LDX #38
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 25    LDA #37
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 25    LDA #37
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 25    LDA #37
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 25    LDA #37
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
EA       NOP
EA       NOP
48       PHA
98       TYA
48       PHA
A0 23    LDY #35
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
48       PHA
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 23    LDA #35
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


199 cycles

5 bytes
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
48       PHA
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
6 bytes
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
A5 00    LDA $00
D0 xx    BNE @X
Clobbers A, X, and Z&N
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
24 00    BIT $00
D0 xx    BNE @X
Clobbers X, Z&N, and V
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
85 xx    STA @zptemp
D0 xx    BNE @X
Clobbers X, and Z&N; and requires @zptemp
48       PHA
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
A0 16    LDY #22
@Y:
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
04 00    NOP $00
D0 xx    BNE @X
Clobbers X, and Z&N; and requires support for unofficial opcodes
7 bytes
A0 16    LDY #22
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 16    LDX #22
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
38       SEC
A9 1C    LDA #28
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
EA       NOP
08       PHP
A0 1B    LDY #27
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 1B    LDX #27
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
10 bytes
08       PHP
38       SEC
A9 1B    LDA #27
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 1B    LDA #27
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
48       PHA
98       TYA
48       PHA
A0 24    LDY #36
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 1A    LDA #26
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


200 cycles

6 bytes
68       PLA
A2 27    LDX #39
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 27    LDX #39
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A2 26    LDX #38
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 26    LDY #38
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 26    LDA #38
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 26    LDA #38
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 24    LDA #36
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 24    LDA #36
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


201 cycles

5 bytes
A0 28    LDY #40
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 28    LDX #40
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
48       PHA
08       PHP
A0 26    LDY #38
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 26    LDX #38
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
24 00    BIT $00
A0 26    LDY #38
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
24 00    BIT $00
A2 26    LDX #38
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
A5 00    LDA $00
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
98       TYA
48       PHA
A0 1B    LDY #27
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
11 bytes
EA       NOP
08       PHP
38       SEC
A9 1B    LDA #27
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 1B    LDA #27
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
8C       TXA
48       PHA
A2 1A    LDX #26
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 1A    LDA #26
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


202 cycles

6 bytes
48       PHA
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
48       PHA
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
7 bytes
48       PHA
48       PHA
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
EA       NOP
68       PLA
A2 27    LDX #39
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
8 bytes
EA       NOP
EA       NOP
EA       NOP
A2 27    LDX #39
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
EA       NOP
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 26    LDY #38
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 26    LDY #38
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 26    LDX #38
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 26    LDA #38
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 26    LDA #38
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 25    LDA #37
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


203 cycles

6 bytes
EA       NOP
A2 28    LDX #40
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 28    LDY #40
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 27    LDX #39
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 28    LDA #40
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 26    LDA #38
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 26    LDA #38
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 26    LDA #38
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 26    LDA #38
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
48       PHA
98       TYA
48       PHA
A0 17    LDY #23
@Y:
A5 00    LDA $00
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
48       PHA
38       SEC
A9 24    LDA #36
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 1A    LDA #26
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


204 cycles

6 bytes
A2 1D    LDX #29
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 1D    LDY #29
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
08       PHP
A2 1C    LDX #28
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 1C    LDY #28
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
9 bytes
EA       NOP
68       PLA
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 26    LDY #38
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 25    LDY #37
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 26    LDA #38
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 25    LDA #37
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


205 cycles

6 bytes
68       PLA
A2 28    LDX #40
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 28    LDY #40
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 28    LDY #40
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 28    LDX #40
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 27    LDX #39
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 28    LDA #40
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 25    LDA #37
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 25    LDA #37
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


206 cycles

5 bytes
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 29    LDX #41
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
24 00    BIT $00
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 1D    LDA #29
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
48       PHA
08       PHP
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
9 bytes
08       PHP
A0 16    LDY #22
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
10 bytes
08       PHP
38       SEC
A9 1C    LDA #28
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 1C    LDA #28
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 1B    LDA #27
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


207 cycles

7 bytes
48       PHA
A0 1D    LDY #29
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 1D    LDX #29
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A0 28    LDY #40
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
EA       NOP
68       PLA
A2 28    LDX #40
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
8 bytes
EA       NOP
EA       NOP
EA       NOP
A2 28    LDX #40
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
EA       NOP
A0 28    LDY #40
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 28    LDA #40
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 27    LDX #39
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 28    LDA #40
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 26    LDA #38
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


208 cycles

6 bytes
EA       NOP
A2 29    LDX #41
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A0 28    LDY #40
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 28    LDX #40
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
98       TYA
48       PHA
A0 1C    LDY #28
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
08       PHP
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
98       TYA
48       PHA
A0 1B    LDY #27
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 1B    LDA #27
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


209 cycles

6 bytes
A2 1A    LDX #26
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
A0 1A    LDY #26
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A2 1A    LDX #26
@X:
A5 00    LDA $00
CA       DEX
D0 xx    BNE @X
Clobbers A, X, and Z&N
A0 1A    LDY #26
@Y:
A5 00    LDA $00
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, and Z&N
A2 1A    LDX #26
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
Clobbers X, Z&N, and V
A0 1A    LDY #26
@Y:
24 00    BIT $00
88       DEY
D0 xx    BNE @Y
Clobbers Y, Z&N, and V
A0 1A    LDY #26
@Y:
85 xx    STA @zptemp
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires @zptemp
A2 1A    LDX #26
@X:
85 xx    STA @zptemp
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires @zptemp
A2 1A    LDX #26
@X:
04 00    NOP $00
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires support for unofficial opcodes
A0 1A    LDY #26
@Y:
04 00    NOP $00
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires support for unofficial opcodes
8 bytes
A2 1A    LDX #26
@X:
4C xx xx JMP *+3
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and not relocatable code
A0 1A    LDY #26
@Y:
4C xx xx JMP *+3
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and not relocatable code
A0 88    LDY #136
@Y = * - 1
; ^ Hides DEY
20 xx xx JSR @rts14
88       DEY
30 xx    BMI @Y
Clobbers Y, and Z&N; requires @rts14; and writes in stack
9 bytes
A2 10    LDX #16
@X:
EA       NOP
EA       NOP
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 10    LDY #16
@Y:
EA       NOP
EA       NOP
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
48       PHA
48       PHA
08       PHP
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A2 27    LDX #39
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 28    LDA #40
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A2 27    LDX #39
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
A5 00    LDA $00
38       SEC
A9 1D    LDA #29
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 26    LDY #38
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 26    LDA #38
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


210 cycles

6 bytes
68       PLA
A2 29    LDX #41
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 29    LDX #41
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 28    LDY #40
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 28    LDX #40
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 28    LDA #40
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 28    LDA #40
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 26    LDA #38
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 26    LDA #38
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


211 cycles

5 bytes
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 2A    LDX #42
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A0 1D    LDY #29
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 1D    LDX #29
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 1A    LDA #26
@A:
48       PHA
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
A5 00    LDA $00
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
EA       NOP
EA       NOP
98       TYA
48       PHA
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
48       PHA
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 26    LDY #38
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 26    LDA #38
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


212 cycles

7 bytes
48       PHA
A0 1A    LDY #26
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 1A    LDX #26
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A2 29    LDX #41
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
EA       NOP
68       PLA
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
8 bytes
EA       NOP
EA       NOP
EA       NOP
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
EA       NOP
A2 29    LDX #41
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
68       PLA
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 28    LDY #40
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
08       PHP
A2 11    LDX #17
@X:
08       PHP
28       PLP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 11    LDY #17
@Y:
08       PHP
28       PLP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 28    LDA #40
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 28    LDA #40
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


213 cycles

6 bytes
EA       NOP
A2 2A    LDX #42
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 29    LDX #41
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
08       PHP
38       SEC
A9 1D    LDA #29
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 1D    LDA #29
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 1C    LDA #28
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


214 cycles

6 bytes
48       PHA
A2 2A    LDX #42
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A5 00    LDA $00
A2 2A    LDX #42
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, and Z&N
A5 00    LDA $00
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, and Z&N
24 00    BIT $00
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, Z&N, and V
24 00    BIT $00
A2 2A    LDX #42
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, Z&N, and V
85 xx    STA @zptemp
A2 2A    LDX #42
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires @zptemp
85 xx    STA @zptemp
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires @zptemp
04 00    NOP $00
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires support for unofficial opcodes
04 00    NOP $00
A2 2A    LDX #42
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires support for unofficial opcodes
8 bytes
4C xx xx JMP *+3
A2 2A    LDX #42
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and not relocatable code
4C xx xx JMP *+3
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and not relocatable code
9 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
A2 29    LDX #41
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
EA       NOP
EA       NOP
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
48       PHA
08       PHP
A0 1D    LDY #29
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 1D    LDX #29
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 28    LDY #40
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
08       PHP
A0 11    LDY #17
@Y:
08       PHP
28       PLP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 11    LDX #17
@X:
08       PHP
28       PLP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
EA       NOP
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 28    LDA #40
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


215 cycles

6 bytes
68       PLA
A2 2A    LDX #42
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 2A    LDX #42
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 29    LDX #41
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
98       TYA
48       PHA
A0 1C    LDY #28
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
08       PHP
48       PHA
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


216 cycles

5 bytes
A0 2B    LDY #43
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 2B    LDX #43
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
48       PHA
08       PHP
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 29    LDX #41
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
A2 1A    LDX #26
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 1A    LDY #26
@Y:
24 00    BIT $00
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
A5 00    LDA $00
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 28    LDY #40
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
98       TYA
48       PHA
A0 11    LDY #17
@Y:
08       PHP
28       PLP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
08       PHP
38       SEC
A9 1D    LDA #29
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 1D    LDA #29
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
A5 00    LDA $00
38       SEC
A9 1D    LDA #29
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


217 cycles

6 bytes
A0 1B    LDY #27
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
A2 1B    LDX #27
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
A0 18    LDY #24
@Y:
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
A2 18    LDX #24
@X:
68       PLA
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
A0 18    LDY #24
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 18    LDX #24
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
68       PLA
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 29    LDX #41
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 28    LDA #40
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


218 cycles

6 bytes
A2 1F    LDX #31
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 1F    LDY #31
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 2A    LDX #42
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 2B    LDA #43
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
38       SEC
A9 1A    LDA #26
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
EA       NOP
EA       NOP
48       PHA
98       TYA
48       PHA
A0 27    LDY #39
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
48       PHA
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 27    LDA #39
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


219 cycles

6 bytes
48       PHA
A2 2B    LDX #43
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 2B    LDY #43
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A5 00    LDA $00
A2 2B    LDX #43
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, and Z&N
A5 00    LDA $00
A0 2B    LDY #43
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, and Z&N
24 00    BIT $00
A0 2B    LDY #43
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, Z&N, and V
24 00    BIT $00
A2 2B    LDX #43
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, Z&N, and V
85 xx    STA @zptemp
A2 2B    LDX #43
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires @zptemp
85 xx    STA @zptemp
A0 2B    LDY #43
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires @zptemp
04 00    NOP $00
A0 2B    LDY #43
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires support for unofficial opcodes
04 00    NOP $00
A2 2B    LDX #43
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires support for unofficial opcodes
8 bytes
EA       NOP
A2 18    LDX #24
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 18    LDY #24
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
38       SEC
A9 1B    LDA #27
@A:
48       PHA
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
38       SEC
A9 18    LDA #24
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
48       PHA
48       PHA
08       PHP
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A2 29    LDX #41
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
10 bytes
EA       NOP
98       TYA
48       PHA
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A2 29    LDX #41
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
11 bytes
48       PHA
98       TYA
48       PHA
A0 28    LDY #40
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 28    LDA #40
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


220 cycles

6 bytes
68       PLA
A2 2B    LDX #43
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 2B    LDY #43
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
A0 1F    LDY #31
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 1F    LDX #31
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 2A    LDX #42
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 1F    LDA #31
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 1D    LDA #29
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


221 cycles

5 bytes
A0 2C    LDY #44
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 2C    LDX #44
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
48       PHA
08       PHP
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 2A    LDX #42
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 2B    LDA #43
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
24 00    BIT $00
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
24 00    BIT $00
A2 2A    LDX #42
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
A5 00    LDA $00
38       SEC
A9 2B    LDA #43
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
EA       NOP
EA       NOP
98       TYA
48       PHA
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
48       PHA
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 28    LDY #40
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 28    LDA #40
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


222 cycles

7 bytes
48       PHA
48       PHA
A0 2B    LDY #43
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
48       PHA
A2 2B    LDX #43
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
A0 11    LDY #17
@Y:
68       PLA
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
A2 11    LDX #17
@X:
68       PLA
68       PLA
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
8 bytes
EA       NOP
EA       NOP
A2 1F    LDX #31
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
A0 1F    LDY #31
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 2B    LDA #43
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 2A    LDX #42
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 1F    LDA #31
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


223 cycles

6 bytes
EA       NOP
A2 2C    LDX #44
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 2C    LDY #44
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 2B    LDX #43
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 2B    LDY #43
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 2C    LDA #44
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
48       PHA
98       TYA
48       PHA
A0 11    LDY #17
@Y:
08       PHP
28       PLP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
08       PHP
48       PHA
38       SEC
A9 1D    LDA #29
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 28    LDA #40
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


224 cycles

5 bytes
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
68       PLA
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
6 bytes
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
48       PHA
A0 2C    LDY #44
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A5 00    LDA $00
A0 2C    LDY #44
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, and Z&N
24 00    BIT $00
A0 2C    LDY #44
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, Z&N, and V
85 xx    STA @zptemp
A0 2C    LDY #44
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires @zptemp
04 00    NOP $00
A0 2C    LDY #44
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires support for unofficial opcodes
8 bytes
4C xx xx JMP *+3
A0 2C    LDY #44
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and not relocatable code
9 bytes
08       PHP
A2 18    LDX #24
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 18    LDY #24
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
EA       NOP
A0 1F    LDY #31
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
68       PLA
38       SEC
A9 2B    LDA #43
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 1F    LDA #31
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


225 cycles

6 bytes
A0 20    LDY #32
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 20    LDX #32
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A0 1F    LDY #31
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 1F    LDX #31
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 2C    LDA #44
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 2B    LDA #43
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 2B    LDA #43
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
38       SEC
A9 1A    LDA #26
@A:
24 00    BIT $00
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


226 cycles

5 bytes
A0 2D    LDY #45
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 2D    LDX #45
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
48       PHA
08       PHP
A0 2B    LDY #43
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 2B    LDX #43
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 2C    LDA #44
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
18       CLC
A9 64    LDA #100
@A = * - 1
; ^ Hides NOP zp
EA       NOP
69 01    ADC #1
10 xx    BPL @A
Clobbers A, Z&N, and C; and requires support for unofficial opcodes
9 bytes
08       PHP
24 00    BIT $00
A2 2B    LDX #43
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
24 00    BIT $00
A0 2B    LDY #43
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
A5 00    LDA $00
38       SEC
A9 2C    LDA #44
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
08       PHP
38       SEC
A9 18    LDA #24
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 18    LDA #24
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


227 cycles

6 bytes
48       PHA
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
68       PLA
D0 xx    BNE @X
Clobbers A, X, S, and Z&N; and writes in stack
7 bytes
EA       NOP
A2 20    LDX #32
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 20    LDY #32
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
38       SEC
A9 20    LDA #32
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 2B    LDY #43
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
08       PHP
A2 1F    LDX #31
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 1F    LDY #31
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
10 bytes
08       PHP
38       SEC
A9 1F    LDA #31
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 1F    LDA #31
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


228 cycles

6 bytes
EA       NOP
A2 2D    LDX #45
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 2D    LDY #45
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 2C    LDX #44
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 2C    LDY #44
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 2D    LDA #45
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 2B    LDA #43
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 2B    LDA #43
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 2B    LDA #43
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 2B    LDA #43
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
EA       NOP
EA       NOP
48       PHA
98       TYA
48       PHA
A0 29    LDY #41
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
48       PHA
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 29    LDA #41
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


229 cycles

6 bytes
48       PHA
A2 2D    LDX #45
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 2D    LDY #45
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A2 13    LDX #19
@X:
08       PHP
28       PLP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and writes in stack
A0 13    LDY #19
@Y:
08       PHP
28       PLP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and writes in stack
A5 00    LDA $00
A0 2D    LDY #45
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, and Z&N
A5 00    LDA $00
A2 2D    LDX #45
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, and Z&N
24 00    BIT $00
A2 2D    LDX #45
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, Z&N, and V
24 00    BIT $00
A0 2D    LDY #45
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, Z&N, and V
85 xx    STA @zptemp
A0 2D    LDY #45
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires @zptemp
85 xx    STA @zptemp
A2 2D    LDX #45
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires @zptemp
04 00    NOP $00
A2 2D    LDX #45
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires support for unofficial opcodes
04 00    NOP $00
A0 2D    LDY #45
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires support for unofficial opcodes
8 bytes
EA       NOP
EA       NOP
A0 20    LDY #32
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 20    LDX #32
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
9 bytes
EA       NOP
38       SEC
A9 20    LDA #32
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
48       PHA
48       PHA
08       PHP
A0 2B    LDY #43
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A2 2B    LDX #43
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
10 bytes
8C       TXA
48       PHA
A2 1F    LDX #31
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 1F    LDY #31
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 1F    LDX #31
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
11 bytes
48       PHA
98       TYA
48       PHA
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
08       PHP
38       SEC
A9 1F    LDA #31
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


230 cycles

6 bytes
68       PLA
A2 2D    LDX #45
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 2D    LDY #45
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 2D    LDY #45
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 2D    LDX #45
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 2C    LDY #44
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 2C    LDX #44
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 2D    LDA #45
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 2C    LDA #44
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 2C    LDA #44
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


231 cycles

5 bytes
A0 2E    LDY #46
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 2E    LDX #46
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
48       PHA
08       PHP
A0 2C    LDY #44
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
38       SEC
A9 2D    LDA #45
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
24 00    BIT $00
A0 2C    LDY #44
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
A5 00    LDA $00
38       SEC
A9 2D    LDA #45
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 2B    LDY #43
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
EA       NOP
8C       TXA
48       PHA
A2 1F    LDX #31
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
38       SEC
A9 2B    LDA #43
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
48       PHA
38       SEC
A9 2B    LDA #43
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 2A    LDY #42
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 1F    LDA #31
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 2A    LDA #42
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


232 cycles

6 bytes
A2 21    LDX #33
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 21    LDY #33
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
08       PHP
A2 20    LDX #32
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 20    LDY #32
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
68       PLA
38       SEC
A9 2D    LDA #45
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 2C    LDY #44
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 2D    LDA #45
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 2C    LDA #44
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 2C    LDA #44
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 2B    LDA #43
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


233 cycles

6 bytes
EA       NOP
A2 2E    LDX #46
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 2E    LDY #46
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A0 2D    LDY #45
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 2D    LDX #45
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 2C    LDA #44
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 2C    LDA #44
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
08       PHP
18       CLC
A9 64    LDA #100
@A = * - 1
; ^ Hides NOP zp
EA       NOP
69 01    ADC #1
10 xx    BPL @A
28       PLP
Clobbers A; requires support for unofficial opcodes; and writes in stack
48       PHA
18       CLC
A9 64    LDA #100
@A = * - 1
; ^ Hides NOP zp
EA       NOP
69 01    ADC #1
10 xx    BPL @A
68       PLA
Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 2C    LDA #44
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 2C    LDA #44
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
08       PHP
48       PHA
38       SEC
A9 18    LDA #24
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


234 cycles

6 bytes
48       PHA
A2 2E    LDX #46
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 2E    LDY #46
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
EA       NOP
A0 21    LDY #33
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 21    LDX #33
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
38       SEC
A9 21    LDA #33
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
EA       NOP
08       PHP
A2 20    LDX #32
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 20    LDY #32
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
10 bytes
08       PHP
38       SEC
A9 20    LDA #32
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 20    LDA #32
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
48       PHA
98       TYA
48       PHA
A0 2B    LDY #43
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 1F    LDA #31
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


235 cycles

6 bytes
A0 1A    LDY #26
@Y:
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
A2 1A    LDX #26
@X:
68       PLA
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
A0 1A    LDY #26
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 1A    LDX #26
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A2 2D    LDX #45
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 2D    LDY #45
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 2D    LDA #45
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 2D    LDA #45
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 2B    LDA #43
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 2B    LDA #43
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


236 cycles

5 bytes
A2 2F    LDX #47
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 2F    LDY #47
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
48       PHA
08       PHP
A0 2D    LDY #45
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 2D    LDX #45
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
24 00    BIT $00
A0 2D    LDY #45
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
24 00    BIT $00
A2 2D    LDX #45
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
A5 00    LDA $00
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
98       TYA
48       PHA
A0 20    LDY #32
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
11 bytes
EA       NOP
08       PHP
38       SEC
A9 20    LDA #32
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 20    LDA #32
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
8C       TXA
48       PHA
A2 1F    LDX #31
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 1F    LDA #31
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


237 cycles

7 bytes
48       PHA
48       PHA
A0 2E    LDY #46
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
48       PHA
A2 2E    LDX #46
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
A2 1A    LDX #26
@X:
68       PLA
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
EA       NOP
A0 1A    LDY #26
@Y:
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
8 bytes
EA       NOP
A2 1A    LDX #26
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 1A    LDY #26
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 2D    LDY #45
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 2D    LDY #45
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 2D    LDX #45
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 1A    LDA #26
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 2D    LDA #45
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 2D    LDA #45
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 2C    LDA #44
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


238 cycles

6 bytes
EA       NOP
A0 2F    LDY #47
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 2F    LDX #47
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
7 bytes
08       PHP
A2 2E    LDX #46
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 2E    LDY #46
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 2F    LDA #47
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 2D    LDA #45
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 2D    LDA #45
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 2D    LDA #45
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 2D    LDA #45
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
EA       NOP
48       PHA
8C       TXA
48       PHA
A2 1F    LDX #31
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
48       PHA
38       SEC
A9 2B    LDA #43
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 1F    LDA #31
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


239 cycles

6 bytes
A0 22    LDY #34
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 22    LDX #34
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
08       PHP
A0 21    LDY #33
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 21    LDX #33
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
9 bytes
EA       NOP
68       PLA
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 2D    LDY #45
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
38       SEC
A9 1A    LDA #26
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 2C    LDY #44
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 2D    LDA #45
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 2C    LDA #44
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


240 cycles

6 bytes
68       PLA
A0 2F    LDY #47
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
68       PLA
A2 2F    LDX #47
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 2F    LDY #47
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 2F    LDX #47
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A2 2E    LDX #46
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 2E    LDY #46
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 2F    LDA #47
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 2C    LDA #44
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
08       PHP
48       PHA
18       CLC
A9 64    LDA #100
@A = * - 1
; ^ Hides NOP zp
EA       NOP
69 01    ADC #1
10 xx    BPL @A
68       PLA
28       PLP
Requires support for unofficial opcodes; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 2C    LDA #44
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


241 cycles

5 bytes
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
38       SEC
A9 22    LDA #34
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
48       PHA
08       PHP
A0 2E    LDY #46
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 2E    LDX #46
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
9 bytes
EA       NOP
08       PHP
A0 21    LDY #33
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 21    LDX #33
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
10 bytes
08       PHP
38       SEC
A9 21    LDA #33
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 21    LDA #33
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 20    LDA #32
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


242 cycles

7 bytes
48       PHA
A0 22    LDY #34
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 22    LDX #34
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A2 2F    LDX #47
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
EA       NOP
68       PLA
A0 2F    LDY #47
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
8 bytes
EA       NOP
EA       NOP
EA       NOP
A2 2F    LDX #47
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
EA       NOP
A0 2F    LDY #47
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 2F    LDA #47
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 2E    LDY #46
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
08       PHP
A2 1A    LDX #26
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 1A    LDY #26
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 2F    LDA #47
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 2D    LDA #45
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


243 cycles

6 bytes
EA       NOP
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
7 bytes
08       PHP
A2 2F    LDX #47
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 2F    LDY #47
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 30    LDA #48
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
8C       TXA
48       PHA
A2 21    LDX #33
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
Clobbers A, and Z&N; and writes in stack
48       PHA
08       PHP
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
98       TYA
48       PHA
A0 20    LDY #32
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
13 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 20    LDA #32
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


244 cycles

6 bytes
48       PHA
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
A0 1B    LDY #27
@Y:
68       PLA
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
A2 1B    LDX #27
@X:
68       PLA
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
A0 1B    LDY #27
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 1B    LDX #27
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
9 bytes
48       PHA
48       PHA
08       PHP
A0 2E    LDY #46
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A2 2E    LDX #46
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 2F    LDA #47
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 2E    LDY #46
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
08       PHP
A0 1A    LDY #26
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 1A    LDX #26
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
A5 00    LDA $00
38       SEC
A9 22    LDA #34
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 2D    LDY #45
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
38       SEC
A9 1A    LDA #26
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 2D    LDA #45
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


245 cycles

6 bytes
68       PLA
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
EA       NOP
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
EA       NOP
08       PHP
A0 2F    LDY #47
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
08       PHP
A2 2F    LDX #47
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
38       SEC
A9 30    LDA #48
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 2F    LDA #47
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 2F    LDA #47
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
08       PHP
48       PHA
38       SEC
A9 2D    LDA #45
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 2D    LDA #45
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


246 cycles

5 bytes
A2 31    LDX #49
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 31    LDY #49
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
08       PHP
A2 22    LDX #34
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 22    LDY #34
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
48       PHA
38       SEC
A9 30    LDA #48
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
A5 00    LDA $00
38       SEC
A9 30    LDA #48
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 2E    LDY #46
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
98       TYA
48       PHA
A0 1A    LDY #26
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
48       PHA
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 2D    LDY #45
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
08       PHP
38       SEC
A9 1A    LDA #26
@A:
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 2D    LDA #45
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


247 cycles

7 bytes
48       PHA
48       PHA
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
48       PHA
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
EA       NOP
68       PLA
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
8 bytes
EA       NOP
EA       NOP
EA       NOP
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
EA       NOP
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 30    LDA #48
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 2F    LDY #47
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 2F    LDX #47
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 2F    LDY #47
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 30    LDA #48
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 2F    LDA #47
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 2F    LDA #47
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


248 cycles

6 bytes
EA       NOP
A0 31    LDY #49
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
EA       NOP
A2 31    LDX #49
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
7 bytes
08       PHP
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
08       PHP
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
38       SEC
A9 31    LDA #49
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
08       PHP
38       SEC
A9 22    LDA #34
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 22    LDA #34
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 21    LDA #33
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


249 cycles

6 bytes
A2 1F    LDX #31
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
A0 1F    LDY #31
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A2 1F    LDX #31
@X:
A5 00    LDA $00
CA       DEX
D0 xx    BNE @X
Clobbers A, X, and Z&N
A0 1F    LDY #31
@Y:
A5 00    LDA $00
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, and Z&N
A2 E8    LDX #232
@X = * - 1
; ^ Hides INX
18       CLC
90 00    BCC *+2
D0 xx    BNE @X
Clobbers X, Z&N, and C
A2 1F    LDX #31
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
Clobbers X, Z&N, and V
A0 1F    LDY #31
@Y:
24 00    BIT $00
88       DEY
D0 xx    BNE @Y
Clobbers Y, Z&N, and V
A0 1F    LDY #31
@Y:
85 xx    STA @zptemp
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires @zptemp
A2 1F    LDX #31
@X:
85 xx    STA @zptemp
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires @zptemp
A2 1F    LDX #31
@X:
04 00    NOP $00
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires support for unofficial opcodes
A0 1F    LDY #31
@Y:
04 00    NOP $00
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires support for unofficial opcodes
8 bytes
A0 1F    LDY #31
@Y:
4C xx xx JMP *+3
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and not relocatable code
A2 1F    LDX #31
@X:
4C xx xx JMP *+3
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and not relocatable code
9 bytes
EA       NOP
EA       NOP
EA       NOP
EA       NOP
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
EA       NOP
EA       NOP
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
48       PHA
08       PHP
A0 22    LDY #34
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 22    LDX #34
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 30    LDA #48
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 2F    LDY #47
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A2 2F    LDX #47
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A0 2F    LDY #47
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
EA       NOP
38       SEC
A9 30    LDA #48
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 2E    LDY #46
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 2F    LDA #47
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


250 cycles

6 bytes
68       PLA
A0 31    LDY #49
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
68       PLA
A2 31    LDX #49
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
7 bytes
EA       NOP
EA       NOP
A2 31    LDX #49
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
A0 31    LDY #49
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
EA       NOP
08       PHP
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
38       SEC
A9 31    LDA #49
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 30    LDA #48
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 30    LDA #48
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
48       PHA
8C       TXA
48       PHA
A2 21    LDX #33
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
68       PLA
AA       TAX
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
08       PHP
48       PHA
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
13 bytes
08       PHP
48       PHA
A5 00    LDA $00
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


251 cycles

5 bytes
A0 32    LDY #50
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 32    LDX #50
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
8 bytes
48       PHA
08       PHP
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
48       PHA
08       PHP
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
38       SEC
A9 1F    LDA #31
@A:
48       PHA
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
9 bytes
08       PHP
A2 1B    LDX #27
@X:
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 1B    LDY #27
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
A5 00    LDA $00
38       SEC
A9 31    LDA #49
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
68       PLA
98       TYA
48       PHA
A0 2F    LDY #47
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, S, and Z&N; and writes in stack
11 bytes
EA       NOP
EA       NOP
98       TYA
48       PHA
A0 2F    LDY #47
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
48       PHA
08       PHP
38       SEC
A9 22    LDA #34
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 22    LDA #34
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
12 bytes
EA       NOP
48       PHA
98       TYA
48       PHA
A0 2E    LDY #46
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
A5 00    LDA $00
38       SEC
A9 22    LDA #34
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


252 cycles

7 bytes
48       PHA
A0 1F    LDY #31
@Y:
48       PHA
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
48       PHA
A2 1F    LDX #31
@X:
48       PHA
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
EA       NOP
68       PLA
A2 31    LDX #49
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
EA       NOP
68       PLA
A0 31    LDY #49
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
8 bytes
EA       NOP
EA       NOP
EA       NOP
A2 31    LDX #49
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
EA       NOP
EA       NOP
A0 31    LDY #49
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
68       PLA
38       SEC
A9 31    LDA #49
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
9 bytes
98       TYA
48       PHA
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
08       PHP
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
38       SEC
A9 31    LDA #49
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
EA       NOP
08       PHP
38       SEC
A9 30    LDA #48
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
EA       NOP
48       PHA
38       SEC
A9 30    LDA #48
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
11 bytes
08       PHP
48       PHA
38       SEC
A9 2F    LDA #47
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


253 cycles

6 bytes
A0 24    LDY #36
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 24    LDX #36
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
7 bytes
08       PHP
A2 31    LDX #49
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 31    LDY #49
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 32    LDA #50
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
10 bytes
48       PHA
08       PHP
38       SEC
A9 30    LDA #48
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A, and S; and writes in stack
48       PHA
48       PHA
38       SEC
A9 30    LDA #48
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers S, Z&N, and C; and writes in stack
11 bytes
08       PHP
A5 00    LDA $00
38       SEC
A9 30    LDA #48
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
A5 00    LDA $00
38       SEC
A9 30    LDA #48
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
13 bytes
48       PHA
98       TYA
48       PHA
A0 1A    LDY #26
@Y:
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
48       PHA
48       PHA
08       PHP
48       PHA
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Clobbers S; and writes in stack
14 bytes
EA       NOP
EA       NOP
EA       NOP
08       PHP
48       PHA
38       SEC
A9 2E    LDA #46
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


254 cycles

6 bytes
48       PHA
A2 32    LDX #50
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, S, and Z&N; and writes in stack
48       PHA
A0 32    LDY #50
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, S, and Z&N; and writes in stack
7 bytes
A5 00    LDA $00
A0 32    LDY #50
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, and Z&N
A5 00    LDA $00
A2 32    LDX #50
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, and Z&N
24 00    BIT $00
A2 32    LDX #50
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, Z&N, and V
24 00    BIT $00
A0 32    LDY #50
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, Z&N, and V
85 xx    STA @zptemp
A0 32    LDY #50
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires @zptemp
85 xx    STA @zptemp
A2 32    LDX #50
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires @zptemp
04 00    NOP $00
A2 32    LDX #50
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N; and requires support for unofficial opcodes
04 00    NOP $00
A0 32    LDY #50
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N; and requires support for unofficial opcodes
8 bytes
A2 17    LDX #23
@X:
EA       NOP
EA       NOP
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
A0 17    LDY #23
@Y:
EA       NOP
EA       NOP
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
9 bytes
48       PHA
48       PHA
08       PHP
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X, and S; and writes in stack
48       PHA
48       PHA
08       PHP
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y, and S; and writes in stack
EA       NOP
68       PLA
38       SEC
A9 31    LDA #49
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C
10 bytes
EA       NOP
98       TYA
48       PHA
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A2 30    LDX #48
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
EA       NOP
EA       NOP
08       PHP
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
EA       NOP
EA       NOP
EA       NOP
38       SEC
A9 31    LDA #49
@A:
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
48       PHA
98       TYA
48       PHA
A0 2F    LDY #47
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
EA       NOP
EA       NOP
08       PHP
38       SEC
A9 30    LDA #48
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
12 bytes
EA       NOP
08       PHP
48       PHA
38       SEC
A9 2F    LDA #47
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


255 cycles

6 bytes
68       PLA
A2 32    LDX #50
@X:
CA       DEX
D0 xx    BNE @X
Clobbers A, X, S, and Z&N
68       PLA
A0 32    LDY #50
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers A, Y, S, and Z&N
7 bytes
EA       NOP
A2 24    LDX #36
@X:
EA       NOP
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
EA       NOP
A0 24    LDY #36
@Y:
EA       NOP
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
8 bytes
EA       NOP
08       PHP
A2 31    LDX #49
@X:
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
EA       NOP
08       PHP
A0 31    LDY #49
@Y:
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 24    LDA #36
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
9 bytes
08       PHP
38       SEC
A9 31    LDA #49
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
48       PHA
38       SEC
A9 31    LDA #49
@A:
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
Clobbers Z&N, and C; and writes in stack
12 bytes
08       PHP
48       PHA
38       SEC
A9 22    LDA #34
@A:
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
68       PLA
28       PLP
Writes in stack


256 cycles

5 bytes
A0 33    LDY #51
@Y:
88       DEY
D0 xx    BNE @Y
Clobbers Y, and Z&N
A2 33    LDX #51
@X:
CA       DEX
D0 xx    BNE @X
Clobbers X, and Z&N
9 bytes
08       PHP
A2 1F    LDX #31
@X:
24 00    BIT $00
CA       DEX
D0 xx    BNE @X
28       PLP
Clobbers X; and writes in stack
08       PHP
A0 1F    LDY #31
@Y:
24 00    BIT $00
88       DEY
D0 xx    BNE @Y
28       PLP
Clobbers Y; and writes in stack
38       SEC
A9 17    LDA #23
@A:
48       PHA
48       PHA
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, S, Z&N, and C; and writes in stack
10 bytes
38       SEC
A9 17    LDA #23
@A:
EA       NOP
EA       NOP
EA       NOP
E9 01    SBC #1
D0 xx    BNE @A
Clobbers A, Z&N, and C
11 bytes
98       TYA
48       PHA
EA       NOP
EA       NOP
A0 30    LDY #48
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
Clobbers A, and Z&N; and writes in stack
12 bytes
48       PHA
EA       NOP
98       TYA
48       PHA
A0 2F    LDY #47
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
Clobbers Z&N; and writes in stack
08       PHP
EA       NOP
EA       NOP
EA       NOP
38       SEC
A9 30    LDA #48
@A:
E9 01    SBC #1
D0 xx    BNE @A
28       PLP
Clobbers A; and writes in stack
13 bytes
08       PHP
48       PHA
98       TYA
48       PHA
A0 2E    LDY #46
@Y:
88       DEY
D0 xx    BNE @Y
68       PLA
A8       TAY
68       PLA
28       PLP
Writes in stack


More

Bisqwit's 6502 delay_n macro set for ca65: http://bisqwit.iki.fi/src/6502-inline_delay.7z