Fixed cycle delay: Difference between revisions
From NESdev Wiki
Jump to navigationJump to search
(update) |
(Compact the layout a bit) |
||
Line 107: | Line 107: | ||
!colspan="2"|2 bytes | !colspan="2"|2 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2</pre>||No requirements | ||
|- | |- | ||
|} | |} | ||
Line 160: | Line 159: | ||
!colspan="2"|2 bytes | !colspan="2"|2 bytes | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2</pre>||Clobbers S; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 168: | Line 166: | ||
!colspan="2"|3 bytes | !colspan="2"|3 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3</pre>||No requirements | ||
|- | |- | ||
|} | |} | ||
Line 195: | Line 191: | ||
!colspan="2"|4 bytes | !colspan="2"|4 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
EA | A6 00 LDX $00</pre>||Clobbers X, and Z&N | ||
|- | |||
|<pre>EA ... NOP × 2 | |||
A4 00 LDY $00</pre>||Clobbers Y, and Z&N | A4 00 LDY $00</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 2 | ||
18 | |||
90 00 BCC *+2</pre>||Clobbers C | 90 00 BCC *+2</pre>||Clobbers C | ||
|- | |- | ||
|<pre> | |<pre>B8 ... CLV × 2 | ||
B8 | |||
50 00 BVC *+2</pre>||Clobbers V | 50 00 BVC *+2</pre>||Clobbers V | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
85 xx STA @zptemp</pre>||Requires @zptemp | 85 xx STA @zptemp</pre>||Requires @zptemp | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
04 00 NOP $00</pre>||Requires support for unofficial opcodes | 04 00 NOP $00</pre>||Requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
4C xx xx JMP *+3</pre>||Not relocatable code | 4C xx xx JMP *+3</pre>||Not relocatable code | ||
|- | |- | ||
Line 235: | Line 224: | ||
!colspan="2"|2 bytes | !colspan="2"|2 bytes | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 2</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|3 bytes | !colspan="2"|3 bytes | ||
Line 245: | Line 233: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
48 | 48 ... PHA × 2</pre>||Clobbers S; and writes in stack | ||
|- | |- | ||
!colspan="2"|4 bytes | !colspan="2"|4 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 4</pre>||No requirements | ||
|- | |- | ||
|} | |} | ||
Line 272: | Line 256: | ||
|- | |- | ||
!colspan="2"|4 bytes | !colspan="2"|4 bytes | ||
|- | |||
|<pre>A0 AC LDY #$AC ;hides 'LDY $FDD0' | |||
D0 FD BNE *-1</pre>||Clobbers Y, and Z&N | |||
|- | |- | ||
|<pre>A2 AE LDX #$AE ;hides 'LDX $FDD0' | |<pre>A2 AE LDX #$AE ;hides 'LDX $FDD0' | ||
D0 FD BNE *-1</pre>||Clobbers X, and Z&N | D0 FD BNE *-1</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>EA ... NOP × 2 | |||
|<pre>EA | |||
E6 xx INC @zptemp</pre>||Clobbers Z&N; and requires @zptemp | E6 xx INC @zptemp</pre>||Clobbers Z&N; and requires @zptemp | ||
|- | |- | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 3 | ||
18 | |||
90 00 BCC *+2</pre>||Clobbers C | 90 00 BCC *+2</pre>||Clobbers C | ||
|- | |- | ||
|<pre> | |<pre>B8 ... CLV × 3 | ||
B8 | |||
50 00 BVC *+2</pre>||Clobbers V | 50 00 BVC *+2</pre>||Clobbers V | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
85 xx STA @zptemp</pre>||Requires @zptemp | 85 xx STA @zptemp</pre>||Requires @zptemp | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
04 00 NOP $00</pre>||Requires support for unofficial opcodes | 04 00 NOP $00</pre>||Requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
4C xx xx JMP *+3</pre>||Not relocatable code | 4C xx xx JMP *+3</pre>||Not relocatable code | ||
|- | |- | ||
Line 325: | Line 298: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 2</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|4 bytes | !colspan="2"|4 bytes | ||
Line 339: | Line 311: | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 5</pre>||No requirements | ||
|- | |- | ||
|} | |} | ||
Line 353: | Line 321: | ||
!colspan="2"|3 bytes | !colspan="2"|3 bytes | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 2 | ||
48 PHA</pre>||Clobbers A, S, and Z&N | 48 PHA</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|4 bytes | !colspan="2"|4 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
68 PLA | 68 PLA | ||
48 PHA</pre>||Clobbers A, and Z&N | 48 PHA</pre>||Clobbers A, and Z&N | ||
Line 379: | Line 344: | ||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
E6 xx INC @zptemp</pre>||Clobbers Z&N; and requires @zptemp | E6 xx INC @zptemp</pre>||Clobbers Z&N; and requires @zptemp | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 4 | ||
18 | |||
90 00 BCC *+2</pre>||Clobbers C | 90 00 BCC *+2</pre>||Clobbers C | ||
|- | |- | ||
|<pre> | |<pre>B8 ... CLV × 4 | ||
B8 | |||
50 00 BVC *+2</pre>||Clobbers V | 50 00 BVC *+2</pre>||Clobbers V | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 4 | ||
85 xx STA @zptemp</pre>||Requires @zptemp | 85 xx STA @zptemp</pre>||Requires @zptemp | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 4 | ||
04 00 NOP $00</pre>||Requires support for unofficial opcodes | 04 00 NOP $00</pre>||Requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 4 | ||
4C xx xx JMP *+3</pre>||Not relocatable code | 4C xx xx JMP *+3</pre>||Not relocatable code | ||
|- | |- | ||
Line 427: | Line 375: | ||
|<pre>20 xx xx JSR @rts12</pre>||Requires @rts12; and writes in stack | |<pre>20 xx xx JSR @rts12</pre>||Requires @rts12; and writes in stack | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 3</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|4 bytes | !colspan="2"|4 bytes | ||
Line 454: | Line 400: | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 6</pre>||No requirements | ||
|- | |- | ||
|} | |} | ||
Line 474: | Line 415: | ||
!colspan="2"|4 bytes | !colspan="2"|4 bytes | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
28 PLP</pre>||Clobbers S; and writes in stack | 28 PLP</pre>||Clobbers S; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 2 | ||
48 PHA</pre>||Clobbers A, S, and Z&N | 48 PHA</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
08 PHP | 08 PHP | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
68 PLA | 68 PLA | ||
48 PHA</pre>||Clobbers A, and Z&N | 48 PHA</pre>||Clobbers A, and Z&N | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |||
|<pre>A4 00 LDY $00 | |||
26 00 ROL $00 | |||
66 00 ROR $00</pre>||Clobbers Y, and Z&N | |||
|- | |- | ||
|<pre>A6 00 LDX $00 | |<pre>A6 00 LDX $00 | ||
26 00 ROL $00 | 26 00 ROL $00 | ||
66 00 ROR $00</pre>||Clobbers X, and Z&N | 66 00 ROR $00</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>C5 00 CMP $00 | |<pre>C5 00 CMP $00 | ||
Line 530: | Line 465: | ||
66 00 ROR $00</pre>||Clobbers Z&N; and not relocatable code | 66 00 ROR $00</pre>||Clobbers Z&N; and not relocatable code | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 5 | ||
18 | |||
90 00 BCC *+2</pre>||Clobbers C | 90 00 BCC *+2</pre>||Clobbers C | ||
|- | |- | ||
|<pre> | |<pre>B8 ... CLV × 5 | ||
B8 | |||
50 00 BVC *+2</pre>||Clobbers V | 50 00 BVC *+2</pre>||Clobbers V | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 5 | ||
85 xx STA @zptemp</pre>||Requires @zptemp | 85 xx STA @zptemp</pre>||Requires @zptemp | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 5 | ||
04 00 NOP $00</pre>||Requires support for unofficial opcodes | 04 00 NOP $00</pre>||Requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 5 | ||
4C xx xx JMP *+3</pre>||Not relocatable code | 4C xx xx JMP *+3</pre>||Not relocatable code | ||
|- | |- | ||
Line 578: | Line 493: | ||
!colspan="2"|4 bytes | !colspan="2"|4 bytes | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP \ × 2 | ||
28 PLP | 28 PLP /</pre>||Writes in stack | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA \ × 2 | ||
48 PHA | 48 PHA /</pre>||Clobbers A, and Z&N | ||
|- | |- | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
Line 596: | Line 507: | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 7</pre>||No requirements | ||
|- | |- | ||
|} | |} | ||
Line 621: | Line 526: | ||
20 xx xx JSR @rts12</pre>||Clobbers S; requires @rts12; and writes in stack | 20 xx xx JSR @rts12</pre>||Clobbers S; requires @rts12; and writes in stack | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 3 | ||
48 PHA</pre>||Clobbers A, S, and Z&N | 48 PHA</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
Line 662: | Line 565: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
48 | 48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
28 PLP</pre>||Clobbers S; and writes in stack | 28 PLP</pre>||Clobbers S; and writes in stack | ||
Line 672: | Line 574: | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 4 | ||
08 PHP | 08 PHP | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
Line 715: | Line 614: | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 6 | ||
18 | |||
90 00 BCC *+2</pre>||Clobbers C | 90 00 BCC *+2</pre>||Clobbers C | ||
|- | |- | ||
|<pre> | |<pre>B8 ... CLV × 6 | ||
B8 | |||
50 00 BVC *+2</pre>||Clobbers V | 50 00 BVC *+2</pre>||Clobbers V | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 6 | ||
85 xx STA @zptemp</pre>||Requires @zptemp | 85 xx STA @zptemp</pre>||Requires @zptemp | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 6 | ||
04 00 NOP $00</pre>||Requires support for unofficial opcodes | 04 00 NOP $00</pre>||Requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 6 | ||
4C xx xx JMP *+3</pre>||Not relocatable code | 4C xx xx JMP *+3</pre>||Not relocatable code | ||
|- | |- | ||
Line 790: | Line 664: | ||
00 00 BRK 0</pre>||Requires @zptemp, and dummy interrupt handler; and writes in stack | 00 00 BRK 0</pre>||Requires @zptemp, and dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 4</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
|<pre>04 00 NOP $00 | |<pre>04 00 NOP $00 | ||
Line 801: | Line 672: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
08 PHP | 08 PHP \ × 2 | ||
28 PLP | 28 PLP /</pre>||Writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 PLA | 68 PLA \ × 2 | ||
48 PHA | 48 PHA /</pre>||Clobbers A, and Z&N | ||
|- | |- | ||
|<pre>A2 03 LDX #3 | |<pre>A2 03 LDX #3 | ||
Line 822: | Line 689: | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
36 00 ROL $00,X | 36 00 ROL $00,X | ||
76 00 ROR $00,X</pre>||Clobbers Z&N | 76 00 ROR $00,X</pre>||Clobbers Z&N | ||
Line 829: | Line 695: | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 8</pre>||No requirements | ||
|- | |||
|} | |||
|- | |||
|} | |||
=== 17 cycles === | === 17 cycles === | ||
Line 853: | Line 712: | ||
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack | 20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
00 00 BRK 0</pre>||Requires dummy interrupt handler; and writes in stack | 00 00 BRK 0</pre>||Requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
Line 884: | Line 742: | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
08 PHP | 08 PHP \ × 2 | ||
28 PLP | 28 PLP /</pre>||Clobbers S; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 3 | ||
48 PHA</pre>||Clobbers A, S, and Z&N | 48 PHA</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
Line 917: | Line 771: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
A6 00 LDX $00 | |||
36 00 ROL $00,X | 36 00 ROL $00,X | ||
76 00 ROR $00,X</pre>||Clobbers | 76 00 ROR $00,X</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
A4 00 LDY $00 | |||
36 00 ROL $00,X | 36 00 ROL $00,X | ||
76 00 ROR $00,X</pre>||Clobbers | 76 00 ROR $00,X</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 950: | Line 804: | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 7 | ||
18 | |||
90 00 BCC *+2</pre>||Clobbers C | 90 00 BCC *+2</pre>||Clobbers C | ||
|- | |- | ||
|<pre> | |<pre>B8 ... CLV × 7 | ||
B8 | |||
50 00 BVC *+2</pre>||Clobbers V | 50 00 BVC *+2</pre>||Clobbers V | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 7 | ||
85 xx STA @zptemp</pre>||Requires @zptemp | 85 xx STA @zptemp</pre>||Requires @zptemp | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 7 | ||
04 00 NOP $00</pre>||Requires support for unofficial opcodes | 04 00 NOP $00</pre>||Requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 7 | ||
4C xx xx JMP *+3</pre>||Not relocatable code | 4C xx xx JMP *+3</pre>||Not relocatable code | ||
|- | |- | ||
Line 1,034: | Line 858: | ||
20 xx xx JSR @rts15</pre>||Clobbers Z&N, and V; requires @rts15; and writes in stack | 20 xx xx JSR @rts15</pre>||Clobbers Z&N, and V; requires @rts15; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack | 20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack | ||
|- | |- | ||
Line 1,044: | Line 867: | ||
A5 00 LDA $00 | A5 00 LDA $00 | ||
00 00 BRK 0</pre>||Clobbers A, and Z&N; requires dummy interrupt handler; and writes in stack | 00 00 BRK 0</pre>||Clobbers A, and Z&N; requires dummy interrupt handler; and writes in stack | ||
|- | |||
|<pre>EA NOP | |||
A4 00 LDY $00 | |||
00 00 BRK 0</pre>||Clobbers Y, and Z&N; requires dummy interrupt handler; and writes in stack | |||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
A6 00 LDX $00 | A6 00 LDX $00 | ||
00 00 BRK 0</pre>||Clobbers X, and Z&N; requires dummy interrupt handler; and writes in stack | 00 00 BRK 0</pre>||Clobbers X, and Z&N; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>18 CLC | |<pre>18 CLC | ||
Line 1,065: | Line 888: | ||
00 00 BRK 0</pre>||Requires @zptemp, and dummy interrupt handler; and writes in stack | 00 00 BRK 0</pre>||Requires @zptemp, and dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
20 xx xx JSR @rts12</pre>||Clobbers S; requires @rts12; and writes in stack | 20 xx xx JSR @rts12</pre>||Clobbers S; requires @rts12; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 4</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
|<pre>04 00 NOP $00 | |<pre>04 00 NOP $00 | ||
Line 1,087: | Line 906: | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP \ × 2 | |||
08 PHP | 28 PLP /</pre>||Writes in stack | ||
28 PLP | |||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
68 PLA \ × 2 | |||
68 PLA | 48 PHA /</pre>||Clobbers A, and Z&N | ||
48 PHA | |||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 1,113: | Line 926: | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
36 00 ROL $00,X | 36 00 ROL $00,X | ||
76 00 ROR $00,X</pre>||Clobbers Z&N | 76 00 ROR $00,X</pre>||Clobbers Z&N | ||
Line 1,121: | Line 932: | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 9</pre>||No requirements | ||
|- | |- | ||
|} | |} | ||
Line 1,141: | Line 944: | ||
20 xx xx JSR @rts15</pre>||Clobbers A, S, and Z&N; requires @rts15; and writes in stack | 20 xx xx JSR @rts15</pre>||Clobbers A, S, and Z&N; requires @rts15; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
00 00 BRK 0</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack | 00 00 BRK 0</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
Line 1,151: | Line 953: | ||
20 xx xx JSR @rts12</pre>||Requires @rts12; and writes in stack | 20 xx xx JSR @rts12</pre>||Requires @rts12; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack | 20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
00 00 BRK 0</pre>||Requires dummy interrupt handler; and writes in stack | 00 00 BRK 0</pre>||Requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
Line 1,163: | Line 962: | ||
20 xx xx JSR @rts14</pre>||Clobbers Z&N; requires @zptemp, and @rts14; and writes in stack | 20 xx xx JSR @rts14</pre>||Clobbers Z&N; requires @zptemp, and @rts14; and writes in stack | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 4 | ||
48 PHA</pre>||Clobbers A, S, and Z&N | |||
48 PHA</pre>||Clobbers A, S, and Z&N | |||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 1,204: | Line 1,000: | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
C5 00 CMP $00 | C5 00 CMP $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X | ||
76 00 ROR $00,X</pre>||Clobbers Z&N, and C | 76 00 ROR $00,X</pre>||Clobbers Z&N, and C | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
24 00 BIT $00 | 24 00 BIT $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X | ||
76 00 ROR $00,X</pre>||Clobbers Z&N, and V | 76 00 ROR $00,X</pre>||Clobbers Z&N, and V | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
04 00 NOP $00 | 04 00 NOP $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X | ||
Line 1,224: | Line 1,017: | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
4C xx xx JMP *+3 | 4C xx xx JMP *+3 | ||
36 00 ROL $00,X | 36 00 ROL $00,X | ||
Line 1,232: | Line 1,024: | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 8 | ||
18 | |||
90 00 BCC *+2</pre>||Clobbers C | 90 00 BCC *+2</pre>||Clobbers C | ||
|- | |- | ||
|<pre> | |<pre>B8 ... CLV × 8 | ||
B8 | |||
50 00 BVC *+2</pre>||Clobbers V | 50 00 BVC *+2</pre>||Clobbers V | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 8 | ||
85 xx STA @zptemp</pre>||Requires @zptemp | 85 xx STA @zptemp</pre>||Requires @zptemp | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 8 | ||
04 00 NOP $00</pre>||Requires support for unofficial opcodes | 04 00 NOP $00</pre>||Requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 8 | ||
4C xx xx JMP *+3</pre>||Not relocatable code | 4C xx xx JMP *+3</pre>||Not relocatable code | ||
|- | |- | ||
Line 1,308: | Line 1,065: | ||
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack | 20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 5</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
20 xx xx JSR @rts14</pre>||Clobbers S; requires @rts14; and writes in stack | 20 xx xx JSR @rts14</pre>||Clobbers S; requires @rts14; and writes in stack | ||
|- | |- | ||
Line 1,323: | Line 1,075: | ||
A5 00 LDA $00 | A5 00 LDA $00 | ||
20 xx xx JSR @rts15</pre>||Clobbers A, and Z&N; requires @rts15; and writes in stack | 20 xx xx JSR @rts15</pre>||Clobbers A, and Z&N; requires @rts15; and writes in stack | ||
|- | |||
|<pre>EA NOP | |||
A4 00 LDY $00 | |||
20 xx xx JSR @rts15</pre>||Clobbers Y, and Z&N; requires @rts15; and writes in stack | |||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
A6 00 LDX $00 | A6 00 LDX $00 | ||
20 xx xx JSR @rts15</pre>||Clobbers X, and Z&N; requires @rts15; and writes in stack | 20 xx xx JSR @rts15</pre>||Clobbers X, and Z&N; requires @rts15; and writes in stack | ||
|- | |- | ||
|<pre>BA TSX | |<pre>BA TSX | ||
68 | 68 ... PLA × 4 | ||
9A TXS</pre>||Clobbers A, X, and Z&N | 9A TXS</pre>||Clobbers A, X, and Z&N | ||
|- | |- | ||
Line 1,347: | Line 1,096: | ||
20 xx xx JSR @rts15</pre>||Clobbers V; requires @rts15; and writes in stack | 20 xx xx JSR @rts15</pre>||Clobbers V; requires @rts15; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack | 20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack | ||
|- | |- | ||
Line 1,356: | Line 1,103: | ||
20 xx xx JSR @rts15</pre>||Requires @zptemp, and @rts15; and writes in stack | 20 xx xx JSR @rts15</pre>||Requires @zptemp, and @rts15; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
08 PHP \ × 2 | |||
08 PHP | 28 PLP /</pre>||Clobbers S; and writes in stack | ||
28 PLP | |||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 1,369: | Line 1,113: | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
08 PHP \ × 2 | |||
28 PLP /</pre>||Writes in stack | |||
08 PHP | |- | ||
28 PLP | |<pre>EA ... NOP × 3 | ||
68 PLA \ × 2 | |||
48 PHA /</pre>||Clobbers A, and Z&N | |||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
A0 03 LDY #3 | |||
88 DEY | |||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | |||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
A2 03 LDX #3 | A2 03 LDX #3 | ||
CA DEX | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | D0 FB BNE *-3</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
!colspan="2"|8 bytes | |||
!colspan="2"|8 bytes | |||
|- | |- | ||
|<pre>26 00 ROL $00 | |<pre>26 00 ROL $00 \ × 2 | ||
66 00 ROR $00 | 66 00 ROR $00 /</pre>||Clobbers Z&N | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 10</pre>||No requirements | ||
|- | |- | ||
|} | |} | ||
Line 1,424: | Line 1,147: | ||
!colspan="2"|4 bytes | !colspan="2"|4 bytes | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 2 | ||
00 00 BRK 0</pre>||Clobbers A, S, and Z&N; requires dummy interrupt handler; and writes in stack | 00 00 BRK 0</pre>||Clobbers A, S, and Z&N; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
Line 1,446: | Line 1,168: | ||
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack | 20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack | 20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
48 | 48 ... PHA × 2 | ||
00 00 BRK 0</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack | 00 00 BRK 0</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
Line 1,458: | Line 1,178: | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
48 PHA | 48 PHA \ × 2 | ||
68 PLA | 68 PLA / | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA \ × 3 | ||
48 PHA /</pre>||Clobbers A, and Z&N | |||
48 PHA | |||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
E6 xx INC @zptemp | E6 xx INC @zptemp | ||
36 00 ROL $00,X | 36 00 ROL $00,X | ||
Line 1,481: | Line 1,194: | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
C5 00 CMP $00 | C5 00 CMP $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X | ||
76 00 ROR $00,X</pre>||Clobbers Z&N, and C | 76 00 ROR $00,X</pre>||Clobbers Z&N, and C | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
24 00 BIT $00 | 24 00 BIT $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X | ||
76 00 ROR $00,X</pre>||Clobbers Z&N, and V | 76 00 ROR $00,X</pre>||Clobbers Z&N, and V | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
04 00 NOP $00 | 04 00 NOP $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X | ||
Line 1,504: | Line 1,211: | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
4C xx xx JMP *+3 | 4C xx xx JMP *+3 | ||
36 00 ROL $00,X | 36 00 ROL $00,X | ||
Line 1,513: | Line 1,218: | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 9 | ||
18 | |||
90 00 BCC *+2</pre>||Clobbers C | 90 00 BCC *+2</pre>||Clobbers C | ||
|- | |- | ||
|<pre> | |<pre>B8 ... CLV × 9 | ||
B8 | |||
50 00 BVC *+2</pre>||Clobbers V | 50 00 BVC *+2</pre>||Clobbers V | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 9 | ||
85 xx STA @zptemp</pre>||Requires @zptemp | 85 xx STA @zptemp</pre>||Requires @zptemp | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 9 | ||
04 00 NOP $00</pre>||Requires support for unofficial opcodes | 04 00 NOP $00</pre>||Requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 9 | ||
4C xx xx JMP *+3</pre>||Not relocatable code | 4C xx xx JMP *+3</pre>||Not relocatable code | ||
|- | |- | ||
Line 1,586: | Line 1,251: | ||
00 00 BRK 0</pre>||Requires dummy interrupt handler; and writes in stack | 00 00 BRK 0</pre>||Requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 2 | ||
20 xx xx JSR @rts14</pre>||Clobbers A, S, and Z&N; requires @rts14; and writes in stack | 20 xx xx JSR @rts14</pre>||Clobbers A, S, and Z&N; requires @rts14; and writes in stack | ||
|- | |- | ||
Line 1,613: | Line 1,277: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 5</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
48 | 48 ... PHA × 2 | ||
20 xx xx JSR @rts14</pre>||Clobbers S; requires @rts14; and writes in stack | 20 xx xx JSR @rts14</pre>||Clobbers S; requires @rts14; and writes in stack | ||
|- | |- | ||
Line 1,639: | Line 1,298: | ||
28 PLP</pre>||Clobbers X; and writes in stack | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 4 | ||
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack | 20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack | ||
|- | |- | ||
Line 1,666: | Line 1,322: | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 11</pre>||No requirements | ||
|- | |||
|- | |||
|} | |} | ||
Line 1,685: | Line 1,331: | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 2 | ||
20 xx xx JSR @rts15</pre>||Clobbers A, S, and Z&N; requires @rts15; and writes in stack | 20 xx xx JSR @rts15</pre>||Clobbers A, S, and Z&N; requires @rts15; and writes in stack | ||
|- | |- | ||
Line 1,710: | Line 1,355: | ||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | D0 FB BNE *-3</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 2 | ||
18 | |||
A9 2A LDA #$2A ;hides 'ROL A' | A9 2A LDA #$2A ;hides 'ROL A' | ||
90 FD BCC *-1</pre>||Clobbers A, Z&N, and C | 90 FD BCC *-1</pre>||Clobbers A, Z&N, and C | ||
Line 1,726: | Line 1,370: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
48 | 48 ... PHA × 2 | ||
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack | 20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 5 | ||
48 PHA</pre>||Clobbers A, S, and Z&N | 48 PHA</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
Line 1,741: | Line 1,380: | ||
|<pre>EA NOP | |<pre>EA NOP | ||
08 PHP | 08 PHP | ||
48 PHA | 48 PHA \ × 2 | ||
68 PLA | 68 PLA / | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 PLA | 68 PLA \ × 3 | ||
48 PHA /</pre>||Clobbers A, and Z&N | |||
48 PHA | |||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
E6 xx INC @zptemp | E6 xx INC @zptemp | ||
36 00 ROL $00,X | 36 00 ROL $00,X | ||
Line 1,767: | Line 1,398: | ||
|- | |- | ||
|<pre>C5 00 CMP $00 | |<pre>C5 00 CMP $00 | ||
26 00 ROL $00 | 26 00 ROL $00 \ × 2 | ||
66 00 ROR $00 | 66 00 ROR $00 /</pre>||Clobbers Z&N, and C | ||
|- | |- | ||
|<pre>24 00 BIT $00 | |<pre>24 00 BIT $00 | ||
26 00 ROL $00 | 26 00 ROL $00 \ × 2 | ||
66 00 ROR $00 | 66 00 ROR $00 /</pre>||Clobbers Z&N, and V | ||
|- | |- | ||
|<pre>04 00 NOP $00 | |<pre>04 00 NOP $00 | ||
26 00 ROL $00 | 26 00 ROL $00 \ × 2 | ||
66 00 ROR $00 | 66 00 ROR $00 /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>4C xx xx JMP *+3 | |<pre>4C xx xx JMP *+3 | ||
26 00 ROL $00 | 26 00 ROL $00 \ × 2 | ||
66 00 ROR $00 | 66 00 ROR $00 /</pre>||Clobbers Z&N; and not relocatable code | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 10 | ||
18 | |||
90 00 BCC *+2</pre>||Clobbers C | 90 00 BCC *+2</pre>||Clobbers C | ||
|- | |- | ||
|<pre> | |<pre>B8 ... CLV × 10 | ||
B8 | |||
50 00 BVC *+2</pre>||Clobbers V | 50 00 BVC *+2</pre>||Clobbers V | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 10 | ||
85 xx STA @zptemp</pre>||Requires @zptemp | 85 xx STA @zptemp</pre>||Requires @zptemp | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 10 | ||
04 00 NOP $00</pre>||Requires support for unofficial opcodes | 04 00 NOP $00</pre>||Requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 10 | ||
4C xx xx JMP *+3</pre>||Not relocatable code | 4C xx xx JMP *+3</pre>||Not relocatable code | ||
|- | |- | ||
Line 1,869: | Line 1,447: | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
68 | 68 ... PLA × 2 | ||
00 00 BRK 0</pre>||Clobbers A, S, and Z&N; requires dummy interrupt handler; and writes in stack | 00 00 BRK 0</pre>||Clobbers A, S, and Z&N; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>20 xx xx JSR @rts12 | |<pre>20 xx xx JSR @rts12× 2</pre>||Requires @rts12; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 1,883: | Line 1,459: | ||
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack | 20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
28 PLP | 28 PLP | ||
00 00 BRK 0</pre>||Requires dummy interrupt handler; and writes in stack | 00 00 BRK 0</pre>||Requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 6</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 1,930: | Line 1,500: | ||
|<pre>48 PHA | |<pre>48 PHA | ||
08 PHP | 08 PHP | ||
48 PHA | 48 PHA \ × 2 | ||
68 PLA | 68 PLA / | ||
28 PLP</pre>||Clobbers S; and writes in stack | 28 PLP</pre>||Clobbers S; and writes in stack | ||
|- | |- | ||
Line 1,945: | Line 1,513: | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |- | ||
|<pre>36 00 ROL $00,X | |<pre>36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 12</pre>||No requirements | ||
|- | |- | ||
|} | |} | ||
Line 1,975: | Line 1,530: | ||
00 00 BRK 0</pre>||Requires dummy interrupt handler, and @rts12; and writes in stack | 00 00 BRK 0</pre>||Requires dummy interrupt handler, and @rts12; and writes in stack | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 3 | ||
00 00 BRK 0</pre>||Clobbers A, S, and Z&N; requires dummy interrupt handler; and writes in stack | 00 00 BRK 0</pre>||Clobbers A, S, and Z&N; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
Line 1,995: | Line 1,548: | ||
28 PLP | 28 PLP | ||
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack | 20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack | ||
|- | |||
|<pre>A2 03 LDX #3 | |||
48 PHA | |||
CA DEX | |||
D0 FA BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack | |||
|- | |- | ||
|<pre>A0 03 LDY #3 | |<pre>A0 03 LDY #3 | ||
Line 2,001: | Line 1,559: | ||
D0 FA BNE *-4</pre>||Clobbers Y, S, and Z&N; and writes in stack | D0 FA BNE *-4</pre>||Clobbers Y, S, and Z&N; and writes in stack | ||
|- | |- | ||
|<pre>A2 | |<pre>68 PLA | ||
A2 04 LDX #4 | |||
CA DEX | CA DEX | ||
D0 | D0 FB BNE *-3</pre>||Clobbers A, X, S, and Z&N | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA | ||
Line 2,010: | Line 1,568: | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers A, Y, S, and Z&N | D0 FB BNE *-3</pre>||Clobbers A, Y, S, and Z&N | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA | ||
Line 2,022: | Line 1,575: | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
68 | 68 ... PLA × 2 | ||
20 xx xx JSR @rts14</pre>||Clobbers A, S, and Z&N; requires @rts14; and writes in stack | 20 xx xx JSR @rts14</pre>||Clobbers A, S, and Z&N; requires @rts14; and writes in stack | ||
|- | |- | ||
Line 2,045: | Line 1,597: | ||
10 FA BPL *-4</pre>||Clobbers A, and Z&N; and writes in stack | 10 FA BPL *-4</pre>||Clobbers A, and Z&N; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
A0 04 LDY #4 | A0 04 LDY #4 | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
A2 04 LDX #4 | A2 04 LDX #4 | ||
CA DEX | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | D0 FB BNE *-3</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 3 | ||
18 | |||
A9 2A LDA #$2A ;hides 'ROL A' | A9 2A LDA #$2A ;hides 'ROL A' | ||
90 FD BCC *-1</pre>||Clobbers A, Z&N, and C | 90 FD BCC *-1</pre>||Clobbers A, Z&N, and C | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
28 PLP | 28 PLP | ||
Line 2,075: | Line 1,622: | ||
00 00 BRK 0</pre>||Requires dummy interrupt handler; and writes in stack | 00 00 BRK 0</pre>||Requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
28 PLP | 28 PLP | ||
Line 2,082: | Line 1,628: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 5 | ||
48 PHA</pre>||Clobbers A, S, and Z&N | 48 PHA</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
Line 2,101: | Line 1,643: | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
48 PHA | 48 PHA \ × 2 | ||
68 PLA | 68 PLA / | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
68 PLA \ × 3 | |||
68 PLA | 48 PHA /</pre>||Clobbers A, and Z&N | ||
48 PHA | |||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
Line 2,134: | Line 1,668: | ||
|- | |- | ||
|<pre>E6 xx INC @zptemp | |<pre>E6 xx INC @zptemp | ||
26 00 ROL $00 | 26 00 ROL $00 \ × 2 | ||
66 00 ROR $00 | 66 00 ROR $00 /</pre>||Clobbers Z&N; and requires @zptemp | ||
|- | |- | ||
|<pre>04 00 NOP $00 | |<pre>04 00 NOP $00 | ||
Line 2,155: | Line 1,687: | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 11 | ||
18 | |||
90 00 BCC *+2</pre>||Clobbers C | 90 00 BCC *+2</pre>||Clobbers C | ||
|- | |- | ||
|<pre> | |<pre>B8 ... CLV × 11 | ||
B8 | |||
50 00 BVC *+2</pre>||Clobbers V | 50 00 BVC *+2</pre>||Clobbers V | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 11 | ||
85 xx STA @zptemp</pre>||Requires @zptemp | |||
|- | |||
|<pre>EA ... NOP × 11 | |||
85 xx STA @zptemp</pre>||Requires @zptemp | |||
|- | |||
|<pre>EA | |||
04 00 NOP $00</pre>||Requires support for unofficial opcodes | 04 00 NOP $00</pre>||Requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|14 bytes | !colspan="2"|14 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 11 | ||
4C xx xx JMP *+3</pre>||Not relocatable code | 4C xx xx JMP *+3</pre>||Not relocatable code | ||
|- | |- | ||
Line 2,229: | Line 1,711: | ||
!colspan="2"|4 bytes | !colspan="2"|4 bytes | ||
|- | |- | ||
|<pre>00 00 | |<pre>00 00... BRK 0 × 2</pre>||Requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
Line 2,252: | Line 1,733: | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
68 | 68 ... PLA × 2 | ||
20 xx xx JSR @rts15</pre>||Clobbers A, S, and Z&N; requires @rts15; and writes in stack | 20 xx xx JSR @rts15</pre>||Clobbers A, S, and Z&N; requires @rts15; and writes in stack | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 3 | ||
20 xx xx JSR @rts14</pre>||Clobbers A, S, and Z&N; requires @rts14; and writes in stack | 20 xx xx JSR @rts14</pre>||Clobbers A, S, and Z&N; requires @rts14; and writes in stack | ||
|- | |- | ||
Line 2,264: | Line 1,742: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
20 xx xx JSR @rts12 | 20 xx xx JSR @rts12× 2</pre>||Requires @rts12; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
28 PLP | 28 PLP | ||
Line 2,283: | Line 1,759: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 6</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 2,305: | Line 1,776: | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA \ × 2 | ||
48 PHA | 48 PHA / | ||
36 00 ROL $00,X | 36 00 ROL $00,X | ||
76 00 ROR $00,X</pre>||Clobbers A, and Z&N | 76 00 ROR $00,X</pre>||Clobbers A, and Z&N | ||
Line 2,315: | Line 1,784: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N | ||
|- | |- | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 13</pre>||No requirements | ||
|- | |- | ||
|} | |} | ||
Line 2,362: | Line 1,817: | ||
10 FD BPL *-1</pre>||Clobbers A, Z&N, and C | 10 FD BPL *-1</pre>||Clobbers A, Z&N, and C | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP \ × 2 | ||
28 PLP | 28 PLP / | ||
00 00 BRK 0</pre>||Requires dummy interrupt handler; and writes in stack | 00 00 BRK 0</pre>||Requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 3 | ||
20 xx xx JSR @rts15</pre>||Clobbers A, S, and Z&N; requires @rts15; and writes in stack | 20 xx xx JSR @rts15</pre>||Clobbers A, S, and Z&N; requires @rts15; and writes in stack | ||
|- | |- | ||
Line 2,397: | Line 1,848: | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
20 xx xx JSR @rts12 | 20 xx xx JSR @rts12× 2</pre>||Clobbers S; requires @rts12; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 2,406: | Line 1,856: | ||
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack | 20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 6 | ||
48 PHA</pre>||Clobbers A, S, and Z&N | 48 PHA</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
Line 2,426: | Line 1,871: | ||
D0 FA BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack | D0 FA BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
28 PLP | 28 PLP | ||
Line 2,450: | Line 1,894: | ||
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack | 20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
A0 04 LDY #4 | A0 04 LDY #4 | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
A2 04 LDX #4 | A2 04 LDX #4 | ||
CA DEX | CA DEX | ||
Line 2,465: | Line 1,905: | ||
|- | |- | ||
|<pre>24 00 BIT $00 | |<pre>24 00 BIT $00 | ||
20 xx xx JSR @rts12 | 20 xx xx JSR @rts12× 2</pre>||Clobbers Z&N, and V; requires @rts12; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
08 PHP | 08 PHP | ||
28 PLP | 28 PLP | ||
Line 2,476: | Line 1,913: | ||
|- | |- | ||
|<pre>85 xx STA @zptemp | |<pre>85 xx STA @zptemp | ||
20 xx xx JSR @rts12 | 20 xx xx JSR @rts12× 2</pre>||Requires @zptemp, and @rts12; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
48 PHA | 48 PHA \ × 2 | ||
68 PLA | 68 PLA / | ||
28 PLP</pre>||Clobbers S; and writes in stack | 28 PLP</pre>||Clobbers S; and writes in stack | ||
|- | |- | ||
|<pre>04 00 NOP $00 | |<pre>04 00 NOP $00 | ||
20 xx xx JSR @rts12 | 20 xx xx JSR @rts12× 2</pre>||Requires @rts12, and support for unofficial opcodes; and writes in stack | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre> | |<pre>08 PHP | ||
08 PHP | |||
48 PHA | 48 PHA | ||
A9 6A LDA #$6A ;hides 'ROR A' | |||
38 SEC | |||
10 FC BPL *-2 | |||
68 PLA | 68 PLA | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
68 PLA \ × 3 | |||
48 PHA /</pre>||Clobbers A, and Z&N | |||
68 PLA | |||
48 PHA | |||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>C5 00 CMP $00 | |<pre>C5 00 CMP $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | ||
|- | |- | ||
|<pre>24 00 BIT $00 | |<pre>24 00 BIT $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | ||
|- | |- | ||
|<pre>E6 xx INC @zptemp | |<pre>E6 xx INC @zptemp | ||
Line 2,535: | Line 1,955: | ||
|- | |- | ||
|<pre>04 00 NOP $00 | |<pre>04 00 NOP $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>4C xx xx JMP *+3 | |<pre>4C xx xx JMP *+3 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | ||
|- | |- | ||
!colspan="2"|14 bytes | !colspan="2"|14 bytes | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 12 | ||
18 | |||
90 00 BCC *+2</pre>||Clobbers C | 90 00 BCC *+2</pre>||Clobbers C | ||
|- | |- | ||
|<pre> | |<pre>B8 ... CLV × 12 | ||
B8 | |||
50 00 BVC *+2</pre>||Clobbers V | 50 00 BVC *+2</pre>||Clobbers V | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 12 | ||
85 xx STA @zptemp</pre>||Requires @zptemp | 85 xx STA @zptemp</pre>||Requires @zptemp | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 12 | ||
04 00 NOP $00</pre>||Requires support for unofficial opcodes | 04 00 NOP $00</pre>||Requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|15 bytes | !colspan="2"|15 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 12 | ||
4C xx xx JMP *+3</pre>||Not relocatable code | 4C xx xx JMP *+3</pre>||Not relocatable code | ||
|- | |- | ||
Line 2,630: | Line 1,991: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
00 00 | 00 00... BRK 0 × 2</pre>||Requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA | ||
Line 2,641: | Line 2,001: | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 2,653: | Line 2,008: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
18 | A2 05 LDX #5 | ||
CA DEX | |||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | |||
|- | |||
|<pre>18 ... CLC × 2 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
10 FD BPL *-1</pre>||Clobbers A, Z&N, and C | 10 FD BPL *-1</pre>||Clobbers A, Z&N, and C | ||
|- | |- | ||
|<pre>20 xx xx JSR @rts14 | |<pre>20 xx xx JSR @rts14× 2</pre>||Requires @rts14; and writes in stack | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
Line 2,686: | Line 2,044: | ||
68 PLA</pre>||Clobbers Z&N, and C; and writes in stack | 68 PLA</pre>||Clobbers Z&N, and C; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
28 PLP | 28 PLP | ||
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack | 20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 7</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
Line 2,705: | Line 2,056: | ||
28 PLP | 28 PLP | ||
08 PHP | 08 PHP | ||
48 PHA | 48 PHA \ × 2 | ||
68 PLA | 68 PLA / | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA \ × 4 | ||
48 PHA /</pre>||Clobbers A, and Z&N | |||
48 PHA | |||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
36 00 ROL $00,X \ × 2 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N | |||
36 00 ROL $00,X | |||
76 00 ROR $00,X</pre>||Clobbers Z&N | |||
|- | |- | ||
!colspan="2"|14 bytes | !colspan="2"|14 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 14</pre>||No requirements | ||
|- | |- | ||
|} | |} | ||
Line 2,754: | Line 2,081: | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
00 00 | 00 00... BRK 0 × 2</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>A9 LDA #2 | |<pre>A9 LDA #2 | ||
Line 2,781: | Line 2,107: | ||
|- | |- | ||
|<pre>A5 00 LDA $00 | |<pre>A5 00 LDA $00 | ||
00 00 | 00 00... BRK 0 × 2</pre>||Clobbers A, and Z&N; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>C5 00 CMP $00 | |<pre>C5 00 CMP $00 | ||
00 00 | 00 00... BRK 0 × 2</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>24 00 BIT $00 | |<pre>24 00 BIT $00 | ||
00 00 | 00 00... BRK 0 × 2</pre>||Clobbers Z&N, and V; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 2,797: | Line 2,120: | ||
|- | |- | ||
|<pre>85 xx STA @zptemp | |<pre>85 xx STA @zptemp | ||
00 00 | 00 00... BRK 0 × 2</pre>||Requires @zptemp, and dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>04 00 NOP $00 | |<pre>04 00 NOP $00 | ||
00 00 | 00 00... BRK 0 × 2</pre>||Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP \ × 2 | ||
28 PLP | 28 PLP / | ||
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack | 20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
08 PHP | 08 PHP \ × 2 | ||
28 PLP | 28 PLP / | ||
00 00 BRK 0</pre>||Requires dummy interrupt handler; and writes in stack | 00 00 BRK 0</pre>||Requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
Line 2,824: | Line 2,141: | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
68 | 68 ... PLA × 3 | ||
20 xx xx JSR @rts14</pre>||Clobbers A, S, and Z&N; requires @rts14; and writes in stack | 20 xx xx JSR @rts14</pre>||Clobbers A, S, and Z&N; requires @rts14; and writes in stack | ||
|- | |- | ||
Line 2,839: | Line 2,154: | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A0 03 LDY #3 | |||
EA NOP | EA NOP | ||
88 DEY | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A2 03 LDX #3 | |||
EA NOP | EA NOP | ||
CA DEX | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 2,864: | Line 2,179: | ||
|- | |- | ||
|<pre>E6 xx INC @zptemp | |<pre>E6 xx INC @zptemp | ||
20 xx xx JSR @rts12 | 20 xx xx JSR @rts12× 2</pre>||Clobbers Z&N; requires @zptemp, and @rts12; and writes in stack | ||
|- | |- | ||
|<pre>85 xx STA @zptemp | |<pre>85 xx STA @zptemp | ||
Line 2,873: | Line 2,187: | ||
|<pre>EA NOP | |<pre>EA NOP | ||
48 PHA | 48 PHA | ||
20 xx xx JSR @rts12 | 20 xx xx JSR @rts12× 2</pre>||Clobbers S; requires @rts12; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 6 | ||
48 PHA</pre>||Clobbers A, S, and Z&N | 48 PHA</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
48 | 48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
28 PLP | 28 PLP | ||
Line 2,904: | Line 2,211: | ||
28 PLP</pre>||Requires @rts12; and writes in stack | 28 PLP</pre>||Requires @rts12; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 4 | ||
08 PHP | 08 PHP | ||
28 PLP | 28 PLP | ||
Line 2,937: | Line 2,241: | ||
|- | |- | ||
|<pre>E6 xx INC @zptemp | |<pre>E6 xx INC @zptemp | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
Line 2,946: | Line 2,248: | ||
|<pre>EA NOP | |<pre>EA NOP | ||
C5 00 CMP $00 | C5 00 CMP $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
24 00 BIT $00 | 24 00 BIT $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | ||
|- | |||
|<pre>EA NOP | |||
|- | |||
|<pre>EA NOP | |||
04 00 NOP $00 | 04 00 NOP $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
Line 2,969: | Line 2,265: | ||
|<pre>EA NOP | |<pre>EA NOP | ||
4C xx xx JMP *+3 | 4C xx xx JMP *+3 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | ||
|- | |- | ||
!colspan="2"|15 bytes | !colspan="2"|15 bytes | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 13 | ||
18 | |||
90 00 BCC *+2</pre>||Clobbers C | 90 00 BCC *+2</pre>||Clobbers C | ||
|- | |- | ||
|<pre> | |<pre>B8 ... CLV × 13 | ||
B8 | |||
50 00 BVC *+2</pre>||Clobbers V | 50 00 BVC *+2</pre>||Clobbers V | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 13 | ||
85 xx STA @zptemp</pre>||Requires @zptemp | 85 xx STA @zptemp</pre>||Requires @zptemp | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 13 | ||
04 00 NOP $00</pre>||Requires support for unofficial opcodes | 04 00 NOP $00</pre>||Requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|16 bytes | !colspan="2"|16 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 13 | ||
4C xx xx JMP *+3</pre>||Not relocatable code | 4C xx xx JMP *+3</pre>||Not relocatable code | ||
|- | |- | ||
Line 3,061: | Line 2,295: | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA | ||
00 00 | 00 00... BRK 0 × 2</pre>||Clobbers A, S, and Z&N; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>A9 LDA #3 | |<pre>A9 LDA #3 | ||
Line 3,069: | Line 2,302: | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>20 xx xx JSR @rts15 | |<pre>20 xx xx JSR @rts15× 2</pre>||Requires @rts15; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
00 00... BRK 0 × 2</pre>||Requires dummy interrupt handler; and writes in stack | |||
00 00 | |||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA | ||
Line 3,094: | Line 2,324: | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
EA | A0 05 LDY #5 | ||
88 DEY | |||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
A2 05 LDX #5 | A2 05 LDX #5 | ||
CA DEX | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | D0 FB BNE *-3</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 3 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
10 FD BPL *-1</pre>||Clobbers A, Z&N, and C | 10 FD BPL *-1</pre>||Clobbers A, Z&N, and C | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
20 xx xx JSR @rts14 | 20 xx xx JSR @rts14× 2</pre>||Requires @rts14; and writes in stack | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre> | |<pre>08 PHP | ||
08 PHP | 18 ... CLC × 2 | ||
18 | A9 2A LDA #$2A ;hides 'ROL A' | ||
A9 2A LDA #$2A ;hides 'ROL A' | |||
90 FD BCC *-1 | 90 FD BCC *-1 | ||
28 PLP</pre>||Clobbers A; and writes in stack | 28 PLP</pre>||Clobbers A; and writes in stack | ||
Line 3,139: | Line 2,363: | ||
28 PLP</pre>||Clobbers X; and writes in stack | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre> | |<pre>48 PHA | ||
48 PHA | 18 ... CLC × 2 | ||
18 | |||
A9 2A LDA #$2A ;hides 'ROL A' | A9 2A LDA #$2A ;hides 'ROL A' | ||
90 FD BCC *-1 | 90 FD BCC *-1 | ||
68 PLA</pre>||Clobbers Z&N, and C; and writes in stack | 68 PLA</pre>||Clobbers Z&N, and C; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
20 xx xx JSR @rts12× 2</pre>||Clobbers S; requires @rts12; and writes in stack | |||
20 xx xx JSR @rts12</pre>||Clobbers S; requires @rts12; and writes in stack | |||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 7</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre> | |<pre>08 PHP | ||
08 PHP | |||
48 PHA | 48 PHA | ||
18 CLC | |||
A9 2A LDA #$2A ;hides 'ROL A' | |||
10 FD BPL *-1 | |||
68 PLA | 68 PLA | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 PLA | 68 PLA \ × 4 | ||
48 PHA /</pre>||Clobbers A, and Z&N | |||
48 PHA | |||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
36 00 ROL $00,X \ × 2 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N | |||
36 00 ROL $00,X | |||
76 00 ROR $00,X</pre>||Clobbers Z&N | |||
|- | |- | ||
!colspan="2"|15 bytes | !colspan="2"|15 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 15</pre>||No requirements | ||
|- | |- | ||
|} | |} | ||
Line 3,216: | Line 2,405: | ||
{| class="wikitable testtable" | {| class="wikitable testtable" | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |||
|<pre>A2 06 LDX #6 | |||
CA DEX | |||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | |||
|- | |- | ||
|<pre>A0 06 LDY #6 | |<pre>A0 06 LDY #6 | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>18 CLC | |<pre>18 CLC | ||
Line 3,242: | Line 2,431: | ||
|- | |- | ||
|<pre>E6 xx INC @zptemp | |<pre>E6 xx INC @zptemp | ||
00 00 | 00 00... BRK 0 × 2</pre>||Clobbers Z&N; requires @zptemp, and dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
48 PHA | 48 PHA | ||
00 00 | 00 00... BRK 0 × 2</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
Line 3,258: | Line 2,445: | ||
|<pre>18 CLC | |<pre>18 CLC | ||
90 00 BCC *+2 | 90 00 BCC *+2 | ||
00 00 | 00 00... BRK 0 × 2</pre>||Clobbers C; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>B8 CLV | |<pre>B8 CLV | ||
50 00 BVC *+2 | 50 00 BVC *+2 | ||
00 00 | 00 00... BRK 0 × 2</pre>||Clobbers V; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
00 00 BRK 0 | 00 00 BRK 0 | ||
20 xx xx JSR @rts14</pre>||Requires dummy interrupt handler, and @rts14; and writes in stack | 20 xx xx JSR @rts14</pre>||Requires dummy interrupt handler, and @rts14; and writes in stack | ||
Line 3,273: | Line 2,457: | ||
|<pre>EA NOP | |<pre>EA NOP | ||
85 xx STA @zptemp | 85 xx STA @zptemp | ||
00 00 | 00 00... BRK 0 × 2</pre>||Requires @zptemp, and dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
20 xx xx JSR @rts14 | 20 xx xx JSR @rts14× 2</pre>||Clobbers S; requires @rts14; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
04 00 NOP $00 | 04 00 NOP $00 | ||
00 00 | 00 00... BRK 0 × 2</pre>||Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
Line 3,289: | Line 2,470: | ||
|<pre>08 PHP | |<pre>08 PHP | ||
28 PLP | 28 PLP | ||
20 xx xx JSR @rts12 | 20 xx xx JSR @rts12× 2</pre>||Requires @rts12; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
08 PHP | 08 PHP \ × 2 | ||
28 PLP | 28 PLP / | ||
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack | 20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack | ||
|- | |- | ||
|<pre>24 00 BIT $00 | |<pre>24 00 BIT $00 | ||
20 xx xx JSR @rts14 | 20 xx xx JSR @rts14× 2</pre>||Clobbers Z&N, and V; requires @rts14; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP \ × 2 | |||
08 PHP | 28 PLP / | ||
28 PLP | |||
00 00 BRK 0</pre>||Requires dummy interrupt handler; and writes in stack | 00 00 BRK 0</pre>||Requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>85 xx STA @zptemp | |<pre>85 xx STA @zptemp | ||
20 xx xx JSR @rts14 | 20 xx xx JSR @rts14× 2</pre>||Requires @zptemp, and @rts14; and writes in stack | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 7 | ||
48 PHA</pre>||Clobbers A, S, and Z&N | 48 PHA</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
08 PHP | 08 PHP | ||
A2 04 LDX #4 | |||
CA DEX | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers X, and S; and writes in stack | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
08 PHP | 08 PHP | ||
A0 04 LDY #4 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers Y, and S; and writes in stack | ||
|- | |- | ||
|<pre>04 00 NOP $00 | |<pre>04 00 NOP $00 | ||
20 xx xx JSR @rts14 | 20 xx xx JSR @rts14× 2</pre>||Requires @rts14, and support for unofficial opcodes; and writes in stack | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
Line 3,368: | Line 2,534: | ||
28 PLP | 28 PLP | ||
08 PHP | 08 PHP | ||
48 PHA | 48 PHA \ × 2 | ||
68 PLA | 68 PLA / | ||
28 PLP</pre>||Clobbers S; and writes in stack | 28 PLP</pre>||Clobbers S; and writes in stack | ||
|- | |- | ||
Line 3,377: | Line 2,541: | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X / | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA | ||
48 PHA | 48 PHA | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers A, and Z&N | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
Line 3,394: | Line 2,554: | ||
|<pre>EA NOP | |<pre>EA NOP | ||
E6 xx INC @zptemp | E6 xx INC @zptemp | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
C5 00 CMP $00 | C5 00 CMP $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
24 00 BIT $00 | 24 00 BIT $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
04 00 NOP $00 | 04 00 NOP $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
4C xx xx JMP *+3 | 4C xx xx JMP *+3 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | ||
|- | |- | ||
!colspan="2"|16 bytes | !colspan="2"|16 bytes | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 14 | ||
18 | |||
90 00 BCC *+2</pre>||Clobbers C | 90 00 BCC *+2</pre>||Clobbers C | ||
|- | |- | ||
|<pre> | |<pre>B8 ... CLV × 14 | ||
B8 | |||
50 00 BVC *+2</pre>||Clobbers V | 50 00 BVC *+2</pre>||Clobbers V | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 14 | ||
85 xx STA @zptemp</pre>||Requires @zptemp | 85 xx STA @zptemp</pre>||Requires @zptemp | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 14 | ||
04 00 NOP $00</pre>||Requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|17 bytes | |||
|- | |||
|<pre>EA ... NOP × 14 | |||
4C xx xx JMP *+3</pre>||Not relocatable code | |||
|- | |||
04 00 NOP $00</pre>||Requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|17 bytes | |||
|- | |||
|<pre>EA | |||
4C xx xx JMP *+3</pre>||Not relocatable code | |||
|- | |||
|} | |} | ||
Line 3,541: | Line 2,622: | ||
D0 FB BNE *-3</pre>||Clobbers A, X, and Z&N | D0 FB BNE *-3</pre>||Clobbers A, X, and Z&N | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 2 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
10 FD BPL *-1</pre>||Clobbers A, S, Z&N, and C | 10 FD BPL *-1</pre>||Clobbers A, S, Z&N, and C | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
00 00... BRK 0 × 2</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack | |||
00 00 | |||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
20 xx xx JSR @rts15 | 20 xx xx JSR @rts15× 2</pre>||Requires @rts15; and writes in stack | ||
|- | |- | ||
|<pre>A9 2A LDA #$2A ;hides 'ROL A' | |<pre>A9 2A LDA #$2A ;hides 'ROL A' | ||
EA | EA ... NOP × 2 | ||
18 CLC | 18 CLC | ||
10 FA BPL *-4</pre>||Clobbers A, Z&N, and C | 10 FA BPL *-4</pre>||Clobbers A, Z&N, and C | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
00 00... BRK 0 × 2</pre>||Requires dummy interrupt handler; and writes in stack | |||
|- | |||
|<pre>48 PHA | |||
A0 04 LDY #4 | |||
EA NOP | EA NOP | ||
88 DEY | |||
D0 FA BNE *-4</pre>||Clobbers Y, S, and Z&N; and writes in stack | |||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 3,574: | Line 2,653: | ||
CA DEX | CA DEX | ||
D0 FA BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack | D0 FA BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA | ||
20 xx xx JSR @rts14 | 20 xx xx JSR @rts14× 2</pre>||Clobbers A, S, and Z&N; requires @rts14; and writes in stack | ||
|- | |- | ||
|<pre>A0 FA LDY #250 ;hides 'NOP' | |<pre>A0 FA LDY #250 ;hides 'NOP' | ||
EA NOP | EA NOP | ||
C8 | C8 ... INY × 2 | ||
D0 FA BNE *-4</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes | D0 FA BNE *-4</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes | ||
|- | |- | ||
|<pre>A2 FA LDX #250 ;hides 'NOP' | |<pre>A2 FA LDX #250 ;hides 'NOP' | ||
EA NOP | EA NOP | ||
E8 | E8 ... INX × 2 | ||
D0 FA BNE *-4</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes | D0 FA BNE *-4</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>A4 00 LDY $00 | |<pre>A4 00 LDY $00 | ||
Line 3,611: | Line 2,675: | ||
D0 FA BNE *-4</pre>||Clobbers Y, and Z&N | D0 FA BNE *-4</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre> | |<pre>A6 00 LDX $00 | ||
A2 04 LDX #4 | |||
EA NOP | EA NOP | ||
CA DEX | |||
20 xx xx JSR @rts14</pre>||Requires @rts14; and writes in stack | D0 FA BNE *-4</pre>||Clobbers X, and Z&N | ||
|- | |||
|<pre>EA ... NOP × 2 | |||
20 xx xx JSR @rts14× 2</pre>||Requires @rts14; and writes in stack | |||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 8</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
Line 3,636: | Line 2,697: | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
18 | 18 ... CLC × 3 | ||
A9 | A9 2A LDA #$2A ;hides 'ROL A' | ||
90 FD BCC *-1 | |||
90 | |||
28 PLP</pre>||Clobbers A; and writes in stack | 28 PLP</pre>||Clobbers A; and writes in stack | ||
|- | |||
|<pre>08 PHP | |||
A0 03 LDY #3 | |||
C5 00 CMP $00 | |||
88 DEY | |||
D0 F9 BNE *-5 | |||
28 PLP</pre>||Clobbers Y; and writes in stack | |||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 3,648: | Line 2,715: | ||
D0 F9 BNE *-5 | D0 F9 BNE *-5 | ||
28 PLP</pre>||Clobbers X; and writes in stack | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
48 | 48 ... PHA × 2 | ||
20 xx xx JSR @rts12× 2</pre>||Clobbers S; requires @rts12; and writes in stack | |||
20 xx xx JSR @rts12</pre>||Clobbers S; requires @rts12; and writes in stack | |||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 3,671: | Line 2,729: | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre> | |<pre>08 PHP | ||
08 PHP | |||
48 PHA | 48 PHA | ||
18 ... CLC × 2 | |||
A9 2A LDA #$2A ;hides 'ROL A' | |||
10 FD BPL *-1 | |||
68 PLA | 68 PLA | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
68 PLA \ × 4 | |||
68 PLA | 48 PHA /</pre>||Clobbers A, and Z&N | ||
48 PHA | |||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>26 00 ROL $00 | |<pre>26 00 ROL $00 \ × 2 | ||
66 00 ROR $00 | 66 00 ROR $00 / | ||
36 00 ROL $00,X | 36 00 ROL $00,X | ||
76 00 ROR $00,X</pre>||Clobbers Z&N | 76 00 ROR $00,X</pre>||Clobbers Z&N | ||
Line 3,704: | Line 2,750: | ||
!colspan="2"|16 bytes | !colspan="2"|16 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 16</pre>||No requirements | ||
|- | |- | ||
|} | |} | ||
Line 3,743: | Line 2,774: | ||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | D0 FB BNE *-3</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 2 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
90 FD BCC *-1</pre>||Clobbers A, Z&N, and C | 90 FD BCC *-1</pre>||Clobbers A, Z&N, and C | ||
Line 3,750: | Line 2,780: | ||
|<pre>08 PHP | |<pre>08 PHP | ||
28 PLP | 28 PLP | ||
00 00 | 00 00... BRK 0 × 2</pre>||Requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
Line 3,760: | Line 2,789: | ||
10 FD BPL *-1 | 10 FD BPL *-1 | ||
28 PLP</pre>||Clobbers A; and writes in stack | 28 PLP</pre>||Clobbers A; and writes in stack | ||
|- | |||
|<pre>08 PHP | |||
A2 05 LDX #5 | |||
CA DEX | |||
D0 FB BNE *-3 | |||
28 PLP</pre>||Clobbers X; and writes in stack | |||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 3,766: | Line 2,801: | ||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers Y; and writes in stack | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 3,780: | Line 2,809: | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
20 xx xx JSR @rts15 | 20 xx xx JSR @rts15× 2</pre>||Clobbers S; requires @rts15; and writes in stack | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>24 00 BIT $00 | |<pre>24 00 BIT $00 | ||
20 xx xx JSR @rts15 | 20 xx xx JSR @rts15× 2</pre>||Clobbers Z&N, and V; requires @rts15; and writes in stack | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 3,794: | Line 2,821: | ||
20 xx xx JSR @rts14</pre>||Requires @rts12, and @rts14; and writes in stack | 20 xx xx JSR @rts14</pre>||Requires @rts12, and @rts14; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
20 xx xx JSR @rts14 | 20 xx xx JSR @rts14 | ||
20 xx xx JSR @rts15</pre>||Requires @rts14, and @rts15; and writes in stack | 20 xx xx JSR @rts15</pre>||Requires @rts14, and @rts15; and writes in stack | ||
|- | |- | ||
|<pre>85 xx STA @zptemp | |<pre>85 xx STA @zptemp | ||
20 xx xx JSR @rts15 | 20 xx xx JSR @rts15× 2</pre>||Requires @zptemp, and @rts15; and writes in stack | ||
|- | |- | ||
|<pre>E6 xx INC @zptemp | |<pre>E6 xx INC @zptemp | ||
20 xx xx JSR @rts14 | 20 xx xx JSR @rts14× 2</pre>||Clobbers Z&N; requires @zptemp, and @rts14; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
48 PHA | 48 PHA | ||
20 xx xx JSR @rts14 | 20 xx xx JSR @rts14× 2</pre>||Clobbers S; requires @rts14; and writes in stack | ||
|- | |- | ||
|<pre>04 00 NOP $00 | |<pre>04 00 NOP $00 | ||
20 xx xx JSR @rts15 | 20 xx xx JSR @rts15× 2</pre>||Requires @rts15, and support for unofficial opcodes; and writes in stack | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
Line 3,821: | Line 2,843: | ||
08 PHP | 08 PHP | ||
28 PLP | 28 PLP | ||
20 xx xx JSR @rts12 | 20 xx xx JSR @rts12× 2</pre>||Requires @rts12; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP \ × 2 | |||
08 PHP | 28 PLP / | ||
28 PLP | |||
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack | 20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack | ||
|- | |- | ||
Line 3,839: | Line 2,857: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 7 | ||
48 PHA</pre>||Clobbers A, S, and Z&N | 48 PHA</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP \ × 2 | ||
28 PLP | 28 PLP / | ||
08 PHP | 08 PHP | ||
36 00 ROL $00,X | 36 00 ROL $00,X | ||
Line 3,859: | Line 2,869: | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA \ × 3 | ||
48 PHA / | |||
48 PHA | |||
36 00 ROL $00,X | 36 00 ROL $00,X | ||
76 00 ROR $00,X</pre>||Clobbers A, and Z&N | 76 00 ROR $00,X</pre>||Clobbers A, and Z&N | ||
Line 3,870: | Line 2,876: | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
E6 xx INC @zptemp | E6 xx INC @zptemp | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | ||
|- | |- | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
C5 00 CMP $00 | C5 00 CMP $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
24 00 BIT $00 | 24 00 BIT $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
04 00 NOP $00 | 04 00 NOP $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|14 bytes | !colspan="2"|14 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
4C xx xx JMP *+3 | 4C xx xx JMP *+3 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | ||
|- | |- | ||
!colspan="2"|17 bytes | !colspan="2"|17 bytes | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 15 | ||
18 | |||
90 00 BCC *+2</pre>||Clobbers C | 90 00 BCC *+2</pre>||Clobbers C | ||
|- | |- | ||
|<pre> | |<pre>B8 ... CLV × 15 | ||
B8 | |||
50 00 BVC *+2</pre>||Clobbers V | 50 00 BVC *+2</pre>||Clobbers V | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 15 | ||
85 xx STA @zptemp</pre>||Requires @zptemp | 85 xx STA @zptemp</pre>||Requires @zptemp | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 15 | ||
04 00 NOP $00</pre>||Requires support for unofficial opcodes | 04 00 NOP $00</pre>||Requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|18 bytes | !colspan="2"|18 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 15 | ||
4C xx xx JMP *+3</pre>||Not relocatable code | 4C xx xx JMP *+3</pre>||Not relocatable code | ||
|- | |- | ||
Line 4,029: | Line 2,946: | ||
D0 FB BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack | D0 FB BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 2 | ||
00 00... BRK 0 × 2</pre>||Clobbers A, S, and Z&N; requires dummy interrupt handler; and writes in stack | |||
00 00 | |||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
Line 4,052: | Line 2,967: | ||
28 PLP</pre>||Clobbers A, and S; and writes in stack | 28 PLP</pre>||Clobbers A, and S; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
10 FD BPL *-1 | 10 FD BPL *-1 | ||
Line 4,059: | Line 2,973: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
48 | 48 ... PHA × 2 | ||
00 00... BRK 0 × 2</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack | |||
00 00 | |||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 4,076: | Line 2,988: | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
20 xx xx JSR @rts15× 2</pre>||Requires @rts15; and writes in stack | |||
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack | |||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 4,093: | Line 3,003: | ||
68 PLA</pre>||Clobbers Z&N, and C; and writes in stack | 68 PLA</pre>||Clobbers Z&N, and C; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 4 | ||
00 00... BRK 0 × 2</pre>||Requires dummy interrupt handler; and writes in stack | |||
00 00 | |||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
20 xx xx JSR @rts14× 2</pre>||Clobbers S; requires @rts14; and writes in stack | |||
20 xx xx JSR @rts14</pre>||Clobbers S; requires @rts14; and writes in stack | |||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
Line 4,116: | Line 3,020: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 8</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
68 PLA \ × 4 | |||
48 PHA /</pre>||Clobbers A, and Z&N | |||
68 PLA | |||
48 PHA | |||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
Line 4,143: | Line 3,032: | ||
|<pre>26 00 ROL $00 | |<pre>26 00 ROL $00 | ||
66 00 ROR $00 | 66 00 ROR $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N | ||
|- | |- | ||
!colspan="2"|17 bytes | !colspan="2"|17 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 17</pre>||No requirements | ||
|- | |- | ||
|} | |} | ||
Line 4,181: | Line 3,052: | ||
|- | |- | ||
|<pre>A0 88 LDY #136 ;hides 'DEY' | |<pre>A0 88 LDY #136 ;hides 'DEY' | ||
88 | 88 ... DEY × 2 | ||
30 FB BMI *-3</pre>||Clobbers Y, and Z&N | 30 FB BMI *-3</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
Line 4,191: | Line 3,061: | ||
|- | |- | ||
|<pre>A2 F8 LDX #248 ;hides 'SED' | |<pre>A2 F8 LDX #248 ;hides 'SED' | ||
E8 | E8 ... INX × 2 | ||
D0 FB BNE *-3</pre>||Clobbers X, Z&N, and D | D0 FB BNE *-3</pre>||Clobbers X, Z&N, and D | ||
|- | |- | ||
Line 4,207: | Line 3,076: | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
A2 06 LDX #6 | A2 06 LDX #6 | ||
CA DEX | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | D0 FB BNE *-3</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 3 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
90 FD BCC *-1</pre>||Clobbers A, Z&N, and C | 90 FD BCC *-1</pre>||Clobbers A, Z&N, and C | ||
Line 4,222: | Line 3,088: | ||
08 PHP | 08 PHP | ||
28 PLP | 28 PLP | ||
00 00 | 00 00... BRK 0 × 2</pre>||Requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA | ||
Line 4,243: | Line 3,108: | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre> | |<pre>08 PHP | ||
08 PHP | 18 ... CLC × 2 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
10 FD BPL *-1 | 10 FD BPL *-1 | ||
Line 4,252: | Line 3,116: | ||
|<pre>EA NOP | |<pre>EA NOP | ||
08 PHP | 08 PHP | ||
A0 05 LDY #5 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
08 PHP | 08 PHP | ||
A2 05 LDX #5 | |||
CA DEX | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre> | |<pre>48 PHA | ||
48 PHA | 18 ... CLC × 2 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
10 FD BPL *-1 | 10 FD BPL *-1 | ||
Line 4,273: | Line 3,136: | ||
|<pre>08 PHP | |<pre>08 PHP | ||
28 PLP | 28 PLP | ||
20 xx xx JSR @rts14 | 20 xx xx JSR @rts14× 2</pre>||Requires @rts14; and writes in stack | ||
|- | |- | ||
|<pre>E6 xx INC @zptemp | |<pre>E6 xx INC @zptemp | ||
20 xx xx JSR @rts15 | 20 xx xx JSR @rts15× 2</pre>||Clobbers Z&N; requires @zptemp, and @rts15; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
48 PHA | 48 PHA | ||
20 xx xx JSR @rts15 | 20 xx xx JSR @rts15× 2</pre>||Clobbers S; requires @rts15; and writes in stack | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
Line 4,295: | Line 3,155: | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 8 | ||
48 PHA</pre>||Clobbers A, S, and Z&N | 48 PHA</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA \ × 5 | ||
48 PHA /</pre>||Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
48 PHA | |<pre>EA ... NOP × 3 | ||
E6 xx INC @zptemp | |||
36 00 ROL $00,X \ × 2 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | |||
|- | |||
!colspan="2"|13 bytes | |||
|- | |||
|<pre>EA | |||
E6 xx INC @zptemp | |||
36 00 ROL $00,X | |||
76 00 ROR $00,X | |||
|- | |- | ||
!colspan="2"|14 bytes | !colspan="2"|14 bytes | ||
|- | |- | ||
|<pre>C5 00 CMP $00 | |<pre>C5 00 CMP $00 | ||
26 00 ROL $00 | 26 00 ROL $00 \ × 2 | ||
66 00 ROR $00 | 66 00 ROR $00 / | ||
36 00 ROL $00,X | 36 00 ROL $00,X | ||
76 00 ROR $00,X</pre>||Clobbers Z&N, and C | 76 00 ROR $00,X</pre>||Clobbers Z&N, and C | ||
|- | |- | ||
|<pre>24 00 BIT $00 | |<pre>24 00 BIT $00 | ||
26 00 ROL $00 | 26 00 ROL $00 \ × 2 | ||
66 00 ROR $00 | 66 00 ROR $00 / | ||
36 00 ROL $00,X | 36 00 ROL $00,X | ||
76 00 ROR $00,X</pre>||Clobbers Z&N, and V | 76 00 ROR $00,X</pre>||Clobbers Z&N, and V | ||
|- | |- | ||
|<pre>04 00 NOP $00 | |<pre>04 00 NOP $00 | ||
26 00 ROL $00 | 26 00 ROL $00 \ × 2 | ||
66 00 ROR $00 | 66 00 ROR $00 / | ||
36 00 ROL $00,X | 36 00 ROL $00,X | ||
76 00 ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes | 76 00 ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes | ||
Line 4,358: | Line 3,193: | ||
|- | |- | ||
|<pre>4C xx xx JMP *+3 | |<pre>4C xx xx JMP *+3 | ||
26 00 ROL $00 | 26 00 ROL $00 \ × 2 | ||
66 00 ROR $00 | 66 00 ROR $00 / | ||
36 00 ROL $00,X | 36 00 ROL $00,X | ||
76 00 ROR $00,X</pre>||Clobbers Z&N; and not relocatable code | 76 00 ROR $00,X</pre>||Clobbers Z&N; and not relocatable code | ||
Line 4,367: | Line 3,200: | ||
!colspan="2"|18 bytes | !colspan="2"|18 bytes | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 16 | ||
18 | |||
90 00 BCC *+2</pre>||Clobbers C | 90 00 BCC *+2</pre>||Clobbers C | ||
|- | |- | ||
|<pre> | |<pre>B8 ... CLV × 16 | ||
B8 | |||
50 00 BVC *+2</pre>||Clobbers V | 50 00 BVC *+2</pre>||Clobbers V | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 16 | ||
85 xx STA @zptemp</pre>||Requires @zptemp | 85 xx STA @zptemp</pre>||Requires @zptemp | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 16 | ||
04 00 NOP $00</pre>||Requires support for unofficial opcodes | 04 00 NOP $00</pre>||Requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|19 bytes | !colspan="2"|19 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 16 | ||
4C xx xx JMP *+3</pre>||Not relocatable code | |||
|- | |||
|} | |||
4C xx xx JMP *+3</pre>||Not relocatable code | |||
|- | |||
|} | |||
=== 36 cycles === | === 36 cycles === | ||
{| class="wikitable testtable" | {| class="wikitable testtable" | ||
Line 4,490: | Line 3,248: | ||
08 PHP | 08 PHP | ||
28 PLP | 28 PLP | ||
00 00 | 00 00... BRK 0 × 2</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 4,541: | Line 3,298: | ||
24 00 BIT $00 | 24 00 BIT $00 | ||
28 PLP | 28 PLP | ||
00 00 | 00 00... BRK 0 × 2</pre>||Requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
20 xx xx JSR @rts15× 2</pre>||Clobbers S; requires @rts15; and writes in stack | |||
20 xx xx JSR @rts15</pre>||Clobbers S; requires @rts15; and writes in stack | |||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>20 xx xx JSR @rts12 | |<pre>20 xx xx JSR @rts12× 3</pre>||Requires @rts12; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
20 xx xx JSR @rts15× 2</pre>||Requires @rts15; and writes in stack | |||
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack | |||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 9</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
48 | 48 ... PHA × 2 | ||
20 xx xx JSR @rts14× 2</pre>||Clobbers S; requires @rts14; and writes in stack | |||
20 xx xx JSR @rts14</pre>||Clobbers S; requires @rts14; and writes in stack | |||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
Line 4,590: | Line 3,329: | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>36 00 ROL $00,X | |<pre>36 00 ROL $00,X \ × 3 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N | ||
|- | |- | ||
!colspan="2"|18 bytes | !colspan="2"|18 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 18</pre>||No requirements | ||
|- | |- | ||
|} | |} | ||
Line 4,638: | Line 3,356: | ||
88 DEY | 88 DEY | ||
30 FC BMI *-2</pre>||Clobbers Y, S, and Z&N; and writes in stack | 30 FC BMI *-2</pre>||Clobbers Y, S, and Z&N; and writes in stack | ||
|- | |||
|<pre>A0 04 LDY #4 | |||
68 PLA | |||
88 DEY | |||
D0 FA BNE *-4</pre>||Clobbers A, Y, S, and Z&N | |||
|- | |- | ||
|<pre>A2 04 LDX #4 | |<pre>A2 04 LDX #4 | ||
Line 4,643: | Line 3,366: | ||
CA DEX | CA DEX | ||
D0 FA BNE *-4</pre>||Clobbers A, X, S, and Z&N | D0 FA BNE *-4</pre>||Clobbers A, X, S, and Z&N | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 4,655: | Line 3,373: | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |||
|<pre>A2 04 LDX #4 | |||
EA ... NOP × 2 | |||
CA DEX | |||
D0 F9 BNE *-5</pre>||Clobbers X, and Z&N | |||
|- | |- | ||
|<pre>A0 04 LDY #4 | |<pre>A0 04 LDY #4 | ||
EA | EA ... NOP × 2 | ||
88 DEY | 88 DEY | ||
D0 F9 BNE *-5</pre>||Clobbers Y, and Z&N | D0 F9 BNE *-5</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>A5 00 LDA $00 | |<pre>A5 00 LDA $00 | ||
Line 4,692: | Line 3,408: | ||
|<pre>08 PHP | |<pre>08 PHP | ||
28 PLP | 28 PLP | ||
20 xx xx JSR @rts15 | 20 xx xx JSR @rts15× 2</pre>||Requires @rts15; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
28 PLP | 28 PLP | ||
00 00 | 00 00... BRK 0 × 2</pre>||Requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
Line 4,709: | Line 3,421: | ||
28 PLP</pre>||Clobbers A, and S; and writes in stack | 28 PLP</pre>||Clobbers A, and S; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 3 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
10 FD BPL *-1 | 10 FD BPL *-1 | ||
Line 4,718: | Line 3,428: | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre> | |<pre>08 PHP | ||
18 ... CLC × 3 | |||
08 PHP | A9 0A LDA #$0A ;hides 'ASL A' | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | |||
10 FD BPL *-1 | 10 FD BPL *-1 | ||
28 PLP</pre>||Clobbers A; and writes in stack | 28 PLP</pre>||Clobbers A; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
EA | 08 PHP | ||
A0 05 LDY #5 | |||
88 DEY | |||
D0 FB BNE *-3 | |||
28 PLP</pre>||Clobbers Y; and writes in stack | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
08 PHP | 08 PHP | ||
A2 05 LDX #5 | A2 05 LDX #5 | ||
Line 4,734: | Line 3,448: | ||
28 PLP</pre>||Clobbers X; and writes in stack | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre> | |<pre>48 PHA | ||
18 ... CLC × 3 | |||
48 PHA | |||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
10 FD BPL *-1 | 10 FD BPL *-1 | ||
Line 4,753: | Line 3,457: | ||
08 PHP | 08 PHP | ||
28 PLP | 28 PLP | ||
20 xx xx JSR @rts14 | 20 xx xx JSR @rts14× 2</pre>||Requires @rts14; and writes in stack | ||
|- | |- | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre> | |<pre>08 PHP | ||
08 PHP | |||
48 PHA | 48 PHA | ||
18 | 18 ... CLC × 2 | ||
A9 2A LDA #$2A ;hides 'ROL A' | A9 2A LDA #$2A ;hides 'ROL A' | ||
90 FD BCC *-1 | 90 FD BCC *-1 | ||
Line 4,768: | Line 3,470: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 8 | ||
48 PHA</pre>||Clobbers A, S, and Z&N | 48 PHA</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
Line 4,781: | Line 3,476: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 PLA | 68 PLA \ × 5 | ||
48 PHA /</pre>||Clobbers A, and Z&N | |||
48 PHA | |||
|- | |- | ||
!colspan="2"|14 bytes | !colspan="2"|14 bytes | ||
Line 4,797: | Line 3,484: | ||
26 00 ROL $00 | 26 00 ROL $00 | ||
66 00 ROR $00 | 66 00 ROR $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | ||
|- | |- | ||
|<pre>24 00 BIT $00 | |<pre>24 00 BIT $00 | ||
26 00 ROL $00 | 26 00 ROL $00 | ||
66 00 ROR $00 | 66 00 ROR $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | ||
|- | |- | ||
|<pre>E6 xx INC @zptemp | |<pre>E6 xx INC @zptemp | ||
26 00 ROL $00 | 26 00 ROL $00 \ × 2 | ||
66 00 ROR $00 | 66 00 ROR $00 / | ||
36 00 ROL $00,X | 36 00 ROL $00,X | ||
76 00 ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp | 76 00 ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp | ||
Line 4,821: | Line 3,502: | ||
26 00 ROL $00 | 26 00 ROL $00 | ||
66 00 ROR $00 | 66 00 ROR $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|15 bytes | !colspan="2"|15 bytes | ||
Line 4,831: | Line 3,510: | ||
26 00 ROL $00 | 26 00 ROL $00 | ||
66 00 ROR $00 | 66 00 ROR $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | ||
|- | |- | ||
!colspan="2"|19 bytes | !colspan="2"|19 bytes | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 17 | ||
18 | |||
90 00 BCC *+2</pre>||Clobbers C | 90 00 BCC *+2</pre>||Clobbers C | ||
|- | |- | ||
|<pre> | |<pre>B8 ... CLV × 17 | ||
B8 | |||
50 00 BVC *+2</pre>||Clobbers V | 50 00 BVC *+2</pre>||Clobbers V | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 17 | ||
85 xx STA @zptemp</pre>||Requires @zptemp | |||
|- | |||
|<pre>EA ... NOP × 17 | |||
85 xx STA @zptemp</pre>||Requires @zptemp | |||
|- | |||
|<pre>EA | |||
04 00 NOP $00</pre>||Requires support for unofficial opcodes | 04 00 NOP $00</pre>||Requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|20 bytes | !colspan="2"|20 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 17 | ||
4C xx xx JMP *+3</pre>||Not relocatable code | 4C xx xx JMP *+3</pre>||Not relocatable code | ||
|- | |- | ||
Line 4,946: | Line 3,543: | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |||
|<pre>EA NOP | |||
A0 07 LDY #7 | |||
88 DEY | |||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | |||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 4,951: | Line 3,553: | ||
CA DEX | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | D0 FB BNE *-3</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>38 SEC | |<pre>38 SEC | ||
Line 4,993: | Line 3,590: | ||
68 PLA</pre>||Clobbers Z&N, and C; and writes in stack | 68 PLA</pre>||Clobbers Z&N, and C; and writes in stack | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 2 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
18 CLC | 18 CLC | ||
Line 5,000: | Line 3,596: | ||
|- | |- | ||
|<pre>20 xx xx JSR @rts12 | |<pre>20 xx xx JSR @rts12 | ||
00 00 | 00 00... BRK 0 × 2</pre>||Requires dummy interrupt handler, and @rts12; and writes in stack | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
Line 5,015: | Line 3,610: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 9</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA \ × 2 | ||
48 PHA | 48 PHA / | ||
36 00 ROL $00,X \ × 2 | |||
76 00 ROR $00,X /</pre>||Clobbers A, and Z&N | |||
36 00 ROL $00,X | |||
76 00 ROR $00,X</pre>||Clobbers A, and Z&N | |||
|- | |- | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 3 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N | ||
|- | |- | ||
!colspan="2"|19 bytes | !colspan="2"|19 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 19</pre>||No requirements | ||
|- | |- | ||
|} | |} | ||
Line 5,080: | Line 3,641: | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>00 00 | |<pre>00 00... BRK 0 × 3</pre>||Requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 5,117: | Line 3,676: | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |||
|<pre>08 PHP | |||
A2 05 LDX #5 ;hides 'ORA zp' | |||
CA DEX ;first loop only | |||
CA DEX | |||
D0 FB BNE *-3 | |||
28 PLP</pre>||Clobbers A, and X; and writes in stack | |||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 5,124: | Line 3,690: | ||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers A, and Y; and writes in stack | 28 PLP</pre>||Clobbers A, and Y; and writes in stack | ||
|- | |- | ||
|<pre>A9 09 LDA #$09 ;hides 'ORA #$EA' | |<pre>A9 09 LDA #$09 ;hides 'ORA #$EA' | ||
Line 5,137: | Line 3,696: | ||
10 F9 BPL *-5</pre>||Clobbers A, and Z&N; requires @rts14; and writes in stack | 10 F9 BPL *-5</pre>||Clobbers A, and Z&N; requires @rts14; and writes in stack | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 2 | ||
08 PHP | 08 PHP | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
Line 5,149: | Line 3,707: | ||
08 PHP | 08 PHP | ||
28 PLP | 28 PLP | ||
20 xx xx JSR @rts15 | 20 xx xx JSR @rts15× 2</pre>||Requires @rts15; and writes in stack | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A9 2A LDA #$2A ;hides 'ROL A' | A9 2A LDA #$2A ;hides 'ROL A' | ||
EA | EA ... NOP × 2 | ||
18 CLC | 18 CLC | ||
10 FA BPL *-4 | 10 FA BPL *-4 | ||
Line 5,162: | Line 3,718: | ||
|<pre>48 PHA | |<pre>48 PHA | ||
A9 2A LDA #$2A ;hides 'ROL A' | A9 2A LDA #$2A ;hides 'ROL A' | ||
EA | EA ... NOP × 2 | ||
18 CLC | 18 CLC | ||
10 FA BPL *-4 | 10 FA BPL *-4 | ||
68 PLA</pre>||Clobbers Z&N, and C; and writes in stack | 68 PLA</pre>||Clobbers Z&N, and C; and writes in stack | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 5,184: | Line 3,731: | ||
28 PLP</pre>||Clobbers Y, and S; and writes in stack | 28 PLP</pre>||Clobbers Y, and S; and writes in stack | ||
|- | |- | ||
|<pre>08 PHP | |<pre>48 PHA | ||
08 PHP | |||
A2 04 LDX #4 | |||
EA NOP | EA NOP | ||
CA DEX | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers X, and S; and writes in stack | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A2 FA LDX #250 ;hides 'NOP' | A2 FA LDX #250 ;hides 'NOP' | ||
EA NOP | EA NOP | ||
E8 | E8 ... INX × 2 | ||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers X; requires support for unofficial opcodes; and writes in stack | 28 PLP</pre>||Clobbers X; requires support for unofficial opcodes; and writes in stack | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A0 FA LDY #250 ;hides 'NOP' | |||
EA NOP | EA NOP | ||
C8 ... INY × 2 | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers Y; requires support for unofficial opcodes; and writes in stack | ||
|- | |||
!colspan="2"|10 bytes | |||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 5,218: | Line 3,763: | ||
28 PLP</pre>||Clobbers Y; and writes in stack | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre> | |<pre>08 PHP | ||
A6 00 LDX $00 | |||
A2 04 LDX #4 | |||
EA NOP | EA NOP | ||
CA DEX | |||
D0 FA BNE *-4 | |||
28 PLP</pre>||Clobbers X; and writes in stack | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
08 PHP | 08 PHP | ||
28 PLP | 28 PLP | ||
20 xx xx JSR @rts14 | 20 xx xx JSR @rts14× 2</pre>||Requires @rts14; and writes in stack | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
20 xx xx JSR @rts12 | 20 xx xx JSR @rts12× 3</pre>||Clobbers S; requires @rts12; and writes in stack | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 9 | ||
48 PHA</pre>||Clobbers A, S, and Z&N | 48 PHA</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
Line 5,244: | Line 3,785: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
08 PHP | 08 PHP | ||
48 PHA | 48 PHA | ||
18 | 18 ... CLC × 2 | ||
A9 2A LDA #$2A ;hides 'ROL A' | A9 2A LDA #$2A ;hides 'ROL A' | ||
90 FD BCC *-1 | 90 FD BCC *-1 | ||
Line 5,255: | Line 3,795: | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
68 PLA \ × 5 | |||
48 PHA /</pre>||Clobbers A, and Z&N | |||
68 PLA | |||
48 PHA | |||
|- | |- | ||
!colspan="2"|14 bytes | !colspan="2"|14 bytes | ||
|- | |- | ||
|<pre>C5 00 CMP $00 | |<pre>C5 00 CMP $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 3 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | ||
|- | |- | ||
|<pre>24 00 BIT $00 | |<pre>24 00 BIT $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 3 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | ||
|- | |- | ||
|<pre>E6 xx INC @zptemp | |<pre>E6 xx INC @zptemp | ||
26 00 ROL $00 | 26 00 ROL $00 | ||
66 00 ROR $00 | 66 00 ROR $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | ||
|- | |||
|<pre>04 00 NOP $00 | |||
|- | 36 00 ROL $00,X \ × 3 | ||
|<pre>04 00 NOP $00 | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | ||
36 00 ROL $00,X | |||
76 00 ROR $00,X | |||
|- | |- | ||
!colspan="2"|15 bytes | !colspan="2"|15 bytes | ||
|- | |- | ||
|<pre>4C xx xx JMP *+3 | |<pre>4C xx xx JMP *+3 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 3 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | ||
|- | |- | ||
!colspan="2"|20 bytes | !colspan="2"|20 bytes | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 18 | ||
18 | |||
90 00 BCC *+2</pre>||Clobbers C | 90 00 BCC *+2</pre>||Clobbers C | ||
|- | |- | ||
|<pre> | |<pre>B8 ... CLV × 18 | ||
B8 | |||
50 00 BVC *+2</pre>||Clobbers V | 50 00 BVC *+2</pre>||Clobbers V | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 18 | ||
85 xx STA @zptemp</pre>||Requires @zptemp | 85 xx STA @zptemp</pre>||Requires @zptemp | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 18 | ||
04 00 NOP $00</pre>||Requires support for unofficial opcodes | 04 00 NOP $00</pre>||Requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|21 bytes | !colspan="2"|21 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 18 | ||
4C xx xx JMP *+3</pre>||Not relocatable code | |||
|- | |||
|} | |||
=== 40 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>A9 LDA #13 | |||
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks | |||
|- | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>A0 05 LDY #5 ;hides 'ORA zp' | |||
EA NOP | EA NOP | ||
88 DEY | |||
D0 FB BNE *-3</pre>||Clobbers A, Y, and Z&N | |||
|- | |- | ||
|<pre>A2 05 LDX #5 ;hides 'ORA zp' | |<pre>A2 05 LDX #5 ;hides 'ORA zp' | ||
Line 5,432: | Line 3,865: | ||
CA DEX | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers A, X, and Z&N | D0 FB BNE *-3</pre>||Clobbers A, X, and Z&N | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA | ||
Line 5,445: | Line 3,873: | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
EA | A2 07 LDX #7 | ||
CA DEX | |||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
A0 07 LDY #7 | A0 07 LDY #7 | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 5,463: | Line 3,889: | ||
10 FA BPL *-4</pre>||Clobbers A, Z&N, C, and V | 10 FA BPL *-4</pre>||Clobbers A, Z&N, C, and V | ||
|- | |- | ||
|<pre>00 00 | |<pre>00 00... BRK 0 × 2 | ||
20 xx xx JSR @rts14</pre>||Requires dummy interrupt handler, and @rts14; and writes in stack | 20 xx xx JSR @rts14</pre>||Requires dummy interrupt handler, and @rts14; and writes in stack | ||
|- | |- | ||
Line 5,485: | Line 3,910: | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre> | |<pre>08 PHP | ||
08 PHP | 18 ... CLC × 2 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
90 FD BCC *-1 | 90 FD BCC *-1 | ||
Line 5,494: | Line 3,918: | ||
|<pre>EA NOP | |<pre>EA NOP | ||
08 PHP | 08 PHP | ||
A2 06 LDX #6 | |||
CA DEX | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
08 PHP | 08 PHP | ||
A0 06 LDY #6 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre> | |<pre>48 PHA | ||
48 PHA | 18 ... CLC × 2 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
90 FD BCC *-1 | 90 FD BCC *-1 | ||
68 PLA</pre>||Clobbers Z&N, and C; and writes in stack | 68 PLA</pre>||Clobbers Z&N, and C; and writes in stack | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 3 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
18 CLC | 18 CLC | ||
10 FC BPL *-2</pre>||Clobbers A, Z&N, and C | 10 FC BPL *-2</pre>||Clobbers A, Z&N, and C | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP \ × 2 | ||
28 PLP | 28 PLP / | ||
00 00... BRK 0 × 2</pre>||Requires dummy interrupt handler; and writes in stack | |||
00 00 | |||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
Line 5,539: | Line 3,957: | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 10</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA \ × 4 | ||
48 PHA / | |||
48 PHA | |||
36 00 ROL $00,X | 36 00 ROL $00,X | ||
76 00 ROR $00,X</pre>||Clobbers A, and Z&N | 76 00 ROR $00,X</pre>||Clobbers A, and Z&N | ||
Line 5,565: | Line 3,968: | ||
!colspan="2"|14 bytes | !colspan="2"|14 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
36 00 ROL $00,X \ × 3 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N | |||
36 00 ROL $00,X | |||
76 00 ROR $00,X</pre>||Clobbers Z&N | |||
|- | |- | ||
!colspan="2"|20 bytes | !colspan="2"|20 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 20</pre>||No requirements | ||
|- | |||
|- | |||
|} | |} | ||
Line 5,637: | Line 4,016: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
00 00 | 00 00... BRK 0 × 3</pre>||Requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
Line 5,691: | Line 4,068: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 9 | ||
48 PHA</pre>||Clobbers A, S, and Z&N | 48 PHA</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
68 PLA \ × 5 | |||
48 PHA /</pre>||Clobbers A, and Z&N | |||
68 PLA | |||
48 PHA | |||
|- | |- | ||
!colspan="2"|14 bytes | !colspan="2"|14 bytes | ||
|- | |- | ||
|<pre>E6 xx INC @zptemp | |<pre>E6 xx INC @zptemp | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 3 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | ||
|- | |- | ||
!colspan="2"|15 bytes | !colspan="2"|15 bytes | ||
Line 5,732: | Line 4,087: | ||
|<pre>EA NOP | |<pre>EA NOP | ||
C5 00 CMP $00 | C5 00 CMP $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 3 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
24 00 BIT $00 | 24 00 BIT $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 3 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
04 00 NOP $00 | 04 00 NOP $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 3 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|16 bytes | !colspan="2"|16 bytes | ||
Line 5,761: | Line 4,104: | ||
|<pre>EA NOP | |<pre>EA NOP | ||
4C xx xx JMP *+3 | 4C xx xx JMP *+3 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 3 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | ||
|- | |- | ||
!colspan="2"|21 bytes | !colspan="2"|21 bytes | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 19 | ||
18 | |||
90 00 BCC *+2</pre>||Clobbers C | 90 00 BCC *+2</pre>||Clobbers C | ||
|- | |- | ||
|<pre> | |<pre>B8 ... CLV × 19 | ||
50 00 BVC *+2</pre>||Clobbers V | |||
|- | |||
|<pre>EA ... NOP × 19 | |||
85 xx STA @zptemp</pre>||Requires @zptemp | |||
|- | |||
|<pre>EA ... NOP × 19 | |||
04 00 NOP $00</pre>||Requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|22 bytes | |||
B8 | |||
50 00 BVC *+2</pre>||Clobbers V | |||
|- | |||
|<pre>EA | |||
85 xx STA @zptemp</pre>||Requires @zptemp | |||
|- | |||
|<pre>EA | |||
04 00 NOP $00</pre>||Requires support for unofficial opcodes | |||
|- | |- | ||
|<pre>EA ... NOP × 19 | |||
|<pre>EA | |||
4C xx xx JMP *+3</pre>||Not relocatable code | 4C xx xx JMP *+3</pre>||Not relocatable code | ||
|- | |- | ||
Line 5,911: | Line 4,160: | ||
D0 FB BNE *-3</pre>||Clobbers A, Y, and Z&N | D0 FB BNE *-3</pre>||Clobbers A, Y, and Z&N | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
A2 07 LDX #7 | A2 07 LDX #7 | ||
CA DEX | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack | D0 FB BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
A0 07 LDY #7 | A0 07 LDY #7 | ||
88 DEY | 88 DEY | ||
Line 5,924: | Line 4,171: | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
00 00 | 00 00... BRK 0 × 3</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 5,949: | Line 4,194: | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A2 F8 LDX #248 ;hides 'SED' | A2 F8 LDX #248 ;hides 'SED' | ||
E8 | E8 ... INX × 2 | ||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers X; and writes in stack | 28 PLP</pre>||Clobbers X; and writes in stack | ||
Line 5,956: | Line 4,200: | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A0 88 LDY #136 ;hides 'DEY' | A0 88 LDY #136 ;hides 'DEY' | ||
88 | 88 ... DEY × 2 | ||
30 FB BMI *-3 | 30 FB BMI *-3 | ||
28 PLP</pre>||Clobbers Y; and writes in stack | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
A2 07 LDX #7 | A2 07 LDX #7 | ||
CA DEX | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | D0 FB BNE *-3</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
A0 07 LDY #7 | A0 07 LDY #7 | ||
88 DEY | 88 DEY | ||
Line 5,983: | Line 4,222: | ||
|- | |- | ||
|<pre>24 00 BIT $00 | |<pre>24 00 BIT $00 | ||
00 00 | 00 00... BRK 0 × 3</pre>||Clobbers Z&N, and V; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
00 00 | 00 00... BRK 0 × 2 | ||
20 xx xx JSR @rts14</pre>||Requires dummy interrupt handler, and @rts14; and writes in stack | 20 xx xx JSR @rts14</pre>||Requires dummy interrupt handler, and @rts14; and writes in stack | ||
|- | |- | ||
|<pre>85 xx STA @zptemp | |<pre>85 xx STA @zptemp | ||
00 00 | 00 00... BRK 0 × 3</pre>||Requires @zptemp, and dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>04 00 NOP $00 | |<pre>04 00 NOP $00 | ||
00 00 | 00 00... BRK 0 × 3</pre>||Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>20 xx xx JSR @rts12 | |<pre>20 xx xx JSR @rts12 | ||
20 xx xx JSR @rts15 | 20 xx xx JSR @rts15× 2</pre>||Requires @rts12, and @rts15; and writes in stack | ||
|- | |||
|- | |<pre>20 xx xx JSR @rts14× 3</pre>||Requires @rts14; and writes in stack | ||
|<pre>20 xx xx JSR @rts14 | |||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
08 PHP | 08 PHP \ × 2 | ||
28 PLP | 28 PLP / | ||
00 00... BRK 0 × 2</pre>||Requires dummy interrupt handler; and writes in stack | |||
00 00 | |||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 6,029: | Line 4,255: | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre> | |<pre>08 PHP | ||
08 PHP | |||
48 PHA | 48 PHA | ||
18 | 18 ... CLC × 2 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
10 FD BPL *-1 | 10 FD BPL *-1 | ||
Line 6,041: | Line 4,266: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 10</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA \ × 6 | ||
48 PHA /</pre>||Clobbers A, and Z&N | |||
48 PHA | |||
|- | |- | ||
!colspan="2"|15 bytes | !colspan="2"|15 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
36 00 ROL $00,X \ × 3 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N | |||
36 00 ROL $00,X | |||
76 00 ROR $00,X</pre>||Clobbers Z&N | |||
|- | |- | ||
!colspan="2"|21 bytes | !colspan="2"|21 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 21</pre>||No requirements | ||
|- | |- | ||
|} | |} | ||
Line 6,141: | Line 4,321: | ||
B0 FC BCS *-2 | B0 FC BCS *-2 | ||
28 PLP</pre>||Clobbers A; and writes in stack | 28 PLP</pre>||Clobbers A; and writes in stack | ||
|- | |||
|<pre>08 PHP | |||
A2 07 LDX #7 | |||
CA DEX | |||
D0 FB BNE *-3 | |||
28 PLP</pre>||Clobbers X; and writes in stack | |||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 6,147: | Line 4,333: | ||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers Y; and writes in stack | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 6,169: | Line 4,349: | ||
68 PLA</pre>||Clobbers Z&N, and C; and writes in stack | 68 PLA</pre>||Clobbers Z&N, and C; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
00 00... BRK 0 × 3</pre>||Requires dummy interrupt handler; and writes in stack | |||
00 00 | |||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>20 xx xx JSR @rts14 | |<pre>20 xx xx JSR @rts14× 2 | ||
20 xx xx JSR @rts15</pre>||Requires @rts14, and @rts15; and writes in stack | 20 xx xx JSR @rts15</pre>||Requires @rts14, and @rts15; and writes in stack | ||
|- | |- | ||
Line 6,201: | Line 4,377: | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 10 | ||
48 PHA</pre>||Clobbers A, S, and Z&N | 48 PHA</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
Line 6,217: | Line 4,384: | ||
|<pre>A9 09 LDA #$09 ;hides 'ORA #$EA' | |<pre>A9 09 LDA #$09 ;hides 'ORA #$EA' | ||
EA NOP ;first loop only | EA NOP ;first loop only | ||
EA | EA ... NOP × 8 | ||
10 F4 BPL *-10</pre>||Clobbers A, and Z&N | 10 F4 BPL *-10</pre>||Clobbers A, and Z&N | ||
|- | |- | ||
Line 6,231: | Line 4,391: | ||
|<pre>EA NOP | |<pre>EA NOP | ||
E6 xx INC @zptemp | E6 xx INC @zptemp | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 3 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | ||
|- | |||
|- | |||
!colspan="2"|16 bytes | !colspan="2"|16 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
C5 00 CMP $00 | C5 00 CMP $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 3 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
24 00 BIT $00 | 24 00 BIT $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 3 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
04 00 NOP $00 | 04 00 NOP $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 3 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|17 bytes | !colspan="2"|17 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
4C xx xx JMP *+3 | 4C xx xx JMP *+3 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 3 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | ||
|- | |- | ||
!colspan="2"|22 bytes | !colspan="2"|22 bytes | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 20 | ||
18 | |||
90 00 BCC *+2</pre>||Clobbers C | 90 00 BCC *+2</pre>||Clobbers C | ||
|- | |- | ||
|<pre> | |<pre>B8 ... CLV × 20 | ||
B8 | |||
50 00 BVC *+2</pre>||Clobbers V | 50 00 BVC *+2</pre>||Clobbers V | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 20 | ||
85 xx STA @zptemp</pre>||Requires @zptemp | 85 xx STA @zptemp</pre>||Requires @zptemp | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 20 | ||
04 00 NOP $00</pre>||Requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|23 bytes | |||
|- | |||
|<pre>EA ... NOP × 20 | |||
4C xx xx JMP *+3</pre>||Not relocatable code | |||
|- | |||
04 00 NOP $00</pre>||Requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|23 bytes | |||
|- | |||
|<pre>EA | |||
4C xx xx JMP *+3</pre>||Not relocatable code | |||
|- | |||
|} | |} | ||
Line 6,455: | Line 4,496: | ||
|- | |- | ||
|<pre>E6 xx INC @zptemp | |<pre>E6 xx INC @zptemp | ||
00 00 | 00 00... BRK 0 × 3</pre>||Clobbers Z&N; requires @zptemp, and dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 6,473: | Line 4,512: | ||
28 PLP</pre>||Clobbers Y, and S; and writes in stack | 28 PLP</pre>||Clobbers Y, and S; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
18 CLC | 18 CLC | ||
Line 6,482: | Line 4,520: | ||
|<pre>EA NOP | |<pre>EA NOP | ||
48 PHA | 48 PHA | ||
00 00 | 00 00... BRK 0 × 3</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
Line 6,494: | Line 4,530: | ||
10 FC BPL *-2 | 10 FC BPL *-2 | ||
28 PLP</pre>||Clobbers A; and writes in stack | 28 PLP</pre>||Clobbers A; and writes in stack | ||
|- | |||
|<pre>08 PHP | |||
A2 04 LDX #4 | |||
EA ... NOP × 2 | |||
CA DEX | |||
D0 F9 BNE *-5 | |||
28 PLP</pre>||Clobbers X; and writes in stack | |||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A0 04 LDY #4 | A0 04 LDY #4 | ||
EA | EA ... NOP × 2 | ||
88 DEY | 88 DEY | ||
D0 F9 BNE *-5 | D0 F9 BNE *-5 | ||
28 PLP</pre>||Clobbers Y; and writes in stack | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>C5 00 CMP $00 | |<pre>C5 00 CMP $00 | ||
Line 6,519: | Line 4,553: | ||
|- | |- | ||
|<pre>20 xx xx JSR @rts14 | |<pre>20 xx xx JSR @rts14 | ||
20 xx xx JSR @rts15 | 20 xx xx JSR @rts15× 2</pre>||Requires @rts14, and @rts15; and writes in stack | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 6,531: | Line 4,564: | ||
|<pre>18 CLC | |<pre>18 CLC | ||
90 00 BCC *+2 | 90 00 BCC *+2 | ||
00 00 | 00 00... BRK 0 × 3</pre>||Clobbers C; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>B8 CLV | |<pre>B8 CLV | ||
50 00 BVC *+2 | 50 00 BVC *+2 | ||
00 00 | 00 00... BRK 0 × 3</pre>||Clobbers V; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
00 00... BRK 0 × 2 | |||
00 00 | |||
20 xx xx JSR @rts14</pre>||Requires dummy interrupt handler, and @rts14; and writes in stack | 20 xx xx JSR @rts14</pre>||Requires dummy interrupt handler, and @rts14; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
85 xx STA @zptemp | 85 xx STA @zptemp | ||
00 00 | 00 00... BRK 0 × 3</pre>||Requires @zptemp, and dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
04 00 NOP $00 | 04 00 NOP $00 | ||
00 00 | 00 00... BRK 0 × 3</pre>||Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 6,568: | Line 4,591: | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP \ × 2 | ||
28 PLP | 28 PLP / | ||
20 xx xx JSR @rts15× 2</pre>||Requires @rts15; and writes in stack | |||
20 xx xx JSR @rts15</pre>||Requires @rts15; and writes in stack | |||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
20 xx xx JSR @rts14 | 20 xx xx JSR @rts14× 3</pre>||Requires @rts14; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP \ × 2 | |||
08 PHP | 28 PLP / | ||
28 PLP | 00 00... BRK 0 × 2</pre>||Requires dummy interrupt handler; and writes in stack | ||
00 00 | |||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
48 PHA | 48 PHA | ||
Line 6,600: | Line 4,613: | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre> | |<pre>08 PHP | ||
08 PHP | |||
48 PHA | 48 PHA | ||
18 | 18 ... CLC × 3 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
10 FD BPL *-1 | 10 FD BPL *-1 | ||
Line 6,610: | Line 4,621: | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 11</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 PLA | 68 PLA \ × 6 | ||
48 PHA /</pre>||Clobbers A, and Z&N | |||
48 PHA | |||
|- | |- | ||
!colspan="2"|16 bytes | !colspan="2"|16 bytes | ||
|- | |- | ||
|<pre>26 00 ROL $00 | |<pre>26 00 ROL $00 \ × 2 | ||
66 00 ROR $00 | 66 00 ROR $00 / | ||
36 00 ROL $00,X \ × 2 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N | |||
36 00 ROL $00,X | |||
76 00 ROR $00,X</pre>||Clobbers Z&N | |||
|- | |- | ||
!colspan="2"|22 bytes | !colspan="2"|22 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 22</pre>||No requirements | ||
|- | |- | ||
|} | |} | ||
Line 6,715: | Line 4,681: | ||
D0 FA BNE *-4</pre>||Clobbers Y, and Z&N | D0 FA BNE *-4</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 2 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA NOP | EA NOP | ||
Line 6,761: | Line 4,726: | ||
68 PLA</pre>||Clobbers Z&N, C, and V; and writes in stack | 68 PLA</pre>||Clobbers Z&N, C, and V; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
00 00... BRK 0 × 3</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack | |||
00 00 | |||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
Line 6,780: | Line 4,742: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 10 | ||
48 PHA</pre>||Clobbers A, S, and Z&N | 48 PHA</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|14 bytes | !colspan="2"|14 bytes | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA \ × 3 | ||
48 PHA / | |||
36 00 ROL $00,X \ × 2 | |||
48 PHA | 76 00 ROR $00,X /</pre>||Clobbers A, and Z&N | ||
36 00 ROL $00,X | |||
76 00 ROR $00,X</pre>||Clobbers A, and Z&N | |||
|- | |- | ||
!colspan="2"|16 bytes | !colspan="2"|16 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
E6 xx INC @zptemp | E6 xx INC @zptemp | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 3 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | ||
|- | |- | ||
!colspan="2"|17 bytes | !colspan="2"|17 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
C5 00 CMP $00 | C5 00 CMP $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 3 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
24 00 BIT $00 | 24 00 BIT $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 3 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | ||
|- | |||
|<pre>EA ... NOP × 3 | |||
04 00 NOP $00 | |||
36 00 ROL $00,X \ × 3 | |||
|- | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | ||
|<pre>EA | |||
04 00 NOP $00 | |||
36 00 ROL $00,X | |||
76 00 ROR $00,X | |||
|- | |- | ||
!colspan="2"|18 bytes | !colspan="2"|18 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
4C xx xx JMP *+3 | 4C xx xx JMP *+3 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 3 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | ||
|- | |- | ||
!colspan="2"|23 bytes | !colspan="2"|23 bytes | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 21 | ||
18 | |||
90 00 BCC *+2</pre>||Clobbers C | 90 00 BCC *+2</pre>||Clobbers C | ||
|- | |- | ||
|<pre> | |<pre>B8 ... CLV × 21 | ||
B8 | |||
50 00 BVC *+2</pre>||Clobbers V | 50 00 BVC *+2</pre>||Clobbers V | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 21 | ||
85 xx STA @zptemp</pre>||Requires @zptemp | 85 xx STA @zptemp</pre>||Requires @zptemp | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 21 | ||
04 00 NOP $00</pre>||Requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|24 bytes | |||
|- | |||
|<pre>EA ... NOP × 21 | |||
4C xx xx JMP *+3</pre>||Not relocatable code | |||
|- | |||
|} | |||
04 00 NOP $00</pre>||Requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|24 bytes | |||
|- | |||
|<pre>EA | |||
4C xx xx JMP *+3</pre>||Not relocatable code | |||
|- | |||
|} | |||
=== 46 cycles === | === 46 cycles === | ||
{| class="wikitable testtable" | {| class="wikitable testtable" | ||
Line 7,023: | Line 4,841: | ||
|<pre>08 PHP | |<pre>08 PHP | ||
28 PLP | 28 PLP | ||
00 00 | 00 00... BRK 0 × 3</pre>||Requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
08 PHP | 08 PHP | ||
A2 07 LDX #7 | |||
CA DEX | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers X, and S; and writes in stack | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
08 PHP | 08 PHP | ||
A0 07 LDY #7 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers Y, and S; and writes in stack | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |||
|<pre>08 PHP | |||
A4 00 LDY $00 | |||
A0 07 LDY #7 | |||
88 DEY | |||
D0 FB BNE *-3 | |||
28 PLP</pre>||Clobbers Y; and writes in stack | |||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 7,049: | Line 4,872: | ||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers X; and writes in stack | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 7,068: | Line 4,884: | ||
|<pre>EA NOP | |<pre>EA NOP | ||
20 xx xx JSR @rts14 | 20 xx xx JSR @rts14 | ||
20 xx xx JSR @rts15 | 20 xx xx JSR @rts15× 2</pre>||Requires @rts14, and @rts15; and writes in stack | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 7,083: | Line 4,898: | ||
48 PHA | 48 PHA | ||
A9 2A LDA #$2A ;hides 'ROL A' | A9 2A LDA #$2A ;hides 'ROL A' | ||
EA | EA ... NOP × 2 | ||
18 CLC | 18 CLC | ||
10 FA BPL *-4 | 10 FA BPL *-4 | ||
Line 7,093: | Line 4,907: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 11</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|14 bytes | !colspan="2"|14 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
68 PLA \ × 6 | |||
68 PLA | 48 PHA /</pre>||Clobbers A, and Z&N | ||
48 PHA | |||
|- | |- | ||
!colspan="2"|16 bytes | !colspan="2"|16 bytes | ||
Line 7,126: | Line 4,919: | ||
|<pre>26 00 ROL $00 | |<pre>26 00 ROL $00 | ||
66 00 ROR $00 | 66 00 ROR $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 3 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N | ||
|- | |- | ||
!colspan="2"|23 bytes | !colspan="2"|23 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 23</pre>||No requirements | ||
|- | |- | ||
|} | |} | ||
Line 7,171: | Line 4,938: | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 2 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
D0 FD BNE *-1</pre>||Clobbers A, S, Z&N, and C | D0 FD BNE *-1</pre>||Clobbers A, S, Z&N, and C | ||
Line 7,194: | Line 4,960: | ||
10 FC BPL *-2</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack | 10 FC BPL *-2</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
48 | A2 08 LDX #8 | ||
CA DEX | |||
D0 FB BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack | |||
|- | |||
|<pre>48 ... PHA × 2 | |||
A0 08 LDY #8 | A0 08 LDY #8 | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack | D0 FB BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 7,230: | Line 4,994: | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
A2 06 LDX #6 | |||
EA NOP | EA NOP | ||
CA DEX | |||
D0 FA BNE *-4</pre>||Clobbers X, and Z&N | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
A0 06 LDY #6 | A0 06 LDY #6 | ||
EA NOP | EA NOP | ||
Line 7,237: | Line 5,006: | ||
D0 FA BNE *-4</pre>||Clobbers Y, and Z&N | D0 FA BNE *-4</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre> | |<pre>08 PHP | ||
A0 05 LDY #5 ;hides 'ORA zp' | |||
EA NOP | EA NOP | ||
88 DEY | |||
D0 FB BNE *-3 | |||
28 PLP</pre>||Clobbers A, and Y; and writes in stack | |||
D0 | |||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 7,250: | Line 5,019: | ||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers A, and X; and writes in stack | 28 PLP</pre>||Clobbers A, and X; and writes in stack | ||
|- | |- | ||
|<pre>A5 00 LDA $00 | |<pre>A5 00 LDA $00 | ||
Line 7,281: | Line 5,043: | ||
28 PLP</pre>||Clobbers A; and writes in stack | 28 PLP</pre>||Clobbers A; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
EA | 08 PHP | ||
A0 07 LDY #7 | |||
88 DEY | |||
D0 FB BNE *-3 | |||
28 PLP</pre>||Clobbers Y; and writes in stack | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
08 PHP | 08 PHP | ||
A2 07 LDX #7 | A2 07 LDX #7 | ||
Line 7,288: | Line 5,056: | ||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers X; and writes in stack | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 7,307: | Line 5,067: | ||
|<pre>08 PHP | |<pre>08 PHP | ||
28 PLP | 28 PLP | ||
00 00 | 00 00... BRK 0 × 2 | ||
20 xx xx JSR @rts14</pre>||Requires dummy interrupt handler, and @rts14; and writes in stack | 20 xx xx JSR @rts14</pre>||Requires dummy interrupt handler, and @rts14; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 3 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
18 CLC | 18 CLC | ||
Line 7,320: | Line 5,077: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
48 | 48 ... PHA × 2 | ||
00 00... BRK 0 × 3</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack | |||
00 00 | |||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 7,335: | Line 5,089: | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre> | |<pre>08 PHP | ||
08 PHP | |||
48 PHA | 48 PHA | ||
18 | 18 ... CLC × 2 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
90 FD BCC *-1 | 90 FD BCC *-1 | ||
Line 7,346: | Line 5,099: | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 11 | ||
48 PHA</pre>||Clobbers A, S, and Z&N | 48 PHA</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|14 bytes | !colspan="2"|14 bytes | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA \ × 5 | ||
48 PHA / | |||
36 00 ROL $00,X | |||
76 00 ROR $00,X</pre>||Clobbers A, and Z&N | |||
|- | |||
48 PHA | !colspan="2"|17 bytes | ||
36 00 ROL $00,X | |||
76 00 ROR $00,X</pre>||Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|17 bytes | |||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
E6 xx INC @zptemp | E6 xx INC @zptemp | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 3 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | ||
|- | |- | ||
!colspan="2"|18 bytes | !colspan="2"|18 bytes | ||
|- | |- | ||
|<pre>C5 00 CMP $00 | |<pre>C5 00 CMP $00 | ||
26 00 ROL $00 | 26 00 ROL $00 \ × 2 | ||
66 00 ROR $00 | 66 00 ROR $00 / | ||
36 00 ROL $00,X \ × 2 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | |||
36 00 ROL $00,X | |||
76 00 ROR $00,X</pre>||Clobbers Z&N, and C | |||
|- | |- | ||
|<pre>24 00 BIT $00 | |<pre>24 00 BIT $00 | ||
26 00 ROL $00 | 26 00 ROL $00 \ × 2 | ||
66 00 ROR $00 | 66 00 ROR $00 / | ||
36 00 ROL $00,X \ × 2 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | |||
36 00 ROL $00,X | |||
76 00 ROR $00,X</pre>||Clobbers Z&N, and V | |||
|- | |- | ||
|<pre>04 00 NOP $00 | |<pre>04 00 NOP $00 | ||
26 00 ROL $00 | 26 00 ROL $00 \ × 2 | ||
66 00 ROR $00 | 66 00 ROR $00 / | ||
36 00 ROL $00,X \ × 2 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | |||
36 00 ROL $00,X | |||
76 00 ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes | |||
|- | |- | ||
!colspan="2"|19 bytes | !colspan="2"|19 bytes | ||
|- | |- | ||
|<pre>4C xx xx JMP *+3 | |<pre>4C xx xx JMP *+3 | ||
26 00 ROL $00 | 26 00 ROL $00 \ × 2 | ||
66 00 ROR $00 | 66 00 ROR $00 / | ||
36 00 ROL $00,X \ × 2 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | |||
36 00 ROL $00,X | |||
76 00 ROR $00,X</pre>||Clobbers Z&N; and not relocatable code | |||
|- | |- | ||
!colspan="2"|24 bytes | !colspan="2"|24 bytes | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 22 | ||
18 | |||
90 00 BCC *+2</pre>||Clobbers C | 90 00 BCC *+2</pre>||Clobbers C | ||
|- | |- | ||
|<pre> | |<pre>B8 ... CLV × 22 | ||
B8 | |||
50 00 BVC *+2</pre>||Clobbers V | 50 00 BVC *+2</pre>||Clobbers V | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 22 | ||
85 xx STA @zptemp</pre>||Requires @zptemp | |||
|- | |||
|<pre>EA ... NOP × 22 | |||
04 00 NOP $00</pre>||Requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|25 bytes | |||
|- | |||
|<pre>EA ... NOP × 22 | |||
4C xx xx JMP *+3</pre>||Not relocatable code | |||
85 xx STA @zptemp</pre>||Requires @zptemp | |||
|- | |||
|<pre>EA | |||
04 00 NOP $00</pre>||Requires support for unofficial opcodes | |||
|- | |- | ||
|} | |} | ||
Line 7,558: | Line 5,192: | ||
D0 FD BNE *-1 | D0 FD BNE *-1 | ||
28 PLP</pre>||Clobbers A; and writes in stack | 28 PLP</pre>||Clobbers A; and writes in stack | ||
|- | |||
|<pre>08 PHP | |||
A0 08 LDY #8 | |||
88 DEY | |||
D0 FB BNE *-3 | |||
28 PLP</pre>||Clobbers Y; and writes in stack | |||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 7,564: | Line 5,204: | ||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers X; and writes in stack | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 7,595: | Line 5,229: | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 12</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|15 bytes | !colspan="2"|15 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
68 PLA \ × 6 | |||
48 PHA /</pre>||Clobbers A, and Z&N | |||
68 PLA | |||
48 PHA | |||
|- | |- | ||
!colspan="2"|16 bytes | !colspan="2"|16 bytes | ||
|- | |- | ||
|<pre>36 00 ROL $00,X | |<pre>36 00 ROL $00,X \ × 4 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N | ||
|- | |- | ||
!colspan="2"|24 bytes | !colspan="2"|24 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 24</pre>||No requirements | ||
|- | |||
|} | |||
=== 49 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|4 bytes | |||
|- | |||
|} | |||
=== 49 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|4 bytes | |||
|- | |- | ||
|<pre>A0 88 LDY #136 ;hides 'DEY' | |<pre>A0 88 LDY #136 ;hides 'DEY' | ||
Line 7,720: | Line 5,302: | ||
28 PLP</pre>||Clobbers A, and S; and writes in stack | 28 PLP</pre>||Clobbers A, and S; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
D0 FD BNE *-1 | D0 FD BNE *-1 | ||
Line 7,727: | Line 5,308: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 2 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
D0 FD BNE *-1</pre>||Clobbers A, S, Z&N, and C | D0 FD BNE *-1</pre>||Clobbers A, S, Z&N, and C | ||
Line 7,768: | Line 5,348: | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
A2 07 LDX #7 | A2 07 LDX #7 | ||
Line 7,776: | Line 5,355: | ||
28 PLP</pre>||Clobbers X, and S; and writes in stack | 28 PLP</pre>||Clobbers X, and S; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
A0 07 LDY #7 | A0 07 LDY #7 | ||
Line 7,787: | Line 5,365: | ||
08 PHP | 08 PHP | ||
28 PLP | 28 PLP | ||
00 00 | 00 00... BRK 0 × 3</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 7,812: | Line 5,388: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 11 | ||
48 PHA</pre>||Clobbers A, S, and Z&N | 48 PHA</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|14 bytes | !colspan="2"|14 bytes | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA \ × 7 | ||
48 PHA /</pre>||Clobbers A, and Z&N | |||
48 PHA | |||
|- | |- | ||
!colspan="2"|18 bytes | !colspan="2"|18 bytes | ||
Line 7,847: | Line 5,401: | ||
26 00 ROL $00 | 26 00 ROL $00 | ||
66 00 ROR $00 | 66 00 ROR $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 3 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | ||
|- | |- | ||
|<pre>24 00 BIT $00 | |<pre>24 00 BIT $00 | ||
26 00 ROL $00 | 26 00 ROL $00 | ||
66 00 ROR $00 | 66 00 ROR $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 3 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | ||
|- | |- | ||
|<pre>E6 xx INC @zptemp | |<pre>E6 xx INC @zptemp | ||
26 00 ROL $00 | 26 00 ROL $00 \ × 2 | ||
66 00 ROR $00 | 66 00 ROR $00 / | ||
36 00 ROL $00,X \ × 2 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | |||
36 00 ROL $00,X | |||
76 00 ROR $00,X</pre>||Clobbers Z&N; and requires @zptemp | |||
|- | |- | ||
|<pre>04 00 NOP $00 | |<pre>04 00 NOP $00 | ||
26 00 ROL $00 | 26 00 ROL $00 | ||
66 00 ROR $00 | 66 00 ROR $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 3 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|19 bytes | !colspan="2"|19 bytes | ||
Line 7,889: | Line 5,427: | ||
26 00 ROL $00 | 26 00 ROL $00 | ||
66 00 ROR $00 | 66 00 ROR $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 3 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | ||
|- | |||
!colspan="2"|25 bytes | |||
|- | |||
|<pre>18 ... CLC × 23 | |||
90 00 BCC *+2</pre>||Clobbers C | |||
|- | |||
|<pre>B8 ... CLV × 23 | |||
50 00 BVC *+2</pre>||Clobbers V | |||
|- | |||
|<pre>EA ... NOP × 23 | |||
85 xx STA @zptemp</pre>||Requires @zptemp | |||
|- | |||
|<pre>EA ... NOP × 23 | |||
04 00 NOP $00</pre>||Requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|26 bytes | |||
|- | |||
|<pre>EA ... NOP × 23 | |||
4C xx xx JMP *+3</pre>||Not relocatable code | |||
|- | |- | ||
|} | |} | ||
Line 7,908: | Line 5,461: | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>A0 07 LDY #7 | |<pre>A2 07 LDX #7 | ||
EA NOP | |||
CA DEX | |||
D0 FA BNE *-4</pre>||Clobbers X, and Z&N | |||
|- | |||
|<pre>A0 07 LDY #7 | |||
EA NOP | EA NOP | ||
88 DEY | 88 DEY | ||
D0 FA BNE *-4</pre>||Clobbers Y, and Z&N | D0 FA BNE *-4</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>A9 E9 LDA #$E9 ;hides 'SBC #$2A' | |<pre>A9 E9 LDA #$E9 ;hides 'SBC #$2A' | ||
Line 7,935: | Line 5,488: | ||
28 PLP</pre>||Clobbers A, S, and Z&N; and writes in stack | 28 PLP</pre>||Clobbers A, S, and Z&N; and writes in stack | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 2 | ||
48 PHA | 48 PHA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
Line 7,961: | Line 5,513: | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A0 06 LDY #6 | |||
EA NOP | EA NOP | ||
88 DEY | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A2 06 LDX #6 | |||
EA NOP | EA NOP | ||
CA DEX | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 7,981: | Line 5,533: | ||
68 PLA</pre>||Clobbers Z&N, and C; and writes in stack | 68 PLA</pre>||Clobbers Z&N, and C; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
68 PLA | 68 PLA | ||
48 PHA | 48 PHA | ||
Line 8,001: | Line 5,552: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 12</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|15 bytes | !colspan="2"|15 bytes | ||
Line 8,020: | Line 5,560: | ||
A9 09 LDA #$09 ;hides 'ORA #$EA' | A9 09 LDA #$09 ;hides 'ORA #$EA' | ||
EA NOP ;first loop only | EA NOP ;first loop only | ||
EA | EA ... NOP × 8 | ||
10 F4 BPL *-10</pre>||Clobbers A, and Z&N | 10 F4 BPL *-10</pre>||Clobbers A, and Z&N | ||
|- | |- | ||
Line 8,033: | Line 5,566: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 4 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N | ||
|- | |||
!colspan="2"|25 bytes | |||
|- | |||
|<pre>EA ... NOP × 25</pre>||No requirements | |||
|- | |- | ||
|} | |} | ||
Line 8,067: | Line 5,598: | ||
D0 FD BNE *-1</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack | D0 FD BNE *-1</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 3 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
D0 FD BNE *-1</pre>||Clobbers A, S, Z&N, and C | D0 FD BNE *-1</pre>||Clobbers A, S, Z&N, and C | ||
Line 8,128: | Line 5,657: | ||
|- | |- | ||
|<pre>20 xx xx JSR @rts12 | |<pre>20 xx xx JSR @rts12 | ||
00 00 | 00 00... BRK 0 × 3</pre>||Requires dummy interrupt handler, and @rts12; and writes in stack | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 8,171: | Line 5,698: | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 12 | ||
48 PHA</pre>||Clobbers A, S, and Z&N | 48 PHA</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
Line 8,188: | Line 5,704: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 PLA | 68 PLA \ × 7 | ||
48 PHA /</pre>||Clobbers A, and Z&N | |||
48 PHA | |||
|- | |- | ||
!colspan="2"|18 bytes | !colspan="2"|18 bytes | ||
|- | |- | ||
|<pre>C5 00 CMP $00 | |<pre>C5 00 CMP $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 4 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | ||
|- | |- | ||
|<pre>24 00 BIT $00 | |<pre>24 00 BIT $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 4 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | ||
|- | |- | ||
|<pre>E6 xx INC @zptemp | |<pre>E6 xx INC @zptemp | ||
26 00 ROL $00 | 26 00 ROL $00 | ||
66 00 ROR $00 | 66 00 ROR $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 3 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | ||
|- | |||
|<pre>04 00 NOP $00 | |||
36 00 ROL $00,X \ × 4 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | |||
|- | |||
|<pre>04 00 NOP $00 | |||
36 00 ROL $00,X | |||
76 00 ROR $00,X | |||
|- | |- | ||
!colspan="2"|19 bytes | !colspan="2"|19 bytes | ||
|- | |- | ||
|<pre>4C xx xx JMP *+3 | |<pre>4C xx xx JMP *+3 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 4 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | ||
|- | |||
!colspan="2"|26 bytes | |||
|- | |||
|<pre>18 ... CLC × 24 | |||
90 00 BCC *+2</pre>||Clobbers C | |||
|- | |||
|<pre>B8 ... CLV × 24 | |||
50 00 BVC *+2</pre>||Clobbers V | |||
|- | |||
|<pre>EA ... NOP × 24 | |||
85 xx STA @zptemp</pre>||Requires @zptemp | |||
|- | |||
|<pre>EA ... NOP × 24 | |||
04 00 NOP $00</pre>||Requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|27 bytes | |||
|- | |||
|<pre>EA ... NOP × 24 | |||
4C xx xx JMP *+3</pre>||Not relocatable code | |||
|- | |- | ||
|} | |} | ||
Line 8,318: | Line 5,813: | ||
10 FA BPL *-4</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack | 10 FA BPL *-4</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack | ||
|- | |- | ||
|<pre>00 00 | |<pre>00 00... BRK 0 × 4</pre>||Requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
Line 8,330: | Line 5,821: | ||
28 PLP</pre>||Clobbers A, and S; and writes in stack | 28 PLP</pre>||Clobbers A, and S; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 3 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
D0 FD BNE *-1 | D0 FD BNE *-1 | ||
Line 8,338: | Line 5,827: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 2 | ||
48 PHA | 48 PHA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
Line 8,346: | Line 5,834: | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre> | |<pre>08 PHP | ||
08 PHP | 18 ... CLC × 2 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA NOP | EA NOP | ||
Line 8,370: | Line 5,857: | ||
28 PLP</pre>||Clobbers Y; and writes in stack | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre> | |<pre>48 PHA | ||
48 PHA | 18 ... CLC × 2 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA NOP | EA NOP | ||
Line 8,404: | Line 5,890: | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 13</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|16 bytes | !colspan="2"|16 bytes | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA \ × 4 | ||
48 PHA / | |||
36 00 ROL $00,X \ × 2 | |||
48 PHA | 76 00 ROR $00,X /</pre>||Clobbers A, and Z&N | ||
36 00 ROL $00,X | |||
76 00 ROR $00,X</pre>||Clobbers A, and Z&N | |||
|- | |- | ||
!colspan="2"|18 bytes | !colspan="2"|18 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
36 00 ROL $00,X \ × 4 | |||
36 00 ROL $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N | ||
76 00 ROR $00,X | |- | ||
!colspan="2"|26 bytes | |||
|- | |||
|<pre>EA ... NOP × 26</pre>||No requirements | |||
|- | |- | ||
|} | |} | ||
Line 8,524: | Line 5,987: | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA \ × 2 | ||
48 PHA | 48 PHA / | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
D0 FD BNE *-1</pre>||Clobbers A, Z&N, and C | D0 FD BNE *-1</pre>||Clobbers A, Z&N, and C | ||
Line 8,534: | Line 5,995: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 12 | ||
48 PHA</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|16 bytes | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
68 PLA \ × 7 | |||
48 PHA /</pre>||Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|18 bytes | |||
48 PHA</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|16 bytes | |||
|- | |||
|<pre>EA | |||
68 PLA | |||
48 PHA | |||
|- | |||
!colspan="2"|18 bytes | |||
|- | |- | ||
|<pre>E6 xx INC @zptemp | |<pre>E6 xx INC @zptemp | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 4 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | ||
|- | |- | ||
!colspan="2"|19 bytes | !colspan="2"|19 bytes | ||
Line 8,583: | Line 6,014: | ||
|<pre>EA NOP | |<pre>EA NOP | ||
C5 00 CMP $00 | C5 00 CMP $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 4 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
24 00 BIT $00 | 24 00 BIT $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 4 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
04 00 NOP $00 | 04 00 NOP $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 4 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|20 bytes | !colspan="2"|20 bytes | ||
Line 8,618: | Line 6,031: | ||
|<pre>EA NOP | |<pre>EA NOP | ||
4C xx xx JMP *+3 | 4C xx xx JMP *+3 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 4 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | ||
|- | |||
!colspan="2"|27 bytes | |||
|- | |||
|<pre>18 ... CLC × 25 | |||
90 00 BCC *+2</pre>||Clobbers C | |||
|- | |||
|<pre>B8 ... CLV × 25 | |||
50 00 BVC *+2</pre>||Clobbers V | |||
|- | |||
|<pre>EA ... NOP × 25 | |||
85 xx STA @zptemp</pre>||Requires @zptemp | |||
|- | |||
|<pre>EA ... NOP × 25 | |||
04 00 NOP $00</pre>||Requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|28 bytes | |||
|- | |||
|<pre>EA ... NOP × 25 | |||
4C xx xx JMP *+3</pre>||Not relocatable code | |||
|- | |- | ||
|} | |} | ||
Line 8,642: | Line 6,068: | ||
A0 88 LDY #136 ;hides 'DEY' | A0 88 LDY #136 ;hides 'DEY' | ||
30 FD BMI *-1</pre>||Clobbers Y, and Z&N; and requires @zptemp | 30 FD BMI *-1</pre>||Clobbers Y, and Z&N; and requires @zptemp | ||
|- | |||
|<pre>48 PHA | |||
A2 0A LDX #10 | |||
CA DEX | |||
D0 FB BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack | |||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 8,647: | Line 6,078: | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack | D0 FB BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack | ||
|- | |- | ||
|<pre>A0 88 LDY #136 ;hides 'DEY' | |<pre>A0 88 LDY #136 ;hides 'DEY' | ||
Line 8,659: | Line 6,085: | ||
|- | |- | ||
|<pre>A9 0A LDA #$0A ;hides 'ASL A' | |<pre>A9 0A LDA #$0A ;hides 'ASL A' | ||
48 | 48 ... PHA × 2 | ||
10 FB BPL *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack | 10 FB BPL *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack | ||
|- | |- | ||
Line 8,676: | Line 6,101: | ||
|- | |- | ||
|<pre>A9 0A LDA #$0A ;hides 'ASL A' | |<pre>A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 2 | ||
18 CLC | 18 CLC | ||
10 FA BPL *-4</pre>||Clobbers A, Z&N, and C | 10 FA BPL *-4</pre>||Clobbers A, Z&N, and C | ||
Line 8,693: | Line 6,117: | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 2 | ||
08 PHP | 08 PHP | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
Line 8,711: | Line 6,134: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
00 00 | 00 00... BRK 0 × 4</pre>||Requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
48 | 48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
Line 8,724: | Line 6,143: | ||
28 PLP</pre>||Clobbers A, and S; and writes in stack | 28 PLP</pre>||Clobbers A, and S; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
48 | 08 PHP | ||
A0 08 LDY #8 | |||
88 DEY | |||
D0 FB BNE *-3 | |||
28 PLP</pre>||Clobbers Y, and S; and writes in stack | |||
|- | |||
|<pre>48 ... PHA × 2 | |||
08 PHP | 08 PHP | ||
A2 08 LDX #8 | A2 08 LDX #8 | ||
Line 8,731: | Line 6,156: | ||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers X, and S; and writes in stack | 28 PLP</pre>||Clobbers X, and S; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
48 | 48 ... PHA × 3 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
D0 FD BNE *-1 | D0 FD BNE *-1 | ||
Line 8,765: | Line 6,180: | ||
28 PLP</pre>||Clobbers A; and writes in stack | 28 PLP</pre>||Clobbers A; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | |||
A0 06 LDY #6 | |||
EA NOP | EA NOP | ||
88 DEY | |||
D0 FA BNE *-4 | |||
28 PLP</pre>||Clobbers Y; and writes in stack | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
08 PHP | 08 PHP | ||
A2 06 LDX #6 | A2 06 LDX #6 | ||
Line 8,773: | Line 6,195: | ||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers X; and writes in stack | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>C5 00 CMP $00 | |<pre>C5 00 CMP $00 | ||
Line 8,806: | Line 6,219: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 13</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|16 bytes | !colspan="2"|16 bytes | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA \ × 6 | ||
48 PHA / | |||
48 PHA | |||
36 00 ROL $00,X | 36 00 ROL $00,X | ||
76 00 ROR $00,X</pre>||Clobbers A, and Z&N | 76 00 ROR $00,X</pre>||Clobbers A, and Z&N | ||
Line 8,839: | Line 6,230: | ||
!colspan="2"|19 bytes | !colspan="2"|19 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
36 00 ROL $00,X \ × 4 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N | |||
36 00 ROL $00,X | |- | ||
76 00 ROR $00,X | !colspan="2"|27 bytes | ||
|- | |||
|<pre>EA ... NOP × 27</pre>||No requirements | |||
|- | |- | ||
|} | |} | ||
Line 8,872: | Line 6,259: | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
A0 88 LDY #136 ;hides 'DEY' | A0 88 LDY #136 ;hides 'DEY' | ||
30 FD BMI *-1</pre>||Clobbers Y, S, and Z&N; and writes in stack | 30 FD BMI *-1</pre>||Clobbers Y, S, and Z&N; and writes in stack | ||
Line 8,890: | Line 6,276: | ||
|- | |- | ||
|<pre>A0 06 LDY #6 | |<pre>A0 06 LDY #6 | ||
EA | EA ... NOP × 2 | ||
88 DEY | 88 DEY | ||
D0 F9 BNE *-5</pre>||Clobbers Y, and Z&N | D0 F9 BNE *-5</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>A2 06 LDX #6 | |<pre>A2 06 LDX #6 | ||
EA | EA ... NOP × 2 | ||
CA DEX | CA DEX | ||
D0 F9 BNE *-5</pre>||Clobbers X, and Z&N | D0 F9 BNE *-5</pre>||Clobbers X, and Z&N | ||
Line 8,939: | Line 6,323: | ||
!colspan="2"|14 bytes | !colspan="2"|14 bytes | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 13 | ||
48 PHA</pre>||Clobbers A, S, and Z&N | 48 PHA</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
Line 8,958: | Line 6,330: | ||
|<pre>A9 09 LDA #$09 ;hides 'ORA #$EA' | |<pre>A9 09 LDA #$09 ;hides 'ORA #$EA' | ||
EA NOP ;first loop only | EA NOP ;first loop only | ||
EA | EA ... NOP × 11 | ||
10 F1 BPL *-13</pre>||Clobbers A, and Z&N | 10 F1 BPL *-13</pre>||Clobbers A, and Z&N | ||
|- | |- | ||
Line 8,975: | Line 6,337: | ||
|<pre>EA NOP | |<pre>EA NOP | ||
E6 xx INC @zptemp | E6 xx INC @zptemp | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 4 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | ||
|- | |||
!colspan="2"|20 bytes | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
|- | |||
!colspan="2"|20 bytes | |||
|- | |||
|<pre>EA | |||
C5 00 CMP $00 | C5 00 CMP $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 4 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
24 00 BIT $00 | 24 00 BIT $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 4 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
04 00 NOP $00 | 04 00 NOP $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 4 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|21 bytes | !colspan="2"|21 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
4C xx xx JMP *+3 | 4C xx xx JMP *+3 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 4 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | ||
|- | |||
!colspan="2"|28 bytes | |||
|- | |||
|<pre>18 ... CLC × 26 | |||
90 00 BCC *+2</pre>||Clobbers C | |||
|- | |||
|<pre>B8 ... CLV × 26 | |||
50 00 BVC *+2</pre>||Clobbers V | |||
|- | |||
|<pre>EA ... NOP × 26 | |||
85 xx STA @zptemp</pre>||Requires @zptemp | |||
|- | |||
|<pre>EA ... NOP × 26 | |||
04 00 NOP $00</pre>||Requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|29 bytes | |||
|- | |||
|<pre>EA ... NOP × 26 | |||
4C xx xx JMP *+3</pre>||Not relocatable code | |||
|- | |- | ||
|} | |} | ||
Line 9,042: | Line 6,389: | ||
{| class="wikitable testtable" | {| class="wikitable testtable" | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |||
|<pre>A0 0B LDY #11 | |||
88 DEY | |||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | |||
|- | |- | ||
|<pre>A2 0B LDX #11 | |<pre>A2 0B LDX #11 | ||
CA DEX | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | D0 FB BNE *-3</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>A9 LDA #29 | |<pre>A9 LDA #29 | ||
Line 9,074: | Line 6,421: | ||
|<pre>18 CLC | |<pre>18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
48 | 48 ... PHA × 2 | ||
10 FB BPL *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack | 10 FB BPL *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack | ||
|- | |- | ||
Line 9,092: | Line 6,438: | ||
|<pre>18 CLC | |<pre>18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 2 | ||
18 CLC | 18 CLC | ||
10 FA BPL *-4</pre>||Clobbers A, Z&N, and C | 10 FA BPL *-4</pre>||Clobbers A, Z&N, and C | ||
Line 9,155: | Line 6,500: | ||
!colspan="2"|14 bytes | !colspan="2"|14 bytes | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 14</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|16 bytes | !colspan="2"|16 bytes | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA \ × 8 | ||
48 PHA /</pre>||Clobbers A, and Z&N | |||
48 PHA | |||
|- | |- | ||
!colspan="2"|20 bytes | !colspan="2"|20 bytes | ||
|- | |- | ||
|<pre>26 00 ROL $00 | |<pre>26 00 ROL $00 \ × 2 | ||
66 00 ROR $00 | 66 00 ROR $00 / | ||
36 00 ROL $00,X \ × 3 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N | |||
36 00 ROL $00,X | |- | ||
76 00 ROR $00,X | !colspan="2"|28 bytes | ||
|- | |||
|<pre>EA ... NOP × 28</pre>||No requirements | |||
|- | |- | ||
|} | |} | ||
Line 9,300: | Line 6,616: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 13 | ||
48 PHA</pre>||Clobbers A, S, and Z&N | 48 PHA</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
Line 9,320: | Line 6,624: | ||
A9 09 LDA #$09 ;hides 'ORA #$EA' | A9 09 LDA #$09 ;hides 'ORA #$EA' | ||
EA NOP ;first loop only | EA NOP ;first loop only | ||
EA | EA ... NOP × 11 | ||
10 F1 BPL *-13</pre>||Clobbers A, and Z&N | 10 F1 BPL *-13</pre>||Clobbers A, and Z&N | ||
|- | |- | ||
!colspan="2"|20 bytes | !colspan="2"|20 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
E6 xx INC @zptemp | E6 xx INC @zptemp | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 4 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | ||
|- | |- | ||
!colspan="2"|21 bytes | !colspan="2"|21 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
C5 00 CMP $00 | C5 00 CMP $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 4 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
24 00 BIT $00 | 24 00 BIT $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 4 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
04 00 NOP $00 | 04 00 NOP $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 4 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|22 bytes | !colspan="2"|22 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
4C xx xx JMP *+3 | 4C xx xx JMP *+3 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 4 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | ||
|- | |||
!colspan="2"|29 bytes | |||
|- | |||
|<pre>18 ... CLC × 27 | |||
90 00 BCC *+2</pre>||Clobbers C | |||
|- | |||
|<pre>B8 ... CLV × 27 | |||
50 00 BVC *+2</pre>||Clobbers V | |||
|- | |||
|<pre>EA ... NOP × 27 | |||
85 xx STA @zptemp</pre>||Requires @zptemp | |||
|- | |||
|<pre>EA ... NOP × 27 | |||
04 00 NOP $00</pre>||Requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|30 bytes | |||
|- | |||
|<pre>EA ... NOP × 27 | |||
4C xx xx JMP *+3</pre>||Not relocatable code | |||
|- | |- | ||
|} | |} | ||
Line 9,442: | Line 6,716: | ||
30 FC BMI *-2 | 30 FC BMI *-2 | ||
28 PLP</pre>||Clobbers A; and writes in stack | 28 PLP</pre>||Clobbers A; and writes in stack | ||
|- | |||
|<pre>08 PHP | |||
A2 0A LDX #10 | |||
CA DEX | |||
D0 FB BNE *-3 | |||
28 PLP</pre>||Clobbers X; and writes in stack | |||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 9,448: | Line 6,728: | ||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers Y; and writes in stack | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>A5 00 LDA $00 | |<pre>A5 00 LDA $00 | ||
Line 9,495: | Line 6,769: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 14</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|17 bytes | !colspan="2"|17 bytes | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 PLA | 68 PLA \ × 8 | ||
48 PHA /</pre>||Clobbers A, and Z&N | |||
48 PHA | |||
|- | |- | ||
!colspan="2"|20 bytes | !colspan="2"|20 bytes | ||
Line 9,534: | Line 6,781: | ||
|<pre>26 00 ROL $00 | |<pre>26 00 ROL $00 | ||
66 00 ROR $00 | 66 00 ROR $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 4 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N | ||
|- | |||
!colspan="2"|29 bytes | |||
|- | |||
|<pre>EA ... NOP × 29</pre>||No requirements | |||
|- | |- | ||
|} | |} | ||
Line 9,559: | Line 6,804: | ||
28 PLP | 28 PLP | ||
10 FB BPL *-3</pre>||Clobbers A, Z&N, and C; and writes in stack | 10 FB BPL *-3</pre>||Clobbers A, Z&N, and C; and writes in stack | ||
|- | |||
|<pre>48 PHA | |||
A0 0B LDY #11 | |||
88 DEY | |||
D0 FB BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack | |||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 9,564: | Line 6,814: | ||
CA DEX | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack | D0 FB BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA | ||
Line 9,574: | Line 6,819: | ||
18 CLC | 18 CLC | ||
D0 FC BNE *-2</pre>||Clobbers A, S, Z&N, and C | D0 FC BNE *-2</pre>||Clobbers A, S, Z&N, and C | ||
|- | |||
|<pre>68 PLA | |||
A0 F8 LDY #248 ;hides 'SED' | |||
C8 INY | |||
D0 FC BNE *-2</pre>||Clobbers A, Y, S, Z&N, and D | |||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA | ||
Line 9,580: | Line 6,830: | ||
D0 FC BNE *-2</pre>||Clobbers A, X, S, Z&N, and D | D0 FC BNE *-2</pre>||Clobbers A, X, S, Z&N, and D | ||
|- | |- | ||
!colspan="2"|7 bytes | |||
|- | |- | ||
|<pre>A4 00 LDY $00 | |||
A0 0B LDY #11 | |||
88 DEY | |||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | |||
|- | |- | ||
|<pre>A6 00 LDX $00 | |<pre>A6 00 LDX $00 | ||
Line 9,592: | Line 6,842: | ||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | D0 FB BNE *-3</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 2 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
18 CLC | 18 CLC | ||
Line 9,683: | Line 6,927: | ||
|<pre>08 PHP | |<pre>08 PHP | ||
28 PLP | 28 PLP | ||
00 00 | 00 00... BRK 0 × 4</pre>||Requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
48 PHA | 48 PHA | ||
Line 9,699: | Line 6,939: | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre> | |<pre>08 PHP | ||
08 PHP | |||
48 PHA | 48 PHA | ||
18 | 18 ... CLC × 2 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA NOP | EA NOP | ||
Line 9,711: | Line 6,950: | ||
!colspan="2"|15 bytes | !colspan="2"|15 bytes | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 14 | ||
48 PHA</pre>||Clobbers A, S, and Z&N | 48 PHA</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
Line 9,731: | Line 6,957: | ||
|<pre>A9 09 LDA #$09 ;hides 'ORA #$EA' | |<pre>A9 09 LDA #$09 ;hides 'ORA #$EA' | ||
EA NOP ;first loop only | EA NOP ;first loop only | ||
EA | EA ... NOP × 12 | ||
10 F0 BPL *-14</pre>||Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|21 bytes | |||
10 F0 BPL *-14</pre>||Clobbers A, and Z&N | |||
|- | |- | ||
|<pre>EA ... NOP × 3 | |||
|<pre>EA | |||
E6 xx INC @zptemp | E6 xx INC @zptemp | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 4 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | ||
|- | |- | ||
!colspan="2"|22 bytes | !colspan="2"|22 bytes | ||
|- | |- | ||
|<pre>C5 00 CMP $00 | |<pre>C5 00 CMP $00 | ||
26 00 ROL $00 | 26 00 ROL $00 \ × 2 | ||
66 00 ROR $00 | 66 00 ROR $00 / | ||
36 00 ROL $00,X \ × 3 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | |||
36 00 ROL $00,X | |||
76 00 ROR $00,X</pre>||Clobbers Z&N, and C | |||
|- | |- | ||
|<pre>24 00 BIT $00 | |<pre>24 00 BIT $00 | ||
26 00 ROL $00 | 26 00 ROL $00 \ × 2 | ||
66 00 ROR $00 | 66 00 ROR $00 / | ||
36 00 ROL $00,X \ × 3 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | |||
36 00 ROL $00,X | |||
76 00 ROR $00,X</pre>||Clobbers Z&N, and V | |||
|- | |- | ||
|<pre>04 00 NOP $00 | |<pre>04 00 NOP $00 | ||
26 00 ROL $00 | 26 00 ROL $00 \ × 2 | ||
66 00 ROR $00 | 66 00 ROR $00 / | ||
36 00 ROL $00,X \ × 3 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | |||
36 00 ROL $00,X | |||
76 00 ROR $00,X</pre>||Clobbers Z&N; and requires support for unofficial opcodes | |||
|- | |- | ||
!colspan="2"|23 bytes | !colspan="2"|23 bytes | ||
|- | |- | ||
|<pre>4C xx xx JMP *+3 | |<pre>4C xx xx JMP *+3 | ||
26 00 ROL $00 | 26 00 ROL $00 \ × 2 | ||
66 00 ROR $00 | 66 00 ROR $00 / | ||
36 00 ROL $00,X \ × 3 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | |||
36 00 ROL $00,X | |- | ||
76 00 ROR $00,X | !colspan="2"|30 bytes | ||
|- | |||
|<pre>18 ... CLC × 28 | |||
90 00 BCC *+2</pre>||Clobbers C | |||
|- | |||
|<pre>B8 ... CLV × 28 | |||
50 00 BVC *+2</pre>||Clobbers V | |||
|- | |||
|<pre>EA ... NOP × 28 | |||
85 xx STA @zptemp</pre>||Requires @zptemp | |||
|- | |||
|<pre>EA ... NOP × 28 | |||
04 00 NOP $00</pre>||Requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|31 bytes | |||
|- | |||
|<pre>EA ... NOP × 28 | |||
4C xx xx JMP *+3</pre>||Not relocatable code | |||
|- | |- | ||
|} | |} | ||
Line 9,836: | Line 7,038: | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
EA | A2 0B LDX #11 | ||
CA DEX | |||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
A0 0B LDY #11 | A0 0B LDY #11 | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>E6 xx INC @zptemp | |<pre>E6 xx INC @zptemp | ||
Line 9,886: | Line 7,086: | ||
|<pre>EA NOP | |<pre>EA NOP | ||
08 PHP | 08 PHP | ||
A0 0A LDY #10 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
08 PHP | 08 PHP | ||
A2 0A LDX #10 | |||
CA DEX | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 9,945: | Line 7,145: | ||
!colspan="2"|15 bytes | !colspan="2"|15 bytes | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 15</pre>||Clobbers A, S, and Z&N | ||
|- | |||
!colspan="2"|18 bytes | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
68 PLA | 68 PLA \ × 8 | ||
48 PHA /</pre>||Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|20 bytes | |||
|- | |- | ||
|<pre>36 00 ROL $00,X \ × 5 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N | |||
|- | |- | ||
| | !colspan="2"|30 bytes | ||
|- | |- | ||
|<pre>EA ... NOP × 30</pre>||No requirements | |||
|<pre> | |||
|- | |- | ||
|} | |} | ||
Line 10,044: | Line 7,211: | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 3 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
18 CLC | 18 CLC | ||
Line 10,078: | Line 7,243: | ||
28 PLP</pre>||Clobbers X, and S; and writes in stack | 28 PLP</pre>||Clobbers X, and S; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
A9 E9 LDA #$E9 ;hides 'SBC #$0A' | A9 E9 LDA #$E9 ;hides 'SBC #$0A' | ||
0A ASL A ;first loop only | 0A ASL A ;first loop only | ||
Line 10,089: | Line 7,253: | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 2 | ||
18 CLC | 18 CLC | ||
10 FA BPL *-4 | 10 FA BPL *-4 | ||
Line 10,111: | Line 7,274: | ||
|<pre>48 PHA | |<pre>48 PHA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 2 | ||
18 CLC | 18 CLC | ||
10 FA BPL *-4 | 10 FA BPL *-4 | ||
Line 10,129: | Line 7,291: | ||
08 PHP | 08 PHP | ||
28 PLP | 28 PLP | ||
00 00 | 00 00... BRK 0 × 4</pre>||Requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
48 | 48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
48 PHA | 48 PHA | ||
Line 10,159: | Line 7,317: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 14 | ||
48 PHA</pre>||Clobbers A, S, and Z&N | 48 PHA</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|18 bytes | !colspan="2"|18 bytes | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA \ × 7 | ||
48 PHA / | |||
48 PHA | |||
36 00 ROL $00,X | 36 00 ROL $00,X | ||
76 00 ROR $00,X</pre>||Clobbers A, and Z&N | 76 00 ROR $00,X</pre>||Clobbers A, and Z&N | ||
Line 10,199: | Line 7,332: | ||
26 00 ROL $00 | 26 00 ROL $00 | ||
66 00 ROR $00 | 66 00 ROR $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 4 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | ||
|- | |- | ||
|<pre>24 00 BIT $00 | |<pre>24 00 BIT $00 | ||
26 00 ROL $00 | 26 00 ROL $00 | ||
66 00 ROR $00 | 66 00 ROR $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 4 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | ||
|- | |- | ||
|<pre>E6 xx INC @zptemp | |<pre>E6 xx INC @zptemp | ||
26 00 ROL $00 \ × 2 | |||
66 00 ROR $00 / | |||
36 00 ROL $00,X \ × 3 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | |||
|- | |||
|<pre>04 00 NOP $00 | |||
26 00 ROL $00 | 26 00 ROL $00 | ||
66 00 ROR $00 | 66 00 ROR $00 | ||
36 00 ROL $00,X \ × 4 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|23 bytes | |||
|- | |||
|<pre>4C xx xx JMP *+3 | |||
26 00 ROL $00 | 26 00 ROL $00 | ||
66 00 ROR $00 | 66 00 ROR $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 4 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | ||
|- | |||
!colspan="2"|31 bytes | |||
|- | |||
|<pre>18 ... CLC × 29 | |||
90 00 BCC *+2</pre>||Clobbers C | |||
|- | |||
|<pre>B8 ... CLV × 29 | |||
50 00 BVC *+2</pre>||Clobbers V | |||
|- | |||
|<pre>EA ... NOP × 29 | |||
85 xx STA @zptemp</pre>||Requires @zptemp | |||
|- | |- | ||
|<pre>04 00 NOP $00 | |<pre>EA ... NOP × 29 | ||
04 00 NOP $00</pre>||Requires support for unofficial opcodes | |||
|- | |- | ||
!colspan="2"| | !colspan="2"|32 bytes | ||
|- | |- | ||
|<pre>4C xx xx JMP *+3 | |<pre>EA ... NOP × 29 | ||
4C xx xx JMP *+3</pre>||Not relocatable code | |||
|- | |- | ||
|} | |} | ||
Line 10,309: | Line 7,431: | ||
18 CLC | 18 CLC | ||
D0 FC BNE *-2</pre>||Clobbers A, Z&N, and C | D0 FC BNE *-2</pre>||Clobbers A, Z&N, and C | ||
|- | |||
|<pre>68 PLA | |||
48 PHA | |||
A2 F8 LDX #248 ;hides 'SED' | |||
E8 INX | |||
D0 FC BNE *-2</pre>||Clobbers A, X, Z&N, and D | |||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA | ||
Line 10,315: | Line 7,443: | ||
C8 INY | C8 INY | ||
D0 FC BNE *-2</pre>||Clobbers A, Y, Z&N, and D | D0 FC BNE *-2</pre>||Clobbers A, Y, Z&N, and D | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 10,336: | Line 7,458: | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
A2 0B LDX #11 | |||
EA | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | |||
|- | |||
|<pre>EA ... NOP × 3 | |||
A0 0B LDY #11 | A0 0B LDY #11 | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
Line 10,374: | Line 7,492: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 15</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|18 bytes | !colspan="2"|18 bytes | ||
Line 10,396: | Line 7,500: | ||
A9 09 LDA #$09 ;hides 'ORA #$EA' | A9 09 LDA #$09 ;hides 'ORA #$EA' | ||
EA NOP ;first loop only | EA NOP ;first loop only | ||
EA | EA ... NOP × 11 | ||
10 F1 BPL *-13</pre>||Clobbers A, and Z&N | 10 F1 BPL *-13</pre>||Clobbers A, and Z&N | ||
|- | |- | ||
Line 10,412: | Line 7,506: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 5 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N | ||
|- | |||
!colspan="2"|31 bytes | |||
|- | |||
|<pre>EA ... NOP × 31</pre>||No requirements | |||
|- | |- | ||
|} | |} | ||
Line 10,458: | Line 7,548: | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |||
|<pre>08 PHP | |||
A0 0B LDY #11 | |||
88 DEY | |||
D0 FB BNE *-3 | |||
28 PLP</pre>||Clobbers Y; and writes in stack | |||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 10,464: | Line 7,560: | ||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers X; and writes in stack | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>A9 0A LDA #$0A ;hides 'ASL A' | |<pre>A9 0A LDA #$0A ;hides 'ASL A' | ||
Line 10,480: | Line 7,570: | ||
D0 F9 BNE *-5</pre>||Clobbers A, Z&N, C, and V | D0 F9 BNE *-5</pre>||Clobbers A, Z&N, C, and V | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 2 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
18 CLC | 18 CLC | ||
Line 10,533: | Line 7,622: | ||
|<pre>A9 09 LDA #$09 ;hides 'ORA #$EA' | |<pre>A9 09 LDA #$09 ;hides 'ORA #$EA' | ||
EA NOP ;first loop only | EA NOP ;first loop only | ||
00 00 | 00 00... BRK 0 × 2 | ||
10 F8 BPL *-6</pre>||Clobbers A, and Z&N; requires dummy interrupt handler; and writes in stack | 10 F8 BPL *-6</pre>||Clobbers A, and Z&N; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
Line 10,546: | Line 7,634: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
48 | 48 ... PHA × 2 | ||
A9 E9 LDA #$E9 ;hides 'SBC #$0A' | A9 E9 LDA #$E9 ;hides 'SBC #$0A' | ||
0A ASL A ;first loop only | 0A ASL A ;first loop only | ||
Line 10,553: | Line 7,640: | ||
68 PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack | 68 PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
A9 2A LDA #$2A ;hides 'ROL A' | A9 2A LDA #$2A ;hides 'ROL A' | ||
00 00 BRK 0 | 00 00 BRK 0 | ||
Line 10,572: | Line 7,658: | ||
18 CLC | 18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 2 | ||
18 CLC | 18 CLC | ||
10 FA BPL *-4 | 10 FA BPL *-4 | ||
Line 10,581: | Line 7,666: | ||
18 CLC | 18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 2 | ||
18 CLC | 18 CLC | ||
10 FA BPL *-4 | 10 FA BPL *-4 | ||
Line 10,601: | Line 7,685: | ||
!colspan="2"|16 bytes | !colspan="2"|16 bytes | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 15 | ||
48 PHA</pre>||Clobbers A, S, and Z&N | 48 PHA</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|18 bytes | !colspan="2"|18 bytes | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA \ × 9 | ||
48 PHA /</pre>||Clobbers A, and Z&N | |||
48 PHA | |||
|- | |- | ||
!colspan="2"|22 bytes | !colspan="2"|22 bytes | ||
|- | |- | ||
|<pre>C5 00 CMP $00 | |<pre>C5 00 CMP $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 5 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | ||
|- | |- | ||
|<pre>24 00 BIT $00 | |<pre>24 00 BIT $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 5 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | ||
|- | |- | ||
|<pre>E6 xx INC @zptemp | |<pre>E6 xx INC @zptemp | ||
26 00 ROL $00 | 26 00 ROL $00 | ||
66 00 ROR $00 | 66 00 ROR $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 4 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | ||
|- | |- | ||
|<pre>04 00 NOP $00 | |<pre>04 00 NOP $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 5 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|23 bytes | !colspan="2"|23 bytes | ||
|- | |- | ||
|<pre>4C xx xx JMP *+3 | |<pre>4C xx xx JMP *+3 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 5 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | ||
|- | |||
!colspan="2"|32 bytes | |||
|- | |- | ||
|} | |<pre>18 ... CLC × 30 | ||
90 00 BCC *+2</pre>||Clobbers C | |||
|- | |||
|<pre>B8 ... CLV × 30 | |||
50 00 BVC *+2</pre>||Clobbers V | |||
|- | |||
|<pre>EA ... NOP × 30 | |||
85 xx STA @zptemp</pre>||Requires @zptemp | |||
|- | |||
|<pre>EA ... NOP × 30 | |||
04 00 NOP $00</pre>||Requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|33 bytes | |||
|- | |||
|<pre>EA ... NOP × 30 | |||
4C xx xx JMP *+3</pre>||Not relocatable code | |||
|- | |||
|} | |||
Line 10,729: | Line 7,764: | ||
|<pre>A9 E9 LDA #$E9 ;hides 'SBC #$2A' | |<pre>A9 E9 LDA #$E9 ;hides 'SBC #$2A' | ||
2A ROL A ;first loop only | 2A ROL A ;first loop only | ||
EA | EA ... NOP × 2 | ||
B0 FA BCS *-4</pre>||Clobbers A, Z&N, C, and V | B0 FA BCS *-4</pre>||Clobbers A, Z&N, C, and V | ||
|- | |- | ||
|<pre>A9 0A LDA #$0A ;hides 'ASL A' | |<pre>A9 0A LDA #$0A ;hides 'ASL A' | ||
48 | 48 ... PHA × 2 | ||
18 CLC | 18 CLC | ||
10 FA BPL *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack | 10 FA BPL *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack | ||
Line 10,759: | Line 7,792: | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A2 08 LDX #8 | |||
EA NOP | EA NOP | ||
CA DEX | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A0 08 LDY #8 | |||
EA NOP | EA NOP | ||
88 DEY | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 10,779: | Line 7,812: | ||
68 PLA</pre>||Clobbers Z&N, and C; and writes in stack | 68 PLA</pre>||Clobbers Z&N, and C; and writes in stack | ||
|- | |- | ||
|<pre>A9 0A LDA #$0A ;hides 'ASL A' | |<pre>EA NOP | ||
68 PLA | |||
48 PHA | |||
A9 0A LDA #$0A ;hides 'ASL A' | |||
18 CLC | 18 CLC | ||
D0 FC BNE *-2</pre>||Clobbers A, Z&N, and C | |||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
Line 10,808: | Line 7,841: | ||
!colspan="2"|16 bytes | !colspan="2"|16 bytes | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 16</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|19 bytes | !colspan="2"|19 bytes | ||
Line 10,832: | Line 7,850: | ||
A9 09 LDA #$09 ;hides 'ORA #$EA' | A9 09 LDA #$09 ;hides 'ORA #$EA' | ||
EA NOP ;first loop only | EA NOP ;first loop only | ||
EA | EA ... NOP × 11 | ||
10 F1 BPL *-13</pre>||Clobbers A, and Z&N | 10 F1 BPL *-13</pre>||Clobbers A, and Z&N | ||
|- | |- | ||
!colspan="2"|22 bytes | !colspan="2"|22 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
36 00 ROL $00,X \ × 5 | |||
36 00 ROL $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N | ||
76 00 ROR $00,X | |- | ||
!colspan="2"|32 bytes | |||
|- | |||
|<pre>EA ... NOP × 32</pre>||No requirements | |||
|- | |- | ||
|} | |} | ||
Line 10,871: | Line 7,874: | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |||
|<pre>A0 08 LDY #8 | |||
48 PHA | |||
88 DEY | |||
D0 FA BNE *-4</pre>||Clobbers Y, S, and Z&N; and writes in stack | |||
|- | |- | ||
|<pre>A2 08 LDX #8 | |<pre>A2 08 LDX #8 | ||
Line 10,876: | Line 7,884: | ||
CA DEX | CA DEX | ||
D0 FA BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack | D0 FA BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA | ||
Line 10,899: | Line 7,902: | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
EA | A2 0C LDX #12 | ||
CA DEX | |||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
A0 0C LDY #12 | A0 0C LDY #12 | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>18 CLC | |<pre>18 CLC | ||
Line 10,963: | Line 7,964: | ||
D0 F9 BNE *-5</pre>||Clobbers A, Z&N, C, and V | D0 F9 BNE *-5</pre>||Clobbers A, Z&N, C, and V | ||
|- | |- | ||
|<pre>00 00 | |<pre>00 00... BRK 0 × 2 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
D0 FD BNE *-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack | D0 FD BNE *-1</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack | ||
Line 10,975: | Line 7,975: | ||
28 PLP</pre>||Clobbers A, and S; and writes in stack | 28 PLP</pre>||Clobbers A, and S; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
18 CLC | 18 CLC | ||
Line 10,983: | Line 7,982: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 2 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
18 CLC | 18 CLC | ||
Line 11,022: | Line 8,020: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 15 | ||
48 PHA</pre>||Clobbers A, S, and Z&N | 48 PHA</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
Line 11,042: | Line 8,026: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 PLA | 68 PLA \ × 9 | ||
48 PHA /</pre>||Clobbers A, and Z&N | |||
48 PHA | |||
|- | |- | ||
!colspan="2"|22 bytes | !colspan="2"|22 bytes | ||
|- | |- | ||
|<pre>E6 xx INC @zptemp | |<pre>E6 xx INC @zptemp | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 5 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | ||
|- | |- | ||
!colspan="2"|23 bytes | !colspan="2"|23 bytes | ||
Line 11,079: | Line 8,039: | ||
|<pre>EA NOP | |<pre>EA NOP | ||
C5 00 CMP $00 | C5 00 CMP $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 5 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
24 00 BIT $00 | 24 00 BIT $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 5 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
04 00 NOP $00 | 04 00 NOP $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 5 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|24 bytes | !colspan="2"|24 bytes | ||
Line 11,120: | Line 8,056: | ||
|<pre>EA NOP | |<pre>EA NOP | ||
4C xx xx JMP *+3 | 4C xx xx JMP *+3 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 5 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | ||
|- | |||
!colspan="2"|33 bytes | |||
|- | |||
|<pre>18 ... CLC × 31 | |||
90 00 BCC *+2</pre>||Clobbers C | |||
|- | |||
|<pre>B8 ... CLV × 31 | |||
50 00 BVC *+2</pre>||Clobbers V | |||
|- | |||
|<pre>EA ... NOP × 31 | |||
85 xx STA @zptemp</pre>||Requires @zptemp | |||
|- | |||
|<pre>EA ... NOP × 31 | |||
04 00 NOP $00</pre>||Requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|34 bytes | |||
|- | |||
|<pre>EA ... NOP × 31 | |||
4C xx xx JMP *+3</pre>||Not relocatable code | |||
|- | |- | ||
|} | |} | ||
Line 11,137: | Line 8,084: | ||
{| class="wikitable testtable" | {| class="wikitable testtable" | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |||
|<pre>A0 0D LDY #13 | |||
88 DEY | |||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | |||
|- | |- | ||
|<pre>A2 0D LDX #13 | |<pre>A2 0D LDX #13 | ||
CA DEX | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | D0 FB BNE *-3</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>A9 LDA #39 | |<pre>A9 LDA #39 | ||
Line 11,209: | Line 8,156: | ||
28 PLP</pre>||Clobbers X, and S; and writes in stack | 28 PLP</pre>||Clobbers X, and S; and writes in stack | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 2 | ||
48 PHA | 48 PHA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
Line 11,237: | Line 8,183: | ||
28 PLP</pre>||Clobbers X; and writes in stack | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre> | |<pre>EA ... NOP × 2 | ||
68 PLA | |||
48 PHA | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
18 CLC | 18 CLC | ||
D0 FC BNE *-2</pre>||Clobbers A, Z&N, and C | |||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 11,277: | Line 8,222: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 16</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|19 bytes | !colspan="2"|19 bytes | ||
Line 11,300: | Line 8,230: | ||
A9 09 LDA #$09 ;hides 'ORA #$EA' | A9 09 LDA #$09 ;hides 'ORA #$EA' | ||
EA NOP ;first loop only | EA NOP ;first loop only | ||
EA | EA ... NOP × 12 | ||
10 F0 BPL *-14</pre>||Clobbers A, and Z&N | 10 F0 BPL *-14</pre>||Clobbers A, and Z&N | ||
|- | |- | ||
!colspan="2"|23 bytes | !colspan="2"|23 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
36 00 ROL $00,X \ × 5 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N | |||
36 00 ROL $00,X | |- | ||
76 00 ROR $00,X | !colspan="2"|33 bytes | ||
|- | |||
|<pre>EA ... NOP × 33</pre>||No requirements | |||
|- | |- | ||
|} | |} | ||
Line 11,361: | Line 8,274: | ||
|- | |- | ||
|<pre>A2 06 LDX #6 | |<pre>A2 06 LDX #6 | ||
48 | 48 ... PHA × 2 | ||
CA DEX | CA DEX | ||
D0 F9 BNE *-5</pre>||Clobbers X, S, and Z&N; and writes in stack | D0 F9 BNE *-5</pre>||Clobbers X, S, and Z&N; and writes in stack | ||
|- | |- | ||
|<pre>A0 06 LDY #6 | |<pre>A0 06 LDY #6 | ||
48 | 48 ... PHA × 2 | ||
88 DEY | 88 DEY | ||
D0 F9 BNE *-5</pre>||Clobbers Y, S, and Z&N; and writes in stack | D0 F9 BNE *-5</pre>||Clobbers Y, S, and Z&N; and writes in stack | ||
|- | |||
|<pre>A0 06 LDY #6 | |||
EA NOP | |||
68 PLA | |||
88 DEY | |||
D0 F9 BNE *-5</pre>||Clobbers A, Y, S, and Z&N | |||
|- | |- | ||
|<pre>A2 06 LDX #6 | |<pre>A2 06 LDX #6 | ||
Line 11,377: | Line 8,294: | ||
CA DEX | CA DEX | ||
D0 F9 BNE *-5</pre>||Clobbers A, X, S, and Z&N | D0 F9 BNE *-5</pre>||Clobbers A, X, S, and Z&N | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA | ||
Line 11,420: | Line 8,331: | ||
|<pre>18 CLC | |<pre>18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 3 | ||
90 FA BCC *-4</pre>||Clobbers A, Z&N, and C | 90 FA BCC *-4</pre>||Clobbers A, Z&N, and C | ||
|- | |- | ||
Line 11,435: | Line 8,344: | ||
AA TAX</pre>||Clobbers A, and Z&N; and writes in stack | AA TAX</pre>||Clobbers A, and Z&N; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
A2 0B LDX #11 | A2 0B LDX #11 | ||
Line 11,443: | Line 8,351: | ||
28 PLP</pre>||Clobbers X; and writes in stack | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
A0 0B LDY #11 | A0 0B LDY #11 | ||
Line 11,474: | Line 8,381: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
48 | 48 ... PHA × 2 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
18 CLC | 18 CLC | ||
Line 11,517: | Line 8,423: | ||
!colspan="2"|17 bytes | !colspan="2"|17 bytes | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 16 | ||
48 PHA</pre>||Clobbers A, S, and Z&N | 48 PHA</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
Line 11,539: | Line 8,430: | ||
|<pre>A9 09 LDA #$09 ;hides 'ORA #$EA' | |<pre>A9 09 LDA #$09 ;hides 'ORA #$EA' | ||
EA NOP ;first loop only | EA NOP ;first loop only | ||
EA | EA ... NOP × 14 | ||
10 EE BPL *-16</pre>||Clobbers A, and Z&N | 10 EE BPL *-16</pre>||Clobbers A, and Z&N | ||
|- | |- | ||
Line 11,559: | Line 8,437: | ||
|<pre>EA NOP | |<pre>EA NOP | ||
E6 xx INC @zptemp | E6 xx INC @zptemp | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 5 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | ||
|- | |||
|- | |||
!colspan="2"|24 bytes | !colspan="2"|24 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
C5 00 CMP $00 | C5 00 CMP $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 5 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
24 00 BIT $00 | 24 00 BIT $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 5 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
04 00 NOP $00 | 04 00 NOP $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 5 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | ||
36 00 ROL $00,X | |- | ||
76 00 ROR $00,X | !colspan="2"|25 bytes | ||
|- | |||
|<pre>EA ... NOP × 2 | |||
4C xx xx JMP *+3 | |||
36 00 ROL $00,X \ × 5 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | |||
|- | |||
!colspan="2"|34 bytes | |||
|- | |||
|<pre>18 ... CLC × 32 | |||
90 00 BCC *+2</pre>||Clobbers C | |||
|- | |||
|<pre>B8 ... CLV × 32 | |||
50 00 BVC *+2</pre>||Clobbers V | |||
|- | |||
|<pre>EA ... NOP × 32 | |||
85 xx STA @zptemp</pre>||Requires @zptemp | |||
|- | |||
|<pre>EA ... NOP × 32 | |||
04 00 NOP $00</pre>||Requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|35 bytes | |||
|- | |||
|<pre>EA ... NOP × 32 | |||
4C xx xx JMP *+3</pre>||Not relocatable code | |||
|- | |- | ||
|} | |} | ||
Line 11,702: | Line 8,571: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 2 | ||
48 PHA | 48 PHA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
Line 11,745: | Line 8,613: | ||
48 PHA | 48 PHA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 2 | ||
18 CLC | 18 CLC | ||
10 FA BPL *-4 | 10 FA BPL *-4 | ||
Line 11,754: | Line 8,621: | ||
!colspan="2"|17 bytes | !colspan="2"|17 bytes | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 17</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|20 bytes | !colspan="2"|20 bytes | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA \ × 8 | ||
48 PHA / | |||
48 PHA | |||
36 00 ROL $00,X | 36 00 ROL $00,X | ||
76 00 ROR $00,X</pre>||Clobbers A, and Z&N | 76 00 ROR $00,X</pre>||Clobbers A, and Z&N | ||
Line 11,795: | Line 8,632: | ||
!colspan="2"|24 bytes | !colspan="2"|24 bytes | ||
|- | |- | ||
|<pre>26 00 ROL $00 | |<pre>26 00 ROL $00 \ × 2 | ||
66 00 ROR $00 | 66 00 ROR $00 / | ||
36 00 ROL $00,X \ × 4 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N | |||
36 00 ROL $00,X | |- | ||
76 00 ROR $00,X | !colspan="2"|34 bytes | ||
|- | |||
|<pre>EA ... NOP × 34</pre>||No requirements | |||
|- | |||
|} | |||
|- | |||
|} | |||
Line 11,901: | Line 8,734: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 16 | ||
48 PHA</pre>||Clobbers A, S, and Z&N | 48 PHA</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
Line 11,924: | Line 8,742: | ||
A9 09 LDA #$09 ;hides 'ORA #$EA' | A9 09 LDA #$09 ;hides 'ORA #$EA' | ||
EA NOP ;first loop only | EA NOP ;first loop only | ||
EA | EA ... NOP × 14 | ||
10 EE BPL *-16</pre>||Clobbers A, and Z&N | 10 EE BPL *-16</pre>||Clobbers A, and Z&N | ||
|- | |- | ||
!colspan="2"|24 bytes | !colspan="2"|24 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
E6 xx INC @zptemp | E6 xx INC @zptemp | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 5 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | ||
36 00 ROL $00,X | |- | ||
76 00 ROR $00,X | !colspan="2"|25 bytes | ||
36 00 ROL $00,X | |- | ||
76 00 ROR $00,X | |<pre>EA ... NOP × 3 | ||
36 00 ROL $00,X | C5 00 CMP $00 | ||
76 00 ROR $00,X | 36 00 ROL $00,X \ × 5 | ||
36 00 ROL $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | ||
76 00 ROR $00,X</pre>||Clobbers Z&N; and | |- | ||
|<pre>EA ... NOP × 3 | |||
24 00 BIT $00 | |||
36 00 ROL $00,X \ × 5 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | |||
|- | |||
|<pre>EA ... NOP × 3 | |||
04 00 NOP $00 | |||
36 00 ROL $00,X \ × 5 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|26 bytes | |||
|- | |||
|<pre>EA ... NOP × 3 | |||
4C xx xx JMP *+3 | |||
36 00 ROL $00,X \ × 5 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | |||
|- | |||
!colspan="2"|35 bytes | |||
|- | |||
|<pre>18 ... CLC × 33 | |||
90 00 BCC *+2</pre>||Clobbers C | |||
|- | |||
|<pre>B8 ... CLV × 33 | |||
50 00 BVC *+2</pre>||Clobbers V | |||
|- | |||
|<pre>EA ... NOP × 33 | |||
85 xx STA @zptemp</pre>||Requires @zptemp | |||
|- | |||
|<pre>EA ... NOP × 33 | |||
04 00 NOP $00</pre>||Requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|36 bytes | |||
|- | |||
|<pre>EA ... NOP × 33 | |||
4C xx xx JMP *+3</pre>||Not relocatable code | |||
|- | |- | ||
|} | |} | ||
Line 11,967: | Line 8,806: | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |||
|<pre>68 PLA | |||
A2 0D LDX #13 | |||
CA DEX | |||
D0 FB BNE *-3</pre>||Clobbers A, X, S, and Z&N | |||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA | ||
Line 11,972: | Line 8,816: | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers A, Y, S, and Z&N | D0 FB BNE *-3</pre>||Clobbers A, Y, S, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
A0 0D LDY #13 | A0 0D LDY #13 | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
A2 0D LDX #13 | A2 0D LDX #13 | ||
CA DEX | CA DEX | ||
Line 12,012: | Line 8,849: | ||
|<pre>EA NOP | |<pre>EA NOP | ||
08 PHP | 08 PHP | ||
A0 0C LDY #12 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
08 PHP | 08 PHP | ||
A2 0C LDX #12 | |||
CA DEX | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>20 xx xx JSR @rts15 | |<pre>20 xx xx JSR @rts15 | ||
Line 12,143: | Line 8,980: | ||
A9 09 LDA #$09 ;hides 'ORA #$EA' | A9 09 LDA #$09 ;hides 'ORA #$EA' | ||
EA NOP ;first loop only | EA NOP ;first loop only | ||
00 00 | 00 00... BRK 0 × 2 | ||
10 F8 BPL *-6 | 10 F8 BPL *-6 | ||
68 PLA</pre>||Clobbers Z&N; requires dummy interrupt handler; and writes in stack | 68 PLA</pre>||Clobbers Z&N; requires dummy interrupt handler; and writes in stack | ||
Line 12,164: | Line 9,000: | ||
18 CLC | 18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 2 | ||
18 CLC | 18 CLC | ||
10 FA BPL *-4 | 10 FA BPL *-4 | ||
Line 12,174: | Line 9,009: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 17</pre>||Clobbers A, S, and Z&N | ||
|- | |||
|- | |||
!colspan="2"|20 bytes | !colspan="2"|20 bytes | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA \ × 10 | ||
48 PHA /</pre>||Clobbers A, and Z&N | |||
48 PHA | |||
|- | |- | ||
!colspan="2"|24 bytes | !colspan="2"|24 bytes | ||
Line 12,219: | Line 9,020: | ||
|<pre>26 00 ROL $00 | |<pre>26 00 ROL $00 | ||
66 00 ROR $00 | 66 00 ROR $00 | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 5 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N | ||
|- | |||
!colspan="2"|35 bytes | |||
|- | |||
|<pre>EA ... NOP × 35</pre>||No requirements | |||
|- | |- | ||
|} | |} | ||
Line 12,236: | Line 9,033: | ||
{| class="wikitable testtable" | {| class="wikitable testtable" | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |||
|<pre>A2 0E LDX #14 | |||
CA DEX | |||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | |||
|- | |- | ||
|<pre>A0 0E LDY #14 | |<pre>A0 0E LDY #14 | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>A9 LDA #44 | |<pre>A9 LDA #44 | ||
Line 12,288: | Line 9,085: | ||
A9 E9 LDA #$E9 ;hides 'SBC #$2A' | A9 E9 LDA #$E9 ;hides 'SBC #$2A' | ||
2A ROL A ;first loop only | 2A ROL A ;first loop only | ||
EA | EA ... NOP × 2 | ||
B0 FA BCS *-4 | B0 FA BCS *-4 | ||
28 PLP</pre>||Clobbers A; and writes in stack | 28 PLP</pre>||Clobbers A; and writes in stack | ||
Line 12,296: | Line 9,092: | ||
A9 E9 LDA #$E9 ;hides 'SBC #$2A' | A9 E9 LDA #$E9 ;hides 'SBC #$2A' | ||
2A ROL A ;first loop only | 2A ROL A ;first loop only | ||
EA | EA ... NOP × 2 | ||
B0 FA BCS *-4 | B0 FA BCS *-4 | ||
68 PLA</pre>||Clobbers Z&N, C, and V; and writes in stack | 68 PLA</pre>||Clobbers Z&N, C, and V; and writes in stack | ||
Line 12,321: | Line 9,116: | ||
!colspan="2"|18 bytes | !colspan="2"|18 bytes | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 17 | ||
48 PHA</pre>||Clobbers A, S, and Z&N | 48 PHA</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
Line 12,344: | Line 9,123: | ||
|<pre>A9 09 LDA #$09 ;hides 'ORA #$EA' | |<pre>A9 09 LDA #$09 ;hides 'ORA #$EA' | ||
EA NOP ;first loop only | EA NOP ;first loop only | ||
EA | EA ... NOP × 15 | ||
10 ED BPL *-17</pre>||Clobbers A, and Z&N | 10 ED BPL *-17</pre>||Clobbers A, and Z&N | ||
|- | |- | ||
!colspan="2"|25 bytes | |||
|- | |||
|<pre>EA ... NOP × 3 | |||
E6 xx INC @zptemp | |||
36 00 ROL $00,X \ × 5 | |||
!colspan="2"|5 | 76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | ||
|- | |- | ||
| | !colspan="2"|26 bytes | ||
|- | |- | ||
|<pre>C5 00 CMP $00 | |||
26 00 ROL $00 \ × 2 | |||
66 00 ROR $00 / | |||
36 00 ROL $00,X \ × 4 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | |||
|- | |- | ||
|<pre>48 PHA | |<pre>24 00 BIT $00 | ||
26 00 ROL $00 \ × 2 | |||
66 00 ROR $00 / | |||
36 00 ROL $00,X \ × 4 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | |||
|- | |||
|<pre>04 00 NOP $00 | |||
26 00 ROL $00 \ × 2 | |||
66 00 ROR $00 / | |||
36 00 ROL $00,X \ × 4 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|27 bytes | |||
|- | |||
|<pre>4C xx xx JMP *+3 | |||
26 00 ROL $00 \ × 2 | |||
66 00 ROR $00 / | |||
36 00 ROL $00,X \ × 4 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | |||
|- | |||
!colspan="2"|36 bytes | |||
|- | |||
|<pre>18 ... CLC × 34 | |||
90 00 BCC *+2</pre>||Clobbers C | |||
|- | |||
|<pre>B8 ... CLV × 34 | |||
50 00 BVC *+2</pre>||Clobbers V | |||
|- | |||
|<pre>EA ... NOP × 34 | |||
85 xx STA @zptemp</pre>||Requires @zptemp | |||
|- | |||
|<pre>EA ... NOP × 34 | |||
04 00 NOP $00</pre>||Requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|37 bytes | |||
|- | |||
|<pre>EA ... NOP × 34 | |||
4C xx xx JMP *+3</pre>||Not relocatable code | |||
|- | |||
|} | |||
=== 72 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>A9 LDA #45 | |||
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks | |||
|- | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>48 PHA | |||
A0 88 LDY #136 ;hides 'DEY' | A0 88 LDY #136 ;hides 'DEY' | ||
EA NOP | EA NOP | ||
Line 12,395: | Line 9,214: | ||
D0 FC BNE *-2</pre>||Clobbers A, X, Z&N, and C | D0 FC BNE *-2</pre>||Clobbers A, X, Z&N, and C | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
A2 0D LDX #13 | A2 0D LDX #13 | ||
CA DEX | CA DEX | ||
Line 12,419: | Line 9,237: | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
A2 0D LDX #13 | A2 0D LDX #13 | ||
CA DEX | CA DEX | ||
Line 12,454: | Line 9,270: | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre> | |<pre>98 TYA | ||
48 PHA | 48 PHA | ||
A0 0C LDY #12 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
A8 TAY</pre>||Clobbers A, and Z&N; and writes in stack | |||
|- | |||
|<pre>08 PHP | |||
A0 08 LDY #8 | |||
C5 00 CMP $00 | |||
88 DEY | |||
D0 F9 BNE *-5 | |||
28 PLP</pre>||Clobbers Y; and writes in stack | |||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 12,469: | Line 9,292: | ||
28 PLP</pre>||Clobbers X; and writes in stack | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>EA ... NOP × 2 | |||
|<pre>EA | |||
38 SEC | 38 SEC | ||
A9 0D LDA #13 | A9 0D LDA #13 | ||
Line 12,571: | Line 9,386: | ||
68 PLA</pre>||Clobbers Z&N, C, and V; and writes in stack | 68 PLA</pre>||Clobbers Z&N, C, and V; and writes in stack | ||
|- | |- | ||
|<pre>00 00 | |<pre>00 00... BRK 0 × 2 | ||
48 PHA | 48 PHA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
Line 12,610: | Line 9,424: | ||
!colspan="2"|18 bytes | !colspan="2"|18 bytes | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 18</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|21 bytes | !colspan="2"|21 bytes | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 PLA | 68 PLA \ × 10 | ||
48 PHA /</pre>||Clobbers A, and Z&N | |||
48 PHA | |||
|- | |- | ||
!colspan="2"|24 bytes | !colspan="2"|24 bytes | ||
|- | |- | ||
|<pre>36 00 ROL $00,X | |<pre>36 00 ROL $00,X \ × 6 | ||
76 00 ROR $00,X | 76 00 ROR $00,X /</pre>||Clobbers Z&N | ||
|- | |||
!colspan="2"|36 bytes | |||
36 | |- | ||
|<pre>EA ... NOP × 36</pre>||No requirements | |||
36 | |||
|- | |- | ||
|} | |} | ||
Line 12,679: | Line 9,452: | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |||
|<pre>EA NOP | |||
A0 0E LDY #14 | |||
88 DEY | |||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | |||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 12,684: | Line 9,462: | ||
CA DEX | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | D0 FB BNE *-3</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>38 SEC | |<pre>38 SEC | ||
Line 12,734: | Line 9,507: | ||
28 PLP</pre>||Clobbers A, and S; requires @zptemp; and writes in stack | 28 PLP</pre>||Clobbers A, and S; requires @zptemp; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
85 xx STA @zptemp | 85 xx STA @zptemp | ||
Line 12,748: | Line 9,520: | ||
28 PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack | 28 PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
04 00 NOP $00 | 04 00 NOP $00 | ||
Line 12,776: | Line 9,547: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 17 | ||
48 PHA</pre>||Clobbers A, S, and Z&N | 48 PHA</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
Line 12,800: | Line 9,555: | ||
A9 09 LDA #$09 ;hides 'ORA #$EA' | A9 09 LDA #$09 ;hides 'ORA #$EA' | ||
EA NOP ;first loop only | EA NOP ;first loop only | ||
EA | EA ... NOP × 15 | ||
10 ED BPL *-17</pre>||Clobbers A, and Z&N | 10 ED BPL *-17</pre>||Clobbers A, and Z&N | ||
|- | |||
!colspan="2"|26 bytes | |||
|- | |||
|<pre>C5 00 CMP $00 | |||
26 00 ROL $00 | |||
66 00 ROR $00 | |||
36 00 ROL $00,X \ × 5 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | |||
|- | |||
|<pre>24 00 BIT $00 | |||
26 00 ROL $00 | |||
66 00 ROR $00 | |||
36 00 ROL $00,X \ × 5 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | |||
|- | |||
|<pre>E6 xx INC @zptemp | |||
26 00 ROL $00 \ × 2 | |||
66 00 ROR $00 / | |||
36 00 ROL $00,X \ × 4 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | |||
|- | |||
|<pre>04 00 NOP $00 | |||
26 00 ROL $00 | |||
66 00 ROR $00 | |||
36 00 ROL $00,X \ × 5 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|27 bytes | |||
|- | |||
|<pre>4C xx xx JMP *+3 | |||
26 00 ROL $00 | |||
66 00 ROR $00 | |||
36 00 ROL $00,X \ × 5 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | |||
|- | |||
!colspan="2"|37 bytes | |||
|- | |||
|<pre>18 ... CLC × 35 | |||
90 00 BCC *+2</pre>||Clobbers C | |||
|- | |||
|<pre>B8 ... CLV × 35 | |||
50 00 BVC *+2</pre>||Clobbers V | |||
|- | |||
|<pre>EA ... NOP × 35 | |||
85 xx STA @zptemp</pre>||Requires @zptemp | |||
|- | |||
|<pre>EA ... NOP × 35 | |||
04 00 NOP $00</pre>||Requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|38 bytes | |||
|- | |||
|<pre>EA ... NOP × 35 | |||
4C xx xx JMP *+3</pre>||Not relocatable code | |||
|- | |- | ||
|} | |} | ||
Line 12,851: | Line 9,645: | ||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>A9 0A LDA #$0A ;hides 'ASL A' | |<pre>48 PHA | ||
A9 0A LDA #$0A ;hides 'ASL A' | |||
EA NOP | |||
18 CLC | |||
D0 FB BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack | |||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 12,894: | Line 9,688: | ||
|<pre>48 PHA | |<pre>48 PHA | ||
08 PHP | 08 PHP | ||
A2 09 LDX #9 | |||
EA NOP | EA NOP | ||
CA DEX | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers X, and S; and writes in stack | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
08 PHP | 08 PHP | ||
A0 09 LDY #9 | |||
EA NOP | EA NOP | ||
88 DEY | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers Y, and S; and writes in stack | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA | ||
Line 12,934: | Line 9,728: | ||
18 CLC | 18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 3 | ||
90 FA BCC *-4 | 90 FA BCC *-4 | ||
28 PLP</pre>||Clobbers A; and writes in stack | 28 PLP</pre>||Clobbers A; and writes in stack | ||
Line 12,951: | Line 9,743: | ||
08 PHP | 08 PHP | ||
A0 08 LDY #8 | A0 08 LDY #8 | ||
C5 00 CMP $00 | |||
88 DEY | 88 DEY | ||
D0 F9 BNE *-5 | D0 F9 BNE *-5 | ||
Line 12,959: | Line 9,751: | ||
18 CLC | 18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 3 | ||
90 FA BCC *-4 | 90 FA BCC *-4 | ||
68 PLA</pre>||Clobbers Z&N, and C; and writes in stack | 68 PLA</pre>||Clobbers Z&N, and C; and writes in stack | ||
Line 13,022: | Line 9,812: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 18</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|21 bytes | !colspan="2"|21 bytes | ||
Line 13,047: | Line 9,820: | ||
A9 09 LDA #$09 ;hides 'ORA #$EA' | A9 09 LDA #$09 ;hides 'ORA #$EA' | ||
EA NOP ;first loop only | EA NOP ;first loop only | ||
EA | EA ... NOP × 14 | ||
10 EE BPL *-16</pre>||Clobbers A, and Z&N | 10 EE BPL *-16</pre>||Clobbers A, and Z&N | ||
|- | |||
!colspan="2"|25 bytes | |||
|- | |||
|<pre>EA NOP | |||
36 00 ROL $00,X \ × 6 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N | |||
|- | |||
!colspan="2"|37 bytes | |||
|- | |||
|<pre>EA ... NOP × 37</pre>||No requirements | |||
|- | |- | ||
|} | |} | ||
Line 13,074: | Line 9,844: | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |||
|<pre>68 PLA | |||
A0 0E LDY #14 | |||
88 DEY | |||
D0 FB BNE *-3</pre>||Clobbers A, Y, S, and Z&N | |||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA | ||
Line 13,080: | Line 9,855: | ||
D0 FB BNE *-3</pre>||Clobbers A, X, S, and Z&N | D0 FB BNE *-3</pre>||Clobbers A, X, S, and Z&N | ||
|- | |- | ||
| | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>EA ... NOP × 2 | |||
A2 0E LDX #14 | |||
CA DEX | |||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | |||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
A0 0E LDY #14 | A0 0E LDY #14 | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA | ||
Line 13,137: | Line 9,905: | ||
28 PLP</pre>||Clobbers Y; and writes in stack | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 2 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA NOP | EA NOP | ||
Line 13,184: | Line 9,951: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
48 | 48 ... PHA × 2 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
04 00 NOP $00 | 04 00 NOP $00 | ||
Line 13,205: | Line 9,971: | ||
!colspan="2"|19 bytes | !colspan="2"|19 bytes | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 18 | ||
48 PHA</pre>||Clobbers A, S, and Z&N | 48 PHA</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
Line 13,229: | Line 9,978: | ||
|<pre>A9 09 LDA #$09 ;hides 'ORA #$EA' | |<pre>A9 09 LDA #$09 ;hides 'ORA #$EA' | ||
EA NOP ;first loop only | EA NOP ;first loop only | ||
EA | EA ... NOP × 16 | ||
10 EC BPL *-18</pre>||Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|26 bytes | |||
|- | |||
|<pre>C5 00 CMP $00 | |||
36 00 ROL $00,X \ × 6 | |||
EA | 76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | ||
|- | |||
|<pre>24 00 BIT $00 | |||
EA | 36 00 ROL $00,X \ × 6 | ||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | |||
|- | |||
|<pre>E6 xx INC @zptemp | |||
26 00 ROL $00 | |||
EA | 66 00 ROR $00 | ||
36 00 ROL $00,X \ × 5 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | |||
|- | |||
|<pre>04 00 NOP $00 | |||
36 00 ROL $00,X \ × 6 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|27 bytes | |||
|- | |||
|<pre>4C xx xx JMP *+3 | |||
36 00 ROL $00,X \ × 6 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | |||
|- | |||
!colspan="2"|38 bytes | |||
|- | |||
|<pre>18 ... CLC × 36 | |||
90 00 BCC *+2</pre>||Clobbers C | |||
|- | |||
|<pre>B8 ... CLV × 36 | |||
50 00 BVC *+2</pre>||Clobbers V | |||
|- | |||
|<pre>EA ... NOP × 36 | |||
85 xx STA @zptemp</pre>||Requires @zptemp | |||
|- | |||
|<pre>EA ... NOP × 36 | |||
04 00 NOP $00</pre>||Requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|39 bytes | |||
|- | |||
|<pre>EA ... NOP × 36 | |||
4C xx xx JMP *+3</pre>||Not relocatable code | |||
|- | |- | ||
|} | |} | ||
Line 13,253: | Line 10,032: | ||
{| class="wikitable testtable" | {| class="wikitable testtable" | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |||
|<pre>A0 0F LDY #15 | |||
88 DEY | |||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | |||
|- | |- | ||
|<pre>A2 0F LDX #15 | |<pre>A2 0F LDX #15 | ||
CA DEX | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | D0 FB BNE *-3</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>A9 E9 LDA #$E9 ;hides 'SBC #$08' | |<pre>A9 E9 LDA #$E9 ;hides 'SBC #$08' | ||
Line 13,313: | Line 10,092: | ||
28 PLP</pre>||Clobbers X, and S; and writes in stack | 28 PLP</pre>||Clobbers X, and S; and writes in stack | ||
|- | |- | ||
|<pre> | |<pre>EA NOP | ||
48 PHA | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA NOP | |||
18 CLC | |||
D0 FB BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack | |||
|- | |- | ||
|<pre>04 00 NOP $00 | |<pre>04 00 NOP $00 | ||
Line 13,384: | Line 10,163: | ||
!colspan="2"|19 bytes | !colspan="2"|19 bytes | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 19</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|22 bytes | !colspan="2"|22 bytes | ||
Line 13,411: | Line 10,172: | ||
A9 09 LDA #$09 ;hides 'ORA #$EA' | A9 09 LDA #$09 ;hides 'ORA #$EA' | ||
EA NOP ;first loop only | EA NOP ;first loop only | ||
EA | EA ... NOP × 14 | ||
10 EE BPL *-16</pre>||Clobbers A, and Z&N | 10 EE BPL *-16</pre>||Clobbers A, and Z&N | ||
|- | |||
!colspan="2"|26 bytes | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
36 00 ROL $00,X \ × 6 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N | |||
|- | |||
!colspan="2"|38 bytes | |||
|- | |||
|<pre>EA ... NOP × 38</pre>||No requirements | |||
|- | |- | ||
|} | |} | ||
Line 13,439: | Line 10,197: | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
A2 0E LDX #14 | A2 0E LDX #14 | ||
CA DEX | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack | D0 FB BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
A0 0E LDY #14 | A0 0E LDY #14 | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack | D0 FB BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack | ||
|- | |||
|<pre>EA NOP | |||
68 PLA | |||
A0 0E LDY #14 | |||
88 DEY | |||
D0 FB BNE *-3</pre>||Clobbers A, Y, S, and Z&N | |||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 13,456: | Line 10,218: | ||
CA DEX | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers A, X, S, and Z&N | D0 FB BNE *-3</pre>||Clobbers A, X, S, and Z&N | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA | ||
Line 13,481: | Line 10,237: | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
A2 0E LDX #14 | |||
EA | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | |||
|- | |||
|<pre>EA ... NOP × 3 | |||
A0 0E LDY #14 | A0 0E LDY #14 | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>18 CLC | |<pre>18 CLC | ||
Line 13,507: | Line 10,259: | ||
D0 FB BNE *-3</pre>||Clobbers A, S, Z&N, and C | D0 FB BNE *-3</pre>||Clobbers A, S, Z&N, and C | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
38 SEC | 38 SEC | ||
A9 69 LDA #$69 ;hides 'ADC #$5A' | A9 69 LDA #$69 ;hides 'ADC #$5A' | ||
Line 13,516: | Line 10,267: | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre> | |<pre>8C TXA | ||
48 PHA | 48 PHA | ||
A2 0D LDX #13 | |||
CA DEX | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
AA TAX</pre>||Clobbers A, and Z&N; and writes in stack | |||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
A2 0D LDX #13 | A2 0D LDX #13 | ||
Line 13,532: | Line 10,282: | ||
28 PLP</pre>||Clobbers X; and writes in stack | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
A0 0D LDY #13 | A0 0D LDY #13 | ||
Line 13,540: | Line 10,289: | ||
28 PLP</pre>||Clobbers Y; and writes in stack | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 3 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA NOP | EA NOP | ||
Line 13,618: | Line 10,365: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 18 | ||
48 PHA</pre>||Clobbers A, S, and Z&N | 48 PHA</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|22 bytes | !colspan="2"|22 bytes | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA \ × 11 | ||
48 PHA | 48 PHA /</pre>||Clobbers A, and Z&N | ||
|- | |||
!colspan="2"|26 bytes | |||
|- | |||
|<pre>E6 xx INC @zptemp | |||
36 00 ROL $00,X \ × 6 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | |||
|- | |||
!colspan="2"|27 bytes | |||
|- | |||
|<pre>EA NOP | |||
C5 00 CMP $00 | |||
36 00 ROL $00,X \ × 6 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | |||
|- | |||
|<pre>EA NOP | |||
24 00 BIT $00 | |||
36 00 ROL $00,X \ × 6 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | |||
|- | |||
|<pre>EA NOP | |||
04 00 NOP $00 | |||
36 00 ROL $00,X \ × 6 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|28 bytes | |||
|- | |||
|<pre>EA NOP | |||
4C xx xx JMP *+3 | |||
36 00 ROL $00,X \ × 6 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | |||
|- | |||
!colspan="2"|39 bytes | |||
|- | |||
|<pre>18 ... CLC × 37 | |||
90 00 BCC *+2</pre>||Clobbers C | |||
|- | |||
|<pre>B8 ... CLV × 37 | |||
50 00 BVC *+2</pre>||Clobbers V | |||
|- | |||
|<pre>EA ... NOP × 37 | |||
85 xx STA @zptemp</pre>||Requires @zptemp | |||
|- | |||
|<pre>EA ... NOP × 37 | |||
04 00 NOP $00</pre>||Requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|40 bytes | |||
|- | |||
|<pre>EA ... NOP × 37 | |||
4C xx xx JMP *+3</pre>||Not relocatable code | |||
|- | |- | ||
|} | |} | ||
Line 13,691: | Line 10,450: | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |||
|<pre>08 PHP | |||
A0 0E LDY #14 | |||
88 DEY | |||
D0 FB BNE *-3 | |||
28 PLP</pre>||Clobbers Y; and writes in stack | |||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 13,697: | Line 10,462: | ||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers X; and writes in stack | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>38 SEC | |<pre>38 SEC | ||
Line 13,735: | Line 10,494: | ||
68 PLA</pre>||Clobbers Z&N, and C; and writes in stack | 68 PLA</pre>||Clobbers Z&N, and C; and writes in stack | ||
|- | |- | ||
|<pre>A9 0A LDA #$0A ;hides 'ASL A' | |<pre>A9 0A LDA #$0A ;hides 'ASL A' \ × 2 | ||
D0 FD BNE *-1 /</pre>||Clobbers A, Z&N, and C | |||
D0 FD BNE *-1</pre>||Clobbers A, Z&N, and C | |||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
Line 13,755: | Line 10,512: | ||
A9 E9 LDA #$E9 ;hides 'SBC #$2A' | A9 E9 LDA #$E9 ;hides 'SBC #$2A' | ||
2A ROL A ;first loop only | 2A ROL A ;first loop only | ||
EA | EA ... NOP × 2 | ||
B0 FA BCS *-4 | B0 FA BCS *-4 | ||
68 PLA | 68 PLA | ||
Line 13,764: | Line 10,520: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 19</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|22 bytes | !colspan="2"|22 bytes | ||
Line 13,790: | Line 10,528: | ||
A9 09 LDA #$09 ;hides 'ORA #$EA' | A9 09 LDA #$09 ;hides 'ORA #$EA' | ||
EA NOP ;first loop only | EA NOP ;first loop only | ||
EA | EA ... NOP × 15 | ||
10 ED BPL *-17</pre>||Clobbers A, and Z&N | 10 ED BPL *-17</pre>||Clobbers A, and Z&N | ||
|- | |||
!colspan="2"|27 bytes | |||
|- | |||
|<pre>EA ... NOP × 3 | |||
36 00 ROL $00,X \ × 6 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N | |||
|- | |||
!colspan="2"|39 bytes | |||
|- | |||
|<pre>EA ... NOP × 39</pre>||No requirements | |||
|- | |- | ||
|} | |} | ||
Line 13,858: | Line 10,592: | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |||
|<pre>A6 00 LDX $00 | |||
A2 0F LDX #15 | |||
CA DEX | |||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | |||
|- | |- | ||
|<pre>A4 00 LDY $00 | |<pre>A4 00 LDY $00 | ||
Line 13,863: | Line 10,602: | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>A9 0A LDA #$0A ;hides 'ASL A' | |<pre>A9 0A LDA #$0A ;hides 'ASL A' | ||
Line 13,922: | Line 10,656: | ||
28 PLP</pre>||Clobbers A, X, and S; and writes in stack | 28 PLP</pre>||Clobbers A, X, and S; and writes in stack | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 2 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA NOP | EA NOP | ||
Line 13,951: | Line 10,684: | ||
D0 FC BNE *-2</pre>||Clobbers A, Z&N, and C | D0 FC BNE *-2</pre>||Clobbers A, Z&N, and C | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
A2 0D LDX #13 | A2 0D LDX #13 | ||
Line 13,969: | Line 10,701: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
8C TXA | |||
48 PHA | 48 PHA | ||
A2 0D LDX #13 | |||
CA DEX | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
AA TAX</pre>||Clobbers A, and Z&N; and writes in stack | |||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
08 PHP | 08 PHP | ||
A2 0D LDX #13 | A2 0D LDX #13 | ||
Line 14,011: | Line 10,741: | ||
28 PLP</pre>||Clobbers A, and S; and writes in stack | 28 PLP</pre>||Clobbers A, and S; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
08 PHP | 08 PHP | ||
Line 14,023: | Line 10,752: | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
98 TYA | |||
48 PHA | 48 PHA | ||
A0 0C LDY #12 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
A8 TAY | |||
68 PLA</pre>||Clobbers Z&N; and writes in stack | 68 PLA</pre>||Clobbers Z&N; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
38 SEC | 38 SEC | ||
Line 14,073: | Line 10,801: | ||
!colspan="2"|20 bytes | !colspan="2"|20 bytes | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 19 | ||
48 PHA</pre>||Clobbers A, S, and Z&N | 48 PHA</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
Line 14,098: | Line 10,808: | ||
|<pre>A9 09 LDA #$09 ;hides 'ORA #$EA' | |<pre>A9 09 LDA #$09 ;hides 'ORA #$EA' | ||
EA NOP ;first loop only | EA NOP ;first loop only | ||
EA | EA ... NOP × 17 | ||
EA NOP | 10 EB BPL *-19</pre>||Clobbers A, and Z&N | ||
EA | |- | ||
EA | !colspan="2"|27 bytes | ||
EA | |- | ||
|<pre>EA NOP | |||
EA | E6 xx INC @zptemp | ||
36 00 ROL $00,X \ × 6 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | |||
|- | |||
!colspan="2"|28 bytes | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
EA | C5 00 CMP $00 | ||
36 00 ROL $00,X \ × 6 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | |||
EA | |- | ||
|<pre>EA ... NOP × 2 | |||
24 00 BIT $00 | |||
36 00 ROL $00,X \ × 6 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
04 00 NOP $00 | |||
36 00 ROL $00,X \ × 6 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|29 bytes | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
4C xx xx JMP *+3 | |||
36 00 ROL $00,X \ × 6 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | |||
|- | |||
!colspan="2"|40 bytes | |||
|- | |||
|<pre>18 ... CLC × 38 | |||
90 00 BCC *+2</pre>||Clobbers C | |||
|- | |||
|<pre>B8 ... CLV × 38 | |||
50 00 BVC *+2</pre>||Clobbers V | |||
|- | |||
|<pre>EA ... NOP × 38 | |||
85 xx STA @zptemp</pre>||Requires @zptemp | |||
|- | |||
|<pre>EA ... NOP × 38 | |||
04 00 NOP $00</pre>||Requires support for unofficial opcodes | |||
|- | |- | ||
|} | |} | ||
Line 14,240: | Line 10,979: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' \ × 2 | ||
D0 FD BNE *-1 /</pre>||Clobbers A, Z&N, and C | |||
D0 FD BNE *-1</pre>||Clobbers A, Z&N, and C | |||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 14,287: | Line 11,024: | ||
!colspan="2"|20 bytes | !colspan="2"|20 bytes | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 20</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|23 bytes | !colspan="2"|23 bytes | ||
Line 14,315: | Line 11,033: | ||
A9 09 LDA #$09 ;hides 'ORA #$EA' | A9 09 LDA #$09 ;hides 'ORA #$EA' | ||
EA NOP ;first loop only | EA NOP ;first loop only | ||
EA | EA ... NOP × 15 | ||
10 ED BPL *-17</pre>||Clobbers A, and Z&N | 10 ED BPL *-17</pre>||Clobbers A, and Z&N | ||
|- | |||
!colspan="2"|28 bytes | |||
|- | |||
|<pre>26 00 ROL $00 \ × 2 | |||
66 00 ROR $00 / | |||
36 00 ROL $00,X \ × 5 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N | |||
|- | |||
!colspan="2"|40 bytes | |||
|- | |||
|<pre>EA ... NOP × 40</pre>||No requirements | |||
|- | |- | ||
|} | |} | ||
Line 14,468: | Line 11,183: | ||
28 PLP</pre>||Clobbers A, and S; and writes in stack | 28 PLP</pre>||Clobbers A, and S; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA NOP | EA NOP | ||
Line 14,477: | Line 11,191: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 2 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA NOP | EA NOP | ||
Line 14,494: | Line 11,207: | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A5 00 LDA $00 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA NOP | |||
18 CLC | |||
D0 FB BNE *-3 | |||
28 PLP</pre>||Clobbers A; and writes in stack | 28 PLP</pre>||Clobbers A; and writes in stack | ||
|- | |- | ||
|<pre>48 PHA | |<pre>C5 00 CMP $00 | ||
48 PHA | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA NOP | |||
18 CLC | |||
D0 FB BNE *-3 | |||
68 PLA</pre>||Clobbers Z&N, and C; and writes in stack | 68 PLA</pre>||Clobbers Z&N, and C; and writes in stack | ||
|- | |- | ||
Line 14,522: | Line 11,235: | ||
18 CLC | 18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 3 | ||
90 FA BCC *-4 | |||
90 FA BCC *-4 | |||
68 PLA | 68 PLA | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
Line 14,532: | Line 11,243: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 19 | ||
48 PHA</pre>||Clobbers A, S, and Z&N | 48 PHA</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
Line 14,558: | Line 11,251: | ||
A9 09 LDA #$09 ;hides 'ORA #$EA' | A9 09 LDA #$09 ;hides 'ORA #$EA' | ||
EA NOP ;first loop only | EA NOP ;first loop only | ||
EA | EA ... NOP × 17 | ||
10 EB BPL *-19</pre>||Clobbers A, and Z&N | 10 EB BPL *-19</pre>||Clobbers A, and Z&N | ||
|- | |||
!colspan="2"|28 bytes | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
E6 xx INC @zptemp | |||
36 00 ROL $00,X \ × 6 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | |||
|- | |||
!colspan="2"|29 bytes | |||
|- | |||
|<pre>EA ... NOP × 3 | |||
C5 00 CMP $00 | |||
36 00 ROL $00,X \ × 6 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | |||
|- | |||
|<pre>EA ... NOP × 3 | |||
24 00 BIT $00 | |||
36 00 ROL $00,X \ × 6 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | |||
|- | |||
|<pre>EA ... NOP × 3 | |||
04 00 NOP $00 | |||
36 00 ROL $00,X \ × 6 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|30 bytes | |||
|- | |||
|<pre>EA ... NOP × 3 | |||
4C xx xx JMP *+3 | |||
36 00 ROL $00,X \ × 6 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | |||
|- | |- | ||
|} | |} | ||
Line 14,607: | Line 11,315: | ||
|- | |- | ||
|<pre>A2 09 LDX #9 | |<pre>A2 09 LDX #9 | ||
EA | EA ... NOP × 2 | ||
CA DEX | CA DEX | ||
D0 F9 BNE *-5</pre>||Clobbers X, and Z&N | D0 F9 BNE *-5</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>A0 09 LDY #9 | |<pre>A0 09 LDY #9 | ||
EA | EA ... NOP × 2 | ||
88 DEY | 88 DEY | ||
D0 F9 BNE *-5</pre>||Clobbers Y, and Z&N | D0 F9 BNE *-5</pre>||Clobbers Y, and Z&N | ||
Line 14,659: | Line 11,365: | ||
A8 TAY</pre>||Clobbers A, and Z&N; and writes in stack | A8 TAY</pre>||Clobbers A, and Z&N; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
A0 0E LDY #14 | A0 0E LDY #14 | ||
Line 14,667: | Line 11,372: | ||
28 PLP</pre>||Clobbers Y; and writes in stack | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
A2 0E LDX #14 | A2 0E LDX #14 | ||
Line 14,689: | Line 11,393: | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' \ × 2 | ||
D0 FD BNE *-1 /</pre>||Clobbers A, S, Z&N, and C | |||
D0 FD BNE *-1</pre>||Clobbers A, S, Z&N, and C | |||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 14,725: | Line 11,427: | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre> | |<pre>08 PHP | ||
08 PHP | 18 ... CLC × 2 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA NOP | EA NOP | ||
Line 14,734: | Line 11,435: | ||
28 PLP</pre>||Clobbers A; and writes in stack | 28 PLP</pre>||Clobbers A; and writes in stack | ||
|- | |- | ||
|<pre> | |<pre>48 PHA | ||
48 PHA | 18 ... CLC × 2 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA NOP | EA NOP | ||
Line 14,743: | Line 11,443: | ||
68 PLA</pre>||Clobbers Z&N, and C; and writes in stack | 68 PLA</pre>||Clobbers Z&N, and C; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
A9 0A LDA #$0A ;hides 'ASL A' \ × 2 | |||
A9 0A LDA #$0A ;hides 'ASL A' | D0 FD BNE *-1 /</pre>||Clobbers A, Z&N, and C | ||
D0 FD BNE *-1</pre>||Clobbers A, Z&N, and C | |||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
Line 14,764: | Line 11,461: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 20</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|23 bytes | !colspan="2"|23 bytes | ||
Line 14,791: | Line 11,469: | ||
A9 09 LDA #$09 ;hides 'ORA #$EA' | A9 09 LDA #$09 ;hides 'ORA #$EA' | ||
EA NOP ;first loop only | EA NOP ;first loop only | ||
EA | EA ... NOP × 16 | ||
10 EC BPL *-18</pre>||Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|28 bytes | |||
|- | |||
|<pre>26 00 ROL $00 | |||
66 00 ROR $00 | |||
36 00 ROL $00,X \ × 6 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N | |||
10 EC BPL *-18</pre>||Clobbers A, and Z&N | |||
|- | |- | ||
|} | |} | ||
Line 14,893: | Line 11,563: | ||
D0 FB BNE *-3</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack | D0 FB BNE *-3</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 2 | ||
18 | |||
A9 2A LDA #$2A ;hides 'ROL A' | A9 2A LDA #$2A ;hides 'ROL A' | ||
20 xx xx JSR @rts15 | 20 xx xx JSR @rts15 | ||
90 FA BCC *-4</pre>||Clobbers A, Z&N, and C; requires @rts15; and writes in stack | 90 FA BCC *-4</pre>||Clobbers A, Z&N, and C; requires @rts15; and writes in stack | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 2 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
85 xx STA @zptemp | 85 xx STA @zptemp | ||
Line 14,906: | Line 11,574: | ||
D0 FA BNE *-4</pre>||Clobbers A, Z&N, and C; and requires @zptemp | D0 FA BNE *-4</pre>||Clobbers A, Z&N, and C; and requires @zptemp | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 2 | ||
18 | |||
A9 2A LDA #$2A ;hides 'ROL A' | A9 2A LDA #$2A ;hides 'ROL A' | ||
EA NOP | EA NOP | ||
Line 14,913: | Line 11,580: | ||
90 FA BCC *-4</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack | 90 FA BCC *-4</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 3 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA NOP | EA NOP | ||
Line 14,921: | Line 11,586: | ||
D0 FB BNE *-3</pre>||Clobbers A, S, Z&N, and C | D0 FB BNE *-3</pre>||Clobbers A, S, Z&N, and C | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 2 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
04 00 NOP $00 | 04 00 NOP $00 | ||
Line 14,936: | Line 11,600: | ||
28 PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack | 28 PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
38 SEC | 38 SEC | ||
A9 69 LDA #$69 ;hides 'ADC #$5A' | A9 69 LDA #$69 ;hides 'ADC #$5A' | ||
Line 14,986: | Line 11,649: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
48 | 48 ... PHA × 2 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA NOP | EA NOP | ||
Line 15,031: | Line 11,693: | ||
!colspan="2"|21 bytes | !colspan="2"|21 bytes | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 20 | ||
48 PHA</pre>||Clobbers A, S, and Z&N | 48 PHA</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
Line 15,057: | Line 11,700: | ||
|<pre>A9 09 LDA #$09 ;hides 'ORA #$EA' | |<pre>A9 09 LDA #$09 ;hides 'ORA #$EA' | ||
EA NOP ;first loop only | EA NOP ;first loop only | ||
EA | EA ... NOP × 18 | ||
10 EA BPL *-20</pre>||Clobbers A, and Z&N | 10 EA BPL *-20</pre>||Clobbers A, and Z&N | ||
|- | |||
!colspan="2"|29 bytes | |||
|- | |||
|<pre>EA ... NOP × 3 | |||
E6 xx INC @zptemp | |||
36 00 ROL $00,X \ × 6 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | |||
|- | |||
!colspan="2"|30 bytes | |||
|- | |||
|<pre>C5 00 CMP $00 | |||
26 00 ROL $00 \ × 2 | |||
66 00 ROR $00 / | |||
36 00 ROL $00,X \ × 5 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | |||
|- | |||
|<pre>24 00 BIT $00 | |||
26 00 ROL $00 \ × 2 | |||
66 00 ROR $00 / | |||
36 00 ROL $00,X \ × 5 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | |||
|- | |||
|<pre>04 00 NOP $00 | |||
26 00 ROL $00 \ × 2 | |||
66 00 ROR $00 / | |||
36 00 ROL $00,X \ × 5 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|31 bytes | |||
|- | |||
|<pre>4C xx xx JMP *+3 | |||
26 00 ROL $00 \ × 2 | |||
66 00 ROR $00 / | |||
36 00 ROL $00,X \ × 5 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | |||
|- | |- | ||
|} | |} | ||
Line 15,088: | Line 11,749: | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |||
|<pre>48 PHA | |||
A2 10 LDX #16 | |||
CA DEX | |||
D0 FB BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack | |||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 15,093: | Line 11,759: | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack | D0 FB BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
Line 15,115: | Line 11,776: | ||
10 FA BPL *-4</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack | 10 FA BPL *-4</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 2 | ||
A9 E9 LDA #$E9 ;hides 'SBC #$08' | A9 E9 LDA #$E9 ;hides 'SBC #$08' | ||
08 PHP ;first loop only | 08 PHP ;first loop only | ||
Line 15,145: | Line 11,805: | ||
D0 FB BNE *-3</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack | D0 FB BNE *-3</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>A9 0A LDA #$0A ;hides 'ASL A' | |<pre>EA NOP | ||
48 PHA | |||
A9 0A LDA #$0A ;hides 'ASL A' | |||
48 PHA | 48 PHA | ||
18 CLC | 18 CLC | ||
D0 FB BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack | |||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA | ||
Line 15,170: | Line 11,830: | ||
|<pre>38 SEC | |<pre>38 SEC | ||
A9 09 LDA #9 | A9 09 LDA #9 | ||
EA | EA ... NOP × 2 | ||
E9 01 SBC #1 | E9 01 SBC #1 | ||
D0 F7 BNE *-7</pre>||Clobbers A, Z&N, C, and V | D0 F7 BNE *-7</pre>||Clobbers A, Z&N, C, and V | ||
Line 15,181: | Line 11,840: | ||
D0 FA BNE *-4</pre>||Clobbers A, Z&N, and C; and requires @zptemp | D0 FA BNE *-4</pre>||Clobbers A, Z&N, and C; and requires @zptemp | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
A0 0E LDY #14 | A0 0E LDY #14 | ||
Line 15,189: | Line 11,847: | ||
28 PLP</pre>||Clobbers Y, and S; and writes in stack | 28 PLP</pre>||Clobbers Y, and S; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
A2 0E LDX #14 | A2 0E LDX #14 | ||
Line 15,223: | Line 11,880: | ||
A8 TAY</pre>||Clobbers A, and Z&N; and writes in stack | A8 TAY</pre>||Clobbers A, and Z&N; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
08 PHP | |||
EA | A2 0E LDX #14 | ||
CA DEX | |||
D0 FB BNE *-3 | |||
28 PLP</pre>||Clobbers X; and writes in stack | |||
|- | |||
|<pre>EA ... NOP × 3 | |||
08 PHP | 08 PHP | ||
A0 0E LDY #14 | A0 0E LDY #14 | ||
Line 15,231: | Line 11,893: | ||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers Y; and writes in stack | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>A9 0A LDA #$0A ;hides 'ASL A' | |<pre>A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 5 | ||
18 CLC | 18 CLC | ||
10 F7 BPL *-7</pre>||Clobbers A, Z&N, and C | 10 F7 BPL *-7</pre>||Clobbers A, Z&N, and C | ||
Line 15,264: | Line 11,913: | ||
68 PLA</pre>||Clobbers Z&N, and C; requires @rts14; and writes in stack | 68 PLA</pre>||Clobbers Z&N, and C; requires @rts14; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
Line 15,273: | Line 11,921: | ||
28 PLP</pre>||Clobbers A, and S; and writes in stack | 28 PLP</pre>||Clobbers A, and S; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 3 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA NOP | EA NOP | ||
Line 15,282: | Line 11,928: | ||
68 PLA</pre>||Clobbers S, Z&N, and C; and writes in stack | 68 PLA</pre>||Clobbers S, Z&N, and C; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
38 SEC | 38 SEC | ||
Line 15,291: | Line 11,936: | ||
28 PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack | 28 PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
48 PHA | 48 PHA | ||
38 SEC | 38 SEC | ||
Line 15,303: | Line 11,947: | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
8C TXA | |||
48 PHA | 48 PHA | ||
A2 0D LDX #13 | |||
CA DEX | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
AA TAX | |||
68 PLA</pre>||Clobbers Z&N; and writes in stack | 68 PLA</pre>||Clobbers Z&N; and writes in stack | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
8C TXA | |||
48 PHA | 48 PHA | ||
A2 0D LDX #13 | |||
CA DEX | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
AA TAX | |||
28 PLP</pre>||Clobbers A; and writes in stack | 28 PLP</pre>||Clobbers A; and writes in stack | ||
|- | |- | ||
Line 15,336: | Line 11,980: | ||
!colspan="2"|21 bytes | !colspan="2"|21 bytes | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 21</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|24 bytes | !colspan="2"|24 bytes | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA \ × 12 | ||
48 PHA /</pre>||Clobbers A, and Z&N | |||
|- | |||
48 PHA | !colspan="2"|28 bytes | ||
|- | |||
|<pre>36 00 ROL $00,X \ × 7 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N | |||
|- | |- | ||
|} | |} | ||
Line 15,434: | Line 12,041: | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A2 0B LDX #11 | |||
EA NOP | EA NOP | ||
CA DEX | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A0 0B LDY #11 | |||
EA NOP | EA NOP | ||
88 DEY | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>18 CLC | |<pre>18 CLC | ||
Line 15,478: | Line 12,085: | ||
|<pre>18 CLC | |<pre>18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 2 | ||
E6 xx INC @zptemp | E6 xx INC @zptemp | ||
90 F9 BCC *-5</pre>||Clobbers A, Z&N, and C; and requires @zptemp | 90 F9 BCC *-5</pre>||Clobbers A, Z&N, and C; and requires @zptemp | ||
Line 15,510: | Line 12,116: | ||
|<pre>68 PLA | |<pre>68 PLA | ||
48 PHA | 48 PHA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' \ × 2 | ||
D0 FD BNE *-1 /</pre>||Clobbers A, Z&N, and C | |||
D0 FD BNE *-1</pre>||Clobbers A, Z&N, and C | |||
|- | |- | ||
!colspan="2"|22 bytes | !colspan="2"|22 bytes | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 20 | ||
48 PHA</pre>||Clobbers A, S, and Z&N | 48 PHA</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
Line 15,545: | Line 12,130: | ||
A9 09 LDA #$09 ;hides 'ORA #$EA' | A9 09 LDA #$09 ;hides 'ORA #$EA' | ||
EA NOP ;first loop only | EA NOP ;first loop only | ||
EA | EA ... NOP × 18 | ||
10 EA BPL *-20</pre>||Clobbers A, and Z&N | 10 EA BPL *-20</pre>||Clobbers A, and Z&N | ||
|- | |||
!colspan="2"|30 bytes | |||
|- | |||
|<pre>C5 00 CMP $00 | |||
26 00 ROL $00 | |||
66 00 ROR $00 | |||
36 00 ROL $00,X \ × 6 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | |||
|- | |||
|<pre>24 00 BIT $00 | |||
26 00 ROL $00 | |||
66 00 ROR $00 | |||
36 00 ROL $00,X \ × 6 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | |||
|- | |||
|<pre>E6 xx INC @zptemp | |||
26 00 ROL $00 \ × 2 | |||
66 00 ROR $00 / | |||
36 00 ROL $00,X \ × 5 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | |||
|- | |||
|<pre>04 00 NOP $00 | |||
26 00 ROL $00 | |||
66 00 ROR $00 | |||
36 00 ROL $00,X \ × 6 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|31 bytes | |||
|- | |||
|<pre>4C xx xx JMP *+3 | |||
26 00 ROL $00 | |||
66 00 ROR $00 | |||
36 00 ROL $00,X \ × 6 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | |||
|- | |- | ||
|} | |} | ||
Line 15,571: | Line 12,173: | ||
{| class="wikitable testtable" | {| class="wikitable testtable" | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |||
|<pre>A0 11 LDY #17 | |||
88 DEY | |||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | |||
|- | |- | ||
|<pre>A2 11 LDX #17 | |<pre>A2 11 LDX #17 | ||
CA DEX | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | D0 FB BNE *-3</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>A9 LDA #59 | |<pre>A9 LDA #59 | ||
Line 15,726: | Line 12,328: | ||
|<pre>EA NOP | |<pre>EA NOP | ||
48 PHA | 48 PHA | ||
8C TXA | |||
48 PHA | 48 PHA | ||
A2 0D LDX #13 | |||
CA DEX | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
AA TAX | |||
68 PLA</pre>||Clobbers Z&N; and writes in stack | 68 PLA</pre>||Clobbers Z&N; and writes in stack | ||
|- | |- | ||
Line 15,758: | Line 12,360: | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
48 PHA | 48 PHA | ||
Line 15,772: | Line 12,373: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 21</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|24 bytes | !colspan="2"|24 bytes | ||
Line 15,800: | Line 12,381: | ||
A9 09 LDA #$09 ;hides 'ORA #$EA' | A9 09 LDA #$09 ;hides 'ORA #$EA' | ||
EA NOP ;first loop only | EA NOP ;first loop only | ||
EA | EA ... NOP × 17 | ||
10 EB BPL *-19</pre>||Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|29 bytes | |||
|- | |||
EA NOP | |<pre>EA NOP | ||
36 00 ROL $00,X \ × 7 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N | |||
|- | |- | ||
|} | |} | ||
Line 15,832: | Line 12,403: | ||
|- | |- | ||
|<pre>A9 0A LDA #$0A ;hides 'ASL A' | |<pre>A9 0A LDA #$0A ;hides 'ASL A' | ||
48 | 48 ... PHA × 2 | ||
D0 FB BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack | D0 FB BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack | ||
|- | |- | ||
Line 15,847: | Line 12,417: | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |||
|<pre>EA NOP | |||
A2 0C LDX #12 | |||
EA NOP | |||
CA DEX | |||
D0 FA BNE *-4</pre>||Clobbers X, and Z&N | |||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 15,853: | Line 12,429: | ||
88 DEY | 88 DEY | ||
D0 FA BNE *-4</pre>||Clobbers Y, and Z&N | D0 FA BNE *-4</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>A9 0A LDA #$0A ;hides 'ASL A' | |<pre>A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 2 | ||
18 CLC | 18 CLC | ||
D0 FA BNE *-4</pre>||Clobbers A, Z&N, and C | D0 FA BNE *-4</pre>||Clobbers A, Z&N, and C | ||
Line 15,975: | Line 12,544: | ||
!colspan="2"|22 bytes | !colspan="2"|22 bytes | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 21 | ||
48 PHA</pre>||Clobbers A, S, and Z&N | 48 PHA</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
Line 16,002: | Line 12,551: | ||
|<pre>A9 09 LDA #$09 ;hides 'ORA #$EA' | |<pre>A9 09 LDA #$09 ;hides 'ORA #$EA' | ||
EA NOP ;first loop only | EA NOP ;first loop only | ||
EA | EA ... NOP × 19 | ||
10 E9 BPL *-21</pre>||Clobbers A, and Z&N | 10 E9 BPL *-21</pre>||Clobbers A, and Z&N | ||
|- | |||
!colspan="2"|30 bytes | |||
|- | |||
|<pre>C5 00 CMP $00 | |||
36 00 ROL $00,X \ × 7 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | |||
|- | |||
|<pre>24 00 BIT $00 | |||
36 00 ROL $00,X \ × 7 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | |||
|- | |||
|<pre>E6 xx INC @zptemp | |||
26 00 ROL $00 | |||
66 00 ROR $00 | |||
36 00 ROL $00,X \ × 6 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | |||
|- | |||
|<pre>04 00 NOP $00 | |||
36 00 ROL $00,X \ × 7 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|31 bytes | |||
|- | |||
|<pre>4C xx xx JMP *+3 | |||
36 00 ROL $00,X \ × 7 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | |||
|- | |- | ||
|} | |} | ||
Line 16,088: | Line 12,645: | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 2 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
20 xx xx JSR @rts12 | 20 xx xx JSR @rts12 | ||
Line 16,235: | Line 12,791: | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
C5 00 CMP $00 | |||
48 PHA | 48 PHA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA NOP | |||
18 CLC | |||
D0 FB BNE *-3 | |||
68 PLA | 68 PLA | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
Line 16,246: | Line 12,802: | ||
!colspan="2"|22 bytes | !colspan="2"|22 bytes | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 22</pre>||Clobbers A, S, and Z&N | ||
|- | |||
!colspan="2"|25 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 PLA | 68 PLA | ||
48 PHA | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 17 | |||
10 EB BPL *-19</pre>||Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|30 bytes | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
36 00 ROL $00,X \ × 7 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N | |||
|- | |- | ||
|} | |} | ||
Line 16,286: | Line 12,837: | ||
|- | |- | ||
|<pre>A0 88 LDY #136 ;hides 'DEY' | |<pre>A0 88 LDY #136 ;hides 'DEY' | ||
EA | EA ... NOP × 2 | ||
30 FB BMI *-3</pre>||Clobbers Y, and Z&N | 30 FB BMI *-3</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
Line 16,313: | Line 12,863: | ||
|<pre>18 CLC | |<pre>18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
48 | 48 ... PHA × 2 | ||
D0 FB BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack | D0 FB BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack | ||
|- | |- | ||
Line 16,331: | Line 12,880: | ||
|<pre>18 CLC | |<pre>18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 2 | ||
18 CLC | 18 CLC | ||
D0 FA BNE *-4</pre>||Clobbers A, Z&N, and C | D0 FA BNE *-4</pre>||Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |||
|<pre>08 PHP | |||
A0 09 LDY #9 | |||
EA ... NOP × 2 | |||
88 DEY | |||
D0 F9 BNE *-5 | |||
28 PLP</pre>||Clobbers Y; and writes in stack | |||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A2 09 LDX #9 | A2 09 LDX #9 | ||
EA | EA ... NOP × 2 | ||
CA DEX | CA DEX | ||
D0 F9 BNE *-5 | D0 F9 BNE *-5 | ||
28 PLP</pre>||Clobbers X; and writes in stack | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 16,363: | Line 12,909: | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre> | |<pre>8C TXA | ||
48 PHA | 48 PHA | ||
A2 0B LDX #11 | |||
EA NOP | EA NOP | ||
CA DEX | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
68 PLA | 68 PLA | ||
AA TAX</pre>||Clobbers A, and Z&N; and writes in stack | |||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 16,380: | Line 12,926: | ||
28 PLP</pre>||Clobbers A, and S; and writes in stack | 28 PLP</pre>||Clobbers A, and S; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
B8 CLV | B8 CLV | ||
Line 16,388: | Line 12,933: | ||
68 PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack | 68 PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
85 xx STA @zptemp | 85 xx STA @zptemp | ||
Line 16,414: | Line 12,958: | ||
68 PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack | 68 PLA</pre>||Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
04 00 NOP $00 | 04 00 NOP $00 | ||
Line 16,455: | Line 12,998: | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre> | |<pre>08 PHP | ||
08 PHP | |||
48 PHA | 48 PHA | ||
18 | 18 ... CLC × 2 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA NOP | EA NOP | ||
Line 16,469: | Line 13,011: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 21 | ||
48 PHA</pre>||Clobbers A, S, and Z&N | 48 PHA</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|25 bytes | |||
!colspan="2"| | |||
|- | |- | ||
|<pre>A9 | |<pre>EA NOP | ||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 19 | |||
10 E9 BPL *-21</pre>||Clobbers A, and Z&N | |||
|- | |- | ||
!colspan="2"| | !colspan="2"|30 bytes | ||
|- | |- | ||
|<pre> | |<pre>E6 xx INC @zptemp | ||
36 00 ROL $00,X \ × 7 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | |||
|- | |- | ||
| | !colspan="2"|31 bytes | ||
|- | |- | ||
!colspan="2"| | |<pre>EA NOP | ||
C5 00 CMP $00 | |||
36 00 ROL $00,X \ × 7 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | |||
|- | |||
|<pre>EA NOP | |||
24 00 BIT $00 | |||
36 00 ROL $00,X \ × 7 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | |||
|- | |||
|<pre>EA NOP | |||
04 00 NOP $00 | |||
36 00 ROL $00,X \ × 7 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|32 bytes | |||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
4C xx xx JMP *+3 | |||
36 00 ROL $00,X \ × 7 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | |||
|- | |||
|} | |||
=== 90 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>A9 LDA #63 | |||
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks | |||
|- | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>68 PLA | |||
A0 11 LDY #17 | |||
88 DEY | |||
D0 FB BNE *-3</pre>||Clobbers A, Y, S, and Z&N | |||
|- | |||
|<pre>68 PLA | |||
A2 11 LDX #17 | A2 11 LDX #17 | ||
CA DEX | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | D0 FB BNE *-3</pre>||Clobbers A, X, S, and Z&N | ||
|- | |||
!colspan="2"|7 bytes | |||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
A0 11 LDY #17 | A0 11 LDY #17 | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | ||
|- | |||
|<pre>EA ... NOP × 2 | |||
A2 11 LDX #17 | |||
CA DEX | |||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | |||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 16,536: | Line 13,094: | ||
|<pre>48 PHA | |<pre>48 PHA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
48 | 48 ... PHA × 2 | ||
D0 FB BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack | D0 FB BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack | ||
|- | |- | ||
Line 16,561: | Line 13,118: | ||
|<pre>EA NOP | |<pre>EA NOP | ||
08 PHP | 08 PHP | ||
A2 10 LDX #16 | |||
CA DEX | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
08 PHP | 08 PHP | ||
A0 10 LDY #16 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 16,590: | Line 13,147: | ||
|<pre>A5 00 LDA $00 | |<pre>A5 00 LDA $00 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 2 | ||
18 CLC | 18 CLC | ||
D0 FA BNE *-4</pre>||Clobbers A, Z&N, and C | D0 FA BNE *-4</pre>||Clobbers A, Z&N, and C | ||
Line 16,619: | Line 13,175: | ||
68 PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack | 68 PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack | ||
|- | |- | ||
|<pre> | |<pre>48 PHA | ||
48 PHA | 18 ... CLC × 2 | ||
18 | |||
A9 2A LDA #$2A ;hides 'ROL A' | A9 2A LDA #$2A ;hides 'ROL A' | ||
20 xx xx JSR @rts15 | 20 xx xx JSR @rts15 | ||
Line 16,627: | Line 13,182: | ||
68 PLA</pre>||Clobbers Z&N, and C; requires @rts15; and writes in stack | 68 PLA</pre>||Clobbers Z&N, and C; requires @rts15; and writes in stack | ||
|- | |- | ||
|<pre> | |<pre>48 PHA | ||
48 PHA | 18 ... CLC × 2 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
85 xx STA @zptemp | 85 xx STA @zptemp | ||
Line 16,636: | Line 13,190: | ||
68 PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack | 68 PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack | ||
|- | |- | ||
|<pre> | |<pre>48 PHA | ||
48 PHA | 18 ... CLC × 2 | ||
18 | |||
A9 2A LDA #$2A ;hides 'ROL A' | A9 2A LDA #$2A ;hides 'ROL A' | ||
EA NOP | EA NOP | ||
Line 16,645: | Line 13,198: | ||
68 PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack | 68 PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre> | |<pre>48 PHA | ||
48 PHA | 18 ... CLC × 2 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
04 00 NOP $00 | 04 00 NOP $00 | ||
Line 16,710: | Line 13,262: | ||
|<pre>EA NOP | |<pre>EA NOP | ||
08 PHP | 08 PHP | ||
C5 00 CMP $00 | |||
48 PHA | 48 PHA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA NOP | |||
18 CLC | |||
D0 FB BNE *-3 | |||
68 PLA | 68 PLA | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
Line 16,722: | Line 13,274: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 22</pre>||Clobbers A, S, and Z&N | ||
|- | |||
!colspan="2"|25 bytes | |||
|- | |- | ||
|} | |<pre>68 PLA | ||
48 PHA | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 18 | |||
10 EA BPL *-20</pre>||Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|31 bytes | |||
|- | |||
|<pre>EA ... NOP × 3 | |||
36 00 ROL $00,X \ × 7 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N | |||
|- | |||
|} | |||
Line 16,767: | Line 13,313: | ||
|<pre>A9 E9 LDA #$E9 ;hides 'SBC #$0A' | |<pre>A9 E9 LDA #$E9 ;hides 'SBC #$0A' | ||
0A ASL A ;first loop only | 0A ASL A ;first loop only | ||
EA | EA ... NOP × 2 | ||
30 FA BMI *-4</pre>||Clobbers A, Z&N, C, and V | 30 FA BMI *-4</pre>||Clobbers A, Z&N, C, and V | ||
|- | |- | ||
Line 16,778: | Line 13,323: | ||
|<pre>68 PLA | |<pre>68 PLA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
48 | 48 ... PHA × 2 | ||
D0 FB BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack | D0 FB BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack | ||
|- | |- | ||
Line 16,796: | Line 13,340: | ||
|<pre>48 PHA | |<pre>48 PHA | ||
08 PHP | 08 PHP | ||
A2 10 LDX #16 | |||
CA DEX | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers X, and S; and writes in stack | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
08 PHP | 08 PHP | ||
A0 10 LDY #16 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers Y, and S; and writes in stack | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 2 | ||
18 CLC | 18 CLC | ||
D0 FA BNE *-4</pre>||Clobbers A, S, Z&N, and C | D0 FA BNE *-4</pre>||Clobbers A, S, Z&N, and C | ||
Line 16,907: | Line 13,450: | ||
28 PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack | 28 PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
A9 E9 LDA #$E9 ;hides 'SBC #$0A' | A9 E9 LDA #$E9 ;hides 'SBC #$0A' | ||
0A ASL A ;first loop only | 0A ASL A ;first loop only | ||
Line 16,920: | Line 13,462: | ||
38 SEC | 38 SEC | ||
A9 09 LDA #9 | A9 09 LDA #9 | ||
EA | EA ... NOP × 2 | ||
E9 01 SBC #1 | E9 01 SBC #1 | ||
D0 F7 BNE *-7 | D0 F7 BNE *-7 | ||
Line 16,957: | Line 13,498: | ||
28 PLP</pre>||Requires @rts14; and writes in stack | 28 PLP</pre>||Requires @rts14; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
48 PHA | 48 PHA | ||
Line 16,968: | Line 13,508: | ||
28 PLP</pre>||Clobbers S; and writes in stack | 28 PLP</pre>||Clobbers S; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
48 PHA | 48 PHA | ||
Line 16,983: | Line 13,522: | ||
|<pre>08 PHP | |<pre>08 PHP | ||
48 PHA | 48 PHA | ||
8C TXA | |||
48 PHA | 48 PHA | ||
A2 0D LDX #13 | |||
CA DEX | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
AA TAX | |||
68 PLA | 68 PLA | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
Line 16,995: | Line 13,534: | ||
!colspan="2"|23 bytes | !colspan="2"|23 bytes | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 22 | ||
48 PHA</pre>||Clobbers A, S, and Z&N | 48 PHA</pre>||Clobbers A, S, and Z&N | ||
|- | |||
!colspan="2"|25 bytes | |||
|- | |||
|<pre>A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 20 | |||
10 E8 BPL *-22</pre>||Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|31 bytes | |||
|- | |||
|<pre>EA NOP | |||
E6 xx INC @zptemp | |||
36 00 ROL $00,X \ × 7 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | |||
|- | |||
!colspan="2"|32 bytes | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
C5 00 CMP $00 | |||
36 00 ROL $00,X \ × 7 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
24 00 BIT $00 | |||
36 00 ROL $00,X \ × 7 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
04 00 NOP $00 | |||
36 00 ROL $00,X \ × 7 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|33 bytes | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
4C xx xx JMP *+3 | |||
36 00 ROL $00,X \ × 7 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | |||
|- | |- | ||
|} | |} | ||
Line 17,030: | Line 13,586: | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |||
|<pre>A0 0D LDY #13 | |||
EA NOP | |||
88 DEY | |||
D0 FA BNE *-4</pre>||Clobbers Y, and Z&N | |||
|- | |- | ||
|<pre>A2 0D LDX #13 | |<pre>A2 0D LDX #13 | ||
Line 17,035: | Line 13,596: | ||
CA DEX | CA DEX | ||
D0 FA BNE *-4</pre>||Clobbers X, and Z&N | D0 FA BNE *-4</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
Line 17,067: | Line 13,623: | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A2 0C LDX #12 | |||
EA NOP | EA NOP | ||
CA DEX | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A0 0C LDY #12 | |||
EA NOP | EA NOP | ||
88 DEY | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
38 SEC | 38 SEC | ||
A9 69 LDA #$69 ;hides 'ADC #$F8' | A9 69 LDA #$69 ;hides 'ADC #$F8' | ||
Line 17,088: | Line 13,643: | ||
|- | |- | ||
|<pre>A9 2A LDA #$2A ;hides 'ROL A' | |<pre>A9 2A LDA #$2A ;hides 'ROL A' | ||
00 00 | 00 00... BRK 0 × 2 | ||
10 F9 BPL *-5</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack | 10 F9 BPL *-5</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
Line 17,095: | Line 13,649: | ||
48 PHA | 48 PHA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
48 | 48 ... PHA × 2 | ||
D0 FB BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack | D0 FB BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack | ||
|- | |- | ||
Line 17,123: | Line 13,676: | ||
68 PLA</pre>||Clobbers Z&N, C, and V; and writes in stack | 68 PLA</pre>||Clobbers Z&N, C, and V; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
38 SEC | 38 SEC | ||
A9 11 LDA #17 | A9 11 LDA #17 | ||
Line 17,132: | Line 13,684: | ||
|<pre>E6 xx INC @zptemp | |<pre>E6 xx INC @zptemp | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 2 | ||
18 CLC | 18 CLC | ||
D0 FA BNE *-4</pre>||Clobbers A, Z&N, and C; and requires @zptemp | D0 FA BNE *-4</pre>||Clobbers A, Z&N, and C; and requires @zptemp | ||
Line 17,158: | Line 13,709: | ||
A5 00 LDA $00 | A5 00 LDA $00 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 2 | ||
18 CLC | 18 CLC | ||
D0 FA BNE *-4</pre>||Clobbers A, Z&N, and C | D0 FA BNE *-4</pre>||Clobbers A, Z&N, and C | ||
Line 17,176: | Line 13,726: | ||
!colspan="2"|23 bytes | !colspan="2"|23 bytes | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 23</pre>||Clobbers A, S, and Z&N | ||
|- | |||
!colspan="2"|26 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 PLA | 68 PLA | ||
48 PHA | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 18 | |||
10 EA BPL *-20</pre>||Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|32 bytes | |||
|- | |||
|<pre>26 00 ROL $00 \ × 2 | |||
66 00 ROR $00 / | |||
36 00 ROL $00,X \ × 6 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N | |||
|- | |- | ||
|} | |} | ||
Line 17,211: | Line 13,756: | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |||
|<pre>EA NOP | |||
A2 12 LDX #18 | |||
CA DEX | |||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | |||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 17,216: | Line 13,766: | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
Line 17,258: | Line 13,803: | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 2 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
00 00 BRK 0 | 00 00 BRK 0 | ||
Line 17,267: | Line 13,811: | ||
68 PLA | 68 PLA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
48 | 48 ... PHA × 2 | ||
D0 FB BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack | D0 FB BNE *-3</pre>||Clobbers A, S, Z&N, and C; and writes in stack | ||
|- | |- | ||
Line 17,284: | Line 13,827: | ||
68 PLA | 68 PLA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 2 | ||
18 CLC | 18 CLC | ||
D0 FA BNE *-4</pre>||Clobbers A, S, Z&N, and C | D0 FA BNE *-4</pre>||Clobbers A, S, Z&N, and C | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
18 CLC | 18 CLC | ||
A9 69 LDA #$69 ;hides 'ADC #$F8' | A9 69 LDA #$69 ;hides 'ADC #$F8' | ||
Line 17,321: | Line 13,862: | ||
68 PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack | 68 PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 2 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
26 00 ROL $00 | 26 00 ROL $00 | ||
Line 17,336: | Line 13,876: | ||
68 PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack | 68 PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
38 SEC | 38 SEC | ||
A9 10 LDA #16 | A9 10 LDA #16 | ||
Line 17,366: | Line 13,905: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 22 | ||
48 PHA</pre>||Clobbers A, S, and Z&N | 48 PHA</pre>||Clobbers A, S, and Z&N | ||
|- | |||
!colspan="2"|26 bytes | |||
|- | |||
|<pre>EA NOP | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 20 | |||
10 E8 BPL *-22</pre>||Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|32 bytes | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
E6 xx INC @zptemp | |||
36 00 ROL $00,X \ × 7 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | |||
|- | |||
!colspan="2"|33 bytes | |||
|- | |||
|<pre>EA ... NOP × 3 | |||
C5 00 CMP $00 | |||
36 00 ROL $00,X \ × 7 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | |||
|- | |||
|<pre>EA ... NOP × 3 | |||
24 00 BIT $00 | |||
36 00 ROL $00,X \ × 7 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | |||
|- | |||
|<pre>EA ... NOP × 3 | |||
04 00 NOP $00 | |||
36 00 ROL $00,X \ × 7 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|34 bytes | |||
|- | |||
|<pre>EA ... NOP × 3 | |||
4C xx xx JMP *+3 | |||
36 00 ROL $00,X \ × 7 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | |||
|- | |- | ||
|} | |} | ||
Line 17,441: | Line 13,998: | ||
|- | |- | ||
|<pre>A9 0A LDA #$0A ;hides 'ASL A' | |<pre>A9 0A LDA #$0A ;hides 'ASL A' | ||
08 PHP | 08 PHP \ × 2 | ||
28 PLP | 28 PLP / | ||
10 F9 BPL *-5</pre>||Clobbers A, Z&N, and C; and writes in stack | |||
|- | |||
10 F9 BPL *-5</pre>||Clobbers A, Z&N, and C; and writes in stack | |||
|- | |||
|<pre>38 SEC | |<pre>38 SEC | ||
A9 0D LDA #13 | A9 0D LDA #13 | ||
Line 17,457: | Line 14,012: | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 2 | ||
18 CLC | 18 CLC | ||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
Line 17,481: | Line 14,035: | ||
|<pre>48 PHA | |<pre>48 PHA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 2 | ||
18 CLC | 18 CLC | ||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
Line 17,537: | Line 14,090: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 23</pre>||Clobbers A, S, and Z&N | ||
|- | |||
!colspan="2"|26 bytes | |||
|- | |||
68 PLA | |<pre>68 PLA | ||
48 PHA | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 19 | |||
10 E9 BPL *-21</pre>||Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|32 bytes | |||
|- | |||
|<pre>26 00 ROL $00 | |||
66 00 ROR $00 | |||
36 00 ROL $00,X \ × 7 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N | |||
|- | |- | ||
|} | |} | ||
Line 17,577: | Line 14,124: | ||
28 PLP | 28 PLP | ||
D0 FB BNE *-3</pre>||Clobbers A, Z&N, and C; and writes in stack | D0 FB BNE *-3</pre>||Clobbers A, Z&N, and C; and writes in stack | ||
|- | |||
|<pre>68 PLA | |||
A2 12 LDX #18 | |||
CA DEX | |||
D0 FB BNE *-3</pre>||Clobbers A, X, S, and Z&N | |||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA | ||
Line 17,583: | Line 14,135: | ||
D0 FB BNE *-3</pre>||Clobbers A, Y, S, and Z&N | D0 FB BNE *-3</pre>||Clobbers A, Y, S, and Z&N | ||
|- | |- | ||
| | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>EA ... NOP × 2 | |||
A0 12 LDY #18 | |||
88 DEY | |||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | |||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
A2 12 LDX #18 | A2 12 LDX #18 | ||
CA DEX | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | D0 FB BNE *-3</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 17,666: | Line 14,211: | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre> | |<pre>48 PHA | ||
48 PHA | 18 ... CLC × 2 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
20 xx xx JSR @rts12 | 20 xx xx JSR @rts12 | ||
Line 17,683: | Line 14,227: | ||
28 PLP</pre>||Requires @zptemp; and writes in stack | 28 PLP</pre>||Requires @zptemp; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
18 CLC | 18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
Line 17,716: | Line 14,259: | ||
!colspan="2"|24 bytes | !colspan="2"|24 bytes | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 23 | ||
48 PHA</pre>||Clobbers A, S, and Z&N | 48 PHA</pre>||Clobbers A, S, and Z&N | ||
|- | |- | ||
!colspan="2"|26 bytes | |||
|- | |||
|<pre>A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 21 | |||
!colspan="2"| | 10 E7 BPL *-23</pre>||Clobbers A, and Z&N | ||
|- | |- | ||
|<pre> | !colspan="2"|33 bytes | ||
|- | |||
|<pre>EA ... NOP × 3 | |||
E6 xx INC @zptemp | |||
36 00 ROL $00,X \ × 7 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | |||
|- | |||
!colspan="2"|34 bytes | |||
|- | |||
|<pre>C5 00 CMP $00 | |||
26 00 ROL $00 \ × 2 | |||
66 00 ROR $00 / | |||
36 00 ROL $00,X \ × 6 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | |||
|- | |||
|<pre>24 00 BIT $00 | |||
26 00 ROL $00 \ × 2 | |||
66 00 ROR $00 / | |||
36 00 ROL $00,X \ × 6 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | |||
|- | |||
|<pre>04 00 NOP $00 | |||
26 00 ROL $00 \ × 2 | |||
66 00 ROR $00 / | |||
36 00 ROL $00,X \ × 6 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|35 bytes | |||
|- | |||
|<pre>4C xx xx JMP *+3 | |||
26 00 ROL $00 \ × 2 | |||
66 00 ROR $00 / | |||
36 00 ROL $00,X \ × 6 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | |||
|- | |||
|} | |||
=== 96 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |- | ||
|<pre>A0 13 LDY #19 | |<pre>A0 13 LDY #19 | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | ||
|- | |||
|<pre>A2 13 LDX #19 | |||
CA DEX | |||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | |||
|- | |- | ||
|<pre>A9 LDA #69 | |<pre>A9 LDA #69 | ||
Line 17,775: | Line 14,338: | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A0 88 LDY #136 ;hides 'DEY' | A0 88 LDY #136 ;hides 'DEY' | ||
EA | EA ... NOP × 2 | ||
30 FB BMI *-3 | 30 FB BMI *-3 | ||
28 PLP</pre>||Clobbers Y; and writes in stack | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
Line 17,817: | Line 14,379: | ||
D0 F9 BNE *-5</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack | D0 F9 BNE *-5</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 2 | ||
38 SEC | 38 SEC | ||
A9 69 LDA #$69 ;hides 'ADC #$F8' | A9 69 LDA #$69 ;hides 'ADC #$F8' | ||
Line 17,828: | Line 14,389: | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A2 0B LDX #11 | A2 0B LDX #11 | ||
C5 00 CMP $00 | |||
CA DEX | CA DEX | ||
D0 F9 BNE *-5 | D0 F9 BNE *-5 | ||
Line 17,835: | Line 14,396: | ||
|<pre>18 CLC | |<pre>18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
08 PHP | 08 PHP \ × 2 | ||
28 PLP | 28 PLP / | ||
10 F9 BPL *-5</pre>||Clobbers A, Z&N, and C; and writes in stack | 10 F9 BPL *-5</pre>||Clobbers A, Z&N, and C; and writes in stack | ||
|- | |- | ||
Line 17,859: | Line 14,418: | ||
18 CLC | 18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 2 | ||
18 CLC | 18 CLC | ||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
Line 17,868: | Line 14,426: | ||
18 CLC | 18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 2 | ||
18 CLC | 18 CLC | ||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
Line 17,884: | Line 14,441: | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
8C TXA | |||
48 PHA | 48 PHA | ||
A2 0B LDX #11 | |||
EA NOP | EA NOP | ||
CA DEX | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
68 PLA | 68 PLA | ||
AA TAX | |||
68 PLA</pre>||Clobbers Z&N; and writes in stack | 68 PLA</pre>||Clobbers Z&N; and writes in stack | ||
|- | |- | ||
Line 17,930: | Line 14,487: | ||
!colspan="2"|24 bytes | !colspan="2"|24 bytes | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 24</pre>||Clobbers A, S, and Z&N | ||
|- | |||
!colspan="2"|27 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 PLA | 68 PLA | ||
48 PHA | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 19 | |||
10 E9 BPL *-21</pre>||Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|32 bytes | |||
|- | |||
|<pre>36 00 ROL $00,X \ × 8 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N | |||
|- | |- | ||
|} | |} | ||
Line 17,990: | Line 14,539: | ||
88 DEY | 88 DEY | ||
D0 F9 BNE *-5</pre>||Clobbers Y, and Z&N; and writes in stack | D0 F9 BNE *-5</pre>||Clobbers Y, and Z&N; and writes in stack | ||
|- | |||
|<pre>A0 0C LDY #12 | |||
A5 00 LDA $00 | |||
88 DEY | |||
D0 F9 BNE *-5</pre>||Clobbers A, Y, and Z&N | |||
|- | |- | ||
|<pre>A2 0C LDX #12 | |<pre>A2 0C LDX #12 | ||
Line 17,995: | Line 14,549: | ||
CA DEX | CA DEX | ||
D0 F9 BNE *-5</pre>||Clobbers A, X, and Z&N | D0 F9 BNE *-5</pre>||Clobbers A, X, and Z&N | ||
|- | |- | ||
|<pre>A2 0C LDX #12 | |<pre>A2 0C LDX #12 | ||
Line 18,021: | Line 14,570: | ||
88 DEY | 88 DEY | ||
D0 F9 BNE *-5</pre>||Clobbers Y, Z&N, and C | D0 F9 BNE *-5</pre>||Clobbers Y, Z&N, and C | ||
|- | |||
|<pre>A2 0C LDX #12 | |||
24 00 BIT $00 | |||
CA DEX | |||
D0 F9 BNE *-5</pre>||Clobbers X, Z&N, and V | |||
|- | |- | ||
|<pre>A0 0C LDY #12 | |<pre>A0 0C LDY #12 | ||
Line 18,027: | Line 14,581: | ||
D0 F9 BNE *-5</pre>||Clobbers Y, Z&N, and V | D0 F9 BNE *-5</pre>||Clobbers Y, Z&N, and V | ||
|- | |- | ||
|<pre> | |<pre>A0 0C LDY #12 | ||
85 xx STA @zptemp | |||
88 DEY | |||
D0 F9 BNE *-5</pre>||Clobbers | D0 F9 BNE *-5</pre>||Clobbers Y, and Z&N; and requires @zptemp | ||
|- | |- | ||
|<pre>A2 0C LDX #12 | |<pre>A2 0C LDX #12 | ||
Line 18,038: | Line 14,592: | ||
|- | |- | ||
|<pre>A0 0C LDY #12 | |<pre>A0 0C LDY #12 | ||
04 00 NOP $00 | |||
88 DEY | 88 DEY | ||
D0 F9 BNE *-5</pre>||Clobbers Y, and Z&N; and requires | D0 F9 BNE *-5</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes | ||
|- | |- | ||
|<pre>A2 0C LDX #12 | |<pre>A2 0C LDX #12 | ||
Line 18,046: | Line 14,600: | ||
CA DEX | CA DEX | ||
D0 F9 BNE *-5</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes | D0 F9 BNE *-5</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 18,064: | Line 14,613: | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
A2 12 LDX #18 | |||
EA | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | |||
|- | |||
|<pre>EA ... NOP × 3 | |||
A0 12 LDY #18 | A0 12 LDY #18 | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>A9 69 LDA #$69 ;hides 'ADC #$18' | |<pre>A9 69 LDA #$69 ;hides 'ADC #$18' | ||
Line 18,100: | Line 14,645: | ||
28 PLP</pre>||Clobbers A; and writes in stack | 28 PLP</pre>||Clobbers A; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
A2 11 LDX #17 | A2 11 LDX #17 | ||
Line 18,108: | Line 14,652: | ||
28 PLP</pre>||Clobbers X; and writes in stack | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
A0 11 LDY #17 | A0 11 LDY #17 | ||
Line 18,148: | Line 14,691: | ||
68 PLA | 68 PLA | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |||
!colspan="2"|25 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 ... PLA × 23 | |||
48 PHA</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|27 bytes | |||
|- | |||
|<pre>EA NOP | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 21 | |||
10 E7 BPL *-23</pre>||Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|34 bytes | |||
|- | |||
|<pre>C5 00 CMP $00 | |||
26 00 ROL $00 | |||
66 00 ROR $00 | |||
36 00 ROL $00,X \ × 7 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | |||
|- | |||
|<pre>24 00 BIT $00 | |||
26 00 ROL $00 | |||
66 00 ROR $00 | |||
36 00 ROL $00,X \ × 7 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | |||
|- | |||
|<pre>E6 xx INC @zptemp | |||
26 00 ROL $00 \ × 2 | |||
66 00 ROR $00 / | |||
36 00 ROL $00,X \ × 6 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | |||
|- | |||
|<pre>04 00 NOP $00 | |||
26 00 ROL $00 | |||
66 00 ROR $00 | |||
36 00 ROL $00,X \ × 7 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|35 bytes | |||
|- | |||
|<pre>4C xx xx JMP *+3 | |||
26 00 ROL $00 | |||
66 00 ROR $00 | |||
36 00 ROL $00,X \ × 7 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | |||
|- | |- | ||
|} | |} | ||
Line 18,172: | Line 14,763: | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |||
|<pre>08 PHP | |||
A2 12 LDX #18 | |||
CA DEX | |||
D0 FB BNE *-3 | |||
28 PLP</pre>||Clobbers X; and writes in stack | |||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 18,178: | Line 14,775: | ||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers Y; and writes in stack | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>38 SEC | |<pre>38 SEC | ||
Line 18,219: | Line 14,810: | ||
A9 E9 LDA #$E9 ;hides 'SBC #$0A' | A9 E9 LDA #$E9 ;hides 'SBC #$0A' | ||
0A ASL A ;first loop only | 0A ASL A ;first loop only | ||
EA | EA ... NOP × 2 | ||
30 FA BMI *-4 | 30 FA BMI *-4 | ||
28 PLP</pre>||Clobbers A; and writes in stack | 28 PLP</pre>||Clobbers A; and writes in stack | ||
Line 18,227: | Line 14,817: | ||
A9 E9 LDA #$E9 ;hides 'SBC #$0A' | A9 E9 LDA #$E9 ;hides 'SBC #$0A' | ||
0A ASL A ;first loop only | 0A ASL A ;first loop only | ||
EA | EA ... NOP × 2 | ||
30 FA BMI *-4 | 30 FA BMI *-4 | ||
68 PLA</pre>||Clobbers Z&N, C, and V; and writes in stack | 68 PLA</pre>||Clobbers Z&N, C, and V; and writes in stack | ||
Line 18,317: | Line 14,906: | ||
68 PLA | 68 PLA | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |||
!colspan="2"|25 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 ... PLA × 24</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|27 bytes | |||
|- | |||
|<pre>68 PLA | |||
48 PHA | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 20 | |||
10 E8 BPL *-22</pre>||Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|33 bytes | |||
|- | |||
|<pre>EA NOP | |||
36 00 ROL $00,X \ × 8 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N | |||
|- | |- | ||
|} | |} | ||
Line 18,329: | Line 14,938: | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |||
|<pre>A0 0E LDY #14 | |||
EA NOP | |||
88 DEY | |||
D0 FA BNE *-4</pre>||Clobbers Y, and Z&N | |||
|- | |- | ||
|<pre>A2 0E LDX #14 | |<pre>A2 0E LDX #14 | ||
Line 18,334: | Line 14,948: | ||
CA DEX | CA DEX | ||
D0 FA BNE *-4</pre>||Clobbers X, and Z&N | D0 FA BNE *-4</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
Line 18,370: | Line 14,979: | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A0 0D LDY #13 | |||
EA NOP | EA NOP | ||
88 DEY | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A2 0D LDX #13 | |||
EA NOP | EA NOP | ||
CA DEX | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 2 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
08 PHP | 08 PHP | ||
Line 18,420: | Line 15,028: | ||
28 PLP</pre>||Clobbers A, and S; requires dummy interrupt handler; and writes in stack | 28 PLP</pre>||Clobbers A, and S; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
00 00 BRK 0 | 00 00 BRK 0 | ||
Line 18,436: | Line 15,043: | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
38 SEC | 38 SEC | ||
Line 18,445: | Line 15,051: | ||
28 PLP</pre>||Clobbers A; and writes in stack | 28 PLP</pre>||Clobbers A; and writes in stack | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 2 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
18 CLC | 18 CLC | ||
Line 18,453: | Line 15,058: | ||
D0 F9 BNE *-5</pre>||Clobbers A, Z&N, and C | D0 F9 BNE *-5</pre>||Clobbers A, Z&N, and C | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
48 PHA | 48 PHA | ||
38 SEC | 38 SEC | ||
Line 18,464: | Line 15,068: | ||
|<pre>48 PHA | |<pre>48 PHA | ||
A9 2A LDA #$2A ;hides 'ROL A' | A9 2A LDA #$2A ;hides 'ROL A' | ||
00 00 | 00 00... BRK 0 × 2 | ||
10 F9 BPL *-5 | 10 F9 BPL *-5 | ||
68 PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack | 68 PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack | ||
Line 18,480: | Line 15,083: | ||
68 PLA | 68 PLA | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |||
!colspan="2"|25 bytes | |||
|- | |||
|<pre>68 ... PLA × 24 | |||
48 PHA</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|27 bytes | |||
|- | |||
|<pre>A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 22 | |||
10 E6 BPL *-24</pre>||Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|34 bytes | |||
|- | |||
|<pre>C5 00 CMP $00 | |||
36 00 ROL $00,X \ × 8 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | |||
|- | |||
|<pre>24 00 BIT $00 | |||
36 00 ROL $00,X \ × 8 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | |||
|- | |||
|<pre>E6 xx INC @zptemp | |||
26 00 ROL $00 | |||
66 00 ROR $00 | |||
36 00 ROL $00,X \ × 7 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | |||
|- | |||
|<pre>04 00 NOP $00 | |||
36 00 ROL $00,X \ × 8 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|35 bytes | |||
|- | |||
|<pre>4C xx xx JMP *+3 | |||
36 00 ROL $00,X \ × 8 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | |||
|- | |- | ||
|} | |} | ||
Line 18,504: | Line 15,145: | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |||
|<pre>A0 0B LDY #11 | |||
EA ... NOP × 2 | |||
88 DEY | |||
D0 F9 BNE *-5</pre>||Clobbers Y, and Z&N | |||
|- | |- | ||
|<pre>A2 0B LDX #11 | |<pre>A2 0B LDX #11 | ||
EA | EA ... NOP × 2 | ||
CA DEX | CA DEX | ||
D0 F9 BNE *-5</pre>||Clobbers X, and Z&N | D0 F9 BNE *-5</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 18,531: | Line 15,170: | ||
|<pre>EA NOP | |<pre>EA NOP | ||
08 PHP | 08 PHP | ||
A0 12 LDY #18 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
08 PHP | 08 PHP | ||
A2 12 LDX #18 | |||
CA DEX | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 18,594: | Line 15,233: | ||
D0 F9 BNE *-5</pre>||Clobbers A, Z&N, and C; and requires @zptemp | D0 F9 BNE *-5</pre>||Clobbers A, Z&N, and C; and requires @zptemp | ||
|- | |- | ||
|<pre> | |<pre>48 PHA | ||
48 PHA | 18 ... CLC × 2 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
00 00 BRK 0 | 00 00 BRK 0 | ||
Line 18,633: | Line 15,271: | ||
68 PLA | 68 PLA | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |||
!colspan="2"|25 bytes | |||
|- | |||
|<pre>68 ... PLA × 25</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|28 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 PLA | |||
48 PHA | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 20 | |||
10 E8 BPL *-22</pre>||Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|34 bytes | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
36 00 ROL $00,X \ × 8 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N | |||
|- | |- | ||
|} | |} | ||
Line 18,640: | Line 15,298: | ||
{| class="wikitable testtable" | {| class="wikitable testtable" | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |||
|<pre>A0 14 LDY #20 | |||
88 DEY | |||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | |||
|- | |- | ||
|<pre>A2 14 LDX #20 | |<pre>A2 14 LDX #20 | ||
CA DEX | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | D0 FB BNE *-3</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>A9 LDA #74 | |<pre>A9 LDA #74 | ||
Line 18,732: | Line 15,390: | ||
28 PLP</pre>||Clobbers Y; and writes in stack | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 3 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
08 PHP | 08 PHP | ||
Line 18,771: | Line 15,427: | ||
|<pre>48 PHA | |<pre>48 PHA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
08 PHP | 08 PHP \ × 2 | ||
28 PLP | 28 PLP / | ||
10 F9 BPL *-5 | 10 F9 BPL *-5 | ||
68 PLA</pre>||Clobbers Z&N, and C; and writes in stack | 68 PLA</pre>||Clobbers Z&N, and C; and writes in stack | ||
Line 18,791: | Line 15,445: | ||
48 PHA | 48 PHA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 2 | ||
18 CLC | 18 CLC | ||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
Line 18,798: | Line 15,451: | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 3 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
18 CLC | 18 CLC | ||
Line 18,807: | Line 15,458: | ||
D0 F9 BNE *-5</pre>||Clobbers A, Z&N, and C | D0 F9 BNE *-5</pre>||Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|26 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 ... PLA × 24 | |||
48 PHA</pre>||Clobbers A, S, and Z&N | |||
!colspan="2"| | |||
|- | |- | ||
| | !colspan="2"|28 bytes | ||
|- | |- | ||
|<pre>EA NOP | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 22 | |||
10 E6 BPL *-24</pre>||Clobbers A, and Z&N | |||
|- | |- | ||
|<pre> | !colspan="2"|34 bytes | ||
|- | |||
EA NOP | |<pre>E6 xx INC @zptemp | ||
36 00 ROL $00,X \ × 8 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | |||
|- | |||
!colspan="2"|35 bytes | |||
|- | |||
|<pre>EA NOP | |||
C5 00 CMP $00 | |||
36 00 ROL $00,X \ × 8 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | |||
|- | |||
|<pre>EA NOP | |||
24 00 BIT $00 | |||
36 00 ROL $00,X \ × 8 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | |||
|- | |||
|<pre>EA NOP | |||
04 00 NOP $00 | |||
36 00 ROL $00,X \ × 8 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|36 bytes | |||
|- | |||
|<pre>EA NOP | |||
4C xx xx JMP *+3 | |||
36 00 ROL $00,X \ × 8 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | |||
|- | |||
|} | |||
=== 102 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>A9 LDA #75 | |||
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks | |||
|- | |||
!colspan="2"|7 bytes | |||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 18,831: | Line 15,520: | ||
D0 FA BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack | D0 FA BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack | ||
|- | |- | ||
|<pre> | |<pre>48 PHA | ||
A0 | A0 0E LDY #14 | ||
EA NOP | |||
88 DEY | 88 DEY | ||
D0 FA BNE *-4</pre>||Clobbers | D0 FA BNE *-4</pre>||Clobbers Y, S, and Z&N; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 18,842: | Line 15,531: | ||
CA DEX | CA DEX | ||
D0 FA BNE *-4</pre>||Clobbers A, X, S, and Z&N | D0 FA BNE *-4</pre>||Clobbers A, X, S, and Z&N | ||
|- | |||
|<pre>EA NOP | |||
A0 0B LDY #11 | |||
68 PLA | |||
88 DEY | |||
D0 FA BNE *-4</pre>||Clobbers A, Y, S, and Z&N | |||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 18,890: | Line 15,585: | ||
A9 EB LDA #$EB ;hides 'SBC #$1A' | A9 EB LDA #$EB ;hides 'SBC #$1A' | ||
1A NOP ;first loop only | 1A NOP ;first loop only | ||
EA | EA ... NOP × 2 | ||
B0 F8 BCS *-6</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes | B0 F8 BCS *-6</pre>||Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
EA | 08 PHP | ||
A0 12 LDY #18 | |||
88 DEY | |||
D0 FB BNE *-3 | |||
28 PLP</pre>||Clobbers Y; and writes in stack | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
08 PHP | 08 PHP | ||
A2 12 LDX #18 | A2 12 LDX #18 | ||
Line 18,903: | Line 15,603: | ||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers X; and writes in stack | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>38 SEC | |<pre>38 SEC | ||
A9 0B LDA #11 | A9 0B LDA #11 | ||
EA | EA ... NOP × 2 | ||
E9 01 SBC #1 | E9 01 SBC #1 | ||
D0 F7 BNE *-7</pre>||Clobbers A, Z&N, C, and V | D0 F7 BNE *-7</pre>||Clobbers A, Z&N, C, and V | ||
Line 18,944: | Line 15,635: | ||
18 CLC | 18 CLC | ||
D0 F9 BNE *-5</pre>||Clobbers A, Z&N, and C | D0 F9 BNE *-5</pre>||Clobbers A, Z&N, and C | ||
|- | |||
!colspan="2"|26 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 ... PLA × 25</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|28 bytes | |||
|- | |||
|<pre>68 PLA | |||
48 PHA | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 21 | |||
10 E7 BPL *-23</pre>||Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|35 bytes | |||
|- | |||
|<pre>EA ... NOP × 3 | |||
36 00 ROL $00,X \ × 8 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N | |||
|- | |- | ||
|} | |} | ||
Line 18,956: | Line 15,667: | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |||
|<pre>EA NOP | |||
A0 14 LDY #20 | |||
88 DEY | |||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | |||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 18,961: | Line 15,677: | ||
CA DEX | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | D0 FB BNE *-3</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>18 CLC | |<pre>18 CLC | ||
Line 18,973: | Line 15,684: | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |||
|<pre>08 PHP | |||
A2 13 LDX #19 | |||
CA DEX | |||
D0 FB BNE *-3 | |||
28 PLP</pre>||Clobbers X; and writes in stack | |||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 18,979: | Line 15,696: | ||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers Y; and writes in stack | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>38 SEC | |<pre>38 SEC | ||
Line 18,992: | Line 15,703: | ||
|- | |- | ||
|<pre>A9 0A LDA #$0A ;hides 'ASL A' | |<pre>A9 0A LDA #$0A ;hides 'ASL A' | ||
48 | 48 ... PHA × 2 | ||
18 CLC | 18 CLC | ||
D0 FA BNE *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack | D0 FA BNE *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack | ||
Line 19,010: | Line 15,720: | ||
|- | |- | ||
|<pre>A9 0A LDA #$0A ;hides 'ASL A' | |<pre>A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 3 | ||
18 CLC | 18 CLC | ||
D0 F9 BNE *-5</pre>||Clobbers A, Z&N, and C | D0 F9 BNE *-5</pre>||Clobbers A, Z&N, and C | ||
Line 19,027: | Line 15,735: | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre> | |<pre>8C TXA | ||
48 PHA | 48 PHA | ||
A2 0D LDX #13 | |||
EA NOP | EA NOP | ||
CA DEX | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
68 PLA | 68 PLA | ||
AA TAX</pre>||Clobbers A, and Z&N; and writes in stack | |||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 19,066: | Line 15,774: | ||
28 PLP</pre>||Clobbers A, and S; and writes in stack | 28 PLP</pre>||Clobbers A, and S; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
38 SEC | 38 SEC | ||
A9 12 LDA #18 | A9 12 LDA #18 | ||
Line 19,087: | Line 15,794: | ||
18 CLC | 18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
08 PHP | 08 PHP \ × 2 | ||
28 PLP | 28 PLP / | ||
10 F9 BPL *-5 | 10 F9 BPL *-5 | ||
68 PLA</pre>||Clobbers Z&N, and C; and writes in stack | 68 PLA</pre>||Clobbers Z&N, and C; and writes in stack | ||
Line 19,100: | Line 15,805: | ||
18 CLC | 18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 2 | ||
18 CLC | 18 CLC | ||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
68 PLA | 68 PLA | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |||
!colspan="2"|26 bytes | |||
|- | |||
|<pre>68 ... PLA × 25 | |||
48 PHA</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|28 bytes | |||
|- | |||
|<pre>A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 23 | |||
10 E5 BPL *-25</pre>||Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|35 bytes | |||
|- | |||
|<pre>EA NOP | |||
E6 xx INC @zptemp | |||
36 00 ROL $00,X \ × 8 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | |||
|- | |||
!colspan="2"|36 bytes | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
C5 00 CMP $00 | |||
36 00 ROL $00,X \ × 8 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
24 00 BIT $00 | |||
36 00 ROL $00,X \ × 8 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
04 00 NOP $00 | |||
36 00 ROL $00,X \ × 8 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|37 bytes | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
4C xx xx JMP *+3 | |||
36 00 ROL $00,X \ × 8 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | |||
|- | |- | ||
|} | |} | ||
Line 19,118: | Line 15,865: | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |||
|<pre>48 PHA | |||
A0 14 LDY #20 | |||
88 DEY | |||
D0 FB BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack | |||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 19,123: | Line 15,875: | ||
CA DEX | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack | D0 FB BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
Line 19,199: | Line 15,946: | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A2 0C LDX #12 | A2 0C LDX #12 | ||
C5 00 CMP $00 | |||
CA DEX | CA DEX | ||
D0 F9 BNE *-5 | D0 F9 BNE *-5 | ||
Line 19,262: | Line 16,009: | ||
18 CLC | 18 CLC | ||
D0 F9 BNE *-5</pre>||Clobbers A, Z&N, and C | D0 F9 BNE *-5</pre>||Clobbers A, Z&N, and C | ||
|- | |||
!colspan="2"|26 bytes | |||
|- | |||
|<pre>68 ... PLA × 26</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|29 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 PLA | |||
48 PHA | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 21 | |||
10 E7 BPL *-23</pre>||Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|36 bytes | |||
|- | |||
|<pre>26 00 ROL $00 \ × 2 | |||
66 00 ROR $00 / | |||
36 00 ROL $00,X \ × 7 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N | |||
|- | |- | ||
|} | |} | ||
Line 19,284: | Line 16,052: | ||
CA DEX | CA DEX | ||
D0 FA BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack | D0 FA BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack | ||
|- | |||
|<pre>68 PLA | |||
A2 14 LDX #20 | |||
CA DEX | |||
D0 FB BNE *-3</pre>||Clobbers A, X, S, and Z&N | |||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA | ||
Line 19,290: | Line 16,063: | ||
D0 FB BNE *-3</pre>||Clobbers A, Y, S, and Z&N | D0 FB BNE *-3</pre>||Clobbers A, Y, S, and Z&N | ||
|- | |- | ||
|<pre> | !colspan="2"|7 bytes | ||
|- | |||
|<pre>EA ... NOP × 2 | |||
A2 14 LDX #20 | A2 14 LDX #20 | ||
CA DEX | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers | D0 FB BNE *-3</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>EA ... NOP × 2 | |||
|<pre>EA | |||
A0 14 LDY #20 | A0 14 LDY #20 | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 19,329: | Line 16,095: | ||
|<pre>EA NOP | |<pre>EA NOP | ||
08 PHP | 08 PHP | ||
A2 13 LDX #19 | |||
CA DEX | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
08 PHP | 08 PHP | ||
A0 13 LDY #19 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 19,349: | Line 16,115: | ||
|<pre>18 CLC | |<pre>18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
48 | 48 ... PHA × 2 | ||
18 CLC | 18 CLC | ||
D0 FA BNE *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack | D0 FA BNE *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack | ||
Line 19,365: | Line 16,130: | ||
|<pre>18 CLC | |<pre>18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 3 | ||
18 CLC | 18 CLC | ||
D0 F9 BNE *-5</pre>||Clobbers A, Z&N, and C | D0 F9 BNE *-5</pre>||Clobbers A, Z&N, and C | ||
Line 19,378: | Line 16,141: | ||
68 PLA</pre>||Clobbers Z&N, C, and V; and writes in stack | 68 PLA</pre>||Clobbers Z&N, C, and V; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
08 PHP | 08 PHP | ||
Line 19,409: | Line 16,171: | ||
A9 E9 LDA #$E9 ;hides 'SBC #$0A' | A9 E9 LDA #$E9 ;hides 'SBC #$0A' | ||
0A ASL A ;first loop only | 0A ASL A ;first loop only | ||
EA | EA ... NOP × 2 | ||
30 FA BMI *-4 | 30 FA BMI *-4 | ||
68 PLA | 68 PLA | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |- | ||
!colspan="2"|27 bytes | |||
!colspan="2"| | |||
|- | |- | ||
|<pre> | |<pre>EA NOP | ||
68 ... PLA × 25 | |||
48 PHA</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|29 bytes | |||
|- | |||
|<pre>EA NOP | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 23 | |||
10 E5 BPL *-25</pre>||Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|36 bytes | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
E6 xx INC @zptemp | |||
36 00 ROL $00,X \ × 8 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | |||
|- | |||
!colspan="2"|37 bytes | |||
|- | |||
|<pre>EA ... NOP × 3 | |||
C5 00 CMP $00 | |||
36 00 ROL $00,X \ × 8 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | |||
|- | |||
|<pre>EA ... NOP × 3 | |||
24 00 BIT $00 | |||
36 00 ROL $00,X \ × 8 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | |||
|- | |||
|<pre>EA ... NOP × 3 | |||
04 00 NOP $00 | |||
36 00 ROL $00,X \ × 8 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|38 bytes | |||
|- | |||
|<pre>EA ... NOP × 3 | |||
4C xx xx JMP *+3 | |||
36 00 ROL $00,X \ × 8 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | |||
|- | |||
|} | |||
=== 106 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |- | ||
|<pre>A0 15 LDY #21 | |<pre>A0 15 LDY #21 | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | ||
|- | |||
|<pre>A2 15 LDX #21 | |||
CA DEX | |||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | |||
|- | |- | ||
|<pre>A9 LDA #79 | |<pre>A9 LDA #79 | ||
Line 19,455: | Line 16,261: | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A2 0E LDX #14 | |||
EA NOP | EA NOP | ||
CA DEX | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A0 0E LDY #14 | |||
EA NOP | EA NOP | ||
88 DEY | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
48 | 48 ... PHA × 2 | ||
18 CLC | 18 CLC | ||
D0 FA BNE *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack | D0 FA BNE *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack | ||
Line 19,532: | Line 16,337: | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre> | |<pre>08 PHP | ||
08 PHP | 18 ... CLC × 2 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
08 PHP | 08 PHP | ||
Line 19,541: | Line 16,345: | ||
28 PLP</pre>||Clobbers A; and writes in stack | 28 PLP</pre>||Clobbers A; and writes in stack | ||
|- | |- | ||
|<pre> | |<pre>48 PHA | ||
48 PHA | 18 ... CLC × 2 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
08 PHP | 08 PHP | ||
Line 19,552: | Line 16,355: | ||
|<pre>A5 00 LDA $00 | |<pre>A5 00 LDA $00 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 3 | ||
18 CLC | 18 CLC | ||
D0 F9 BNE *-5</pre>||Clobbers A, Z&N, and C | D0 F9 BNE *-5</pre>||Clobbers A, Z&N, and C | ||
Line 19,571: | Line 16,372: | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
48 PHA | 48 PHA | ||
Line 19,581: | Line 16,381: | ||
68 PLA | 68 PLA | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |||
!colspan="2"|27 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 ... PLA × 26</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|29 bytes | |||
|- | |||
|<pre>68 PLA | |||
48 PHA | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 22 | |||
10 E6 BPL *-24</pre>||Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|36 bytes | |||
|- | |||
|<pre>26 00 ROL $00 | |||
66 00 ROR $00 | |||
36 00 ROL $00,X \ × 8 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N | |||
|- | |- | ||
|} | |} | ||
Line 19,593: | Line 16,414: | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |||
|<pre>A2 18 LDX #24 ;hides 'CLC' | |||
CA ... DEX × 2 | |||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | |||
|- | |- | ||
|<pre>A0 18 LDY #24 ;hides 'CLC' | |<pre>A0 18 LDY #24 ;hides 'CLC' | ||
88 | 88 ... DEY × 2 | ||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
Line 19,626: | Line 16,445: | ||
|<pre>68 PLA | |<pre>68 PLA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
48 | 48 ... PHA × 2 | ||
18 CLC | 18 CLC | ||
D0 FA BNE *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack | D0 FA BNE *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack | ||
Line 19,639: | Line 16,457: | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre> | |<pre>98 TYA | ||
48 PHA | 48 PHA | ||
A0 13 LDY #19 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
A8 TAY</pre>||Clobbers A, and Z&N; and writes in stack | |||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A2 0B LDX #11 | A2 0B LDX #11 | ||
EA | EA ... NOP × 2 | ||
CA DEX | CA DEX | ||
D0 F9 BNE *-5 | D0 F9 BNE *-5 | ||
Line 19,657: | Line 16,474: | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A0 0B LDY #11 | A0 0B LDY #11 | ||
EA | EA ... NOP × 2 | ||
88 DEY | 88 DEY | ||
D0 F9 BNE *-5 | D0 F9 BNE *-5 | ||
Line 19,671: | Line 16,487: | ||
|<pre>68 PLA | |<pre>68 PLA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 3 | ||
18 CLC | 18 CLC | ||
D0 F9 BNE *-5</pre>||Clobbers A, S, Z&N, and C | D0 F9 BNE *-5</pre>||Clobbers A, S, Z&N, and C | ||
Line 19,694: | Line 16,508: | ||
28 PLP</pre>||Clobbers A; and writes in stack | 28 PLP</pre>||Clobbers A; and writes in stack | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 2 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 3 | ||
18 CLC | 18 CLC | ||
D0 F9 BNE *-5</pre>||Clobbers A, Z&N, and C | D0 F9 BNE *-5</pre>||Clobbers A, Z&N, and C | ||
Line 19,720: | Line 16,531: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
48 | 48 ... PHA × 2 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
08 PHP | 08 PHP | ||
Line 19,739: | Line 16,549: | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |- | ||
|} | !colspan="2"|27 bytes | ||
|- | |||
|<pre>68 ... PLA × 26 | |||
48 PHA</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|29 bytes | |||
|- | |||
|<pre>A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 24 | |||
10 E4 BPL *-26</pre>||Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|37 bytes | |||
|- | |||
|<pre>EA ... NOP × 3 | |||
E6 xx INC @zptemp | |||
36 00 ROL $00,X \ × 8 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | |||
|- | |||
!colspan="2"|38 bytes | |||
|- | |||
|<pre>C5 00 CMP $00 | |||
26 00 ROL $00 \ × 2 | |||
66 00 ROR $00 / | |||
36 00 ROL $00,X \ × 7 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | |||
|- | |||
|<pre>24 00 BIT $00 | |||
26 00 ROL $00 \ × 2 | |||
66 00 ROR $00 / | |||
36 00 ROL $00,X \ × 7 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | |||
|- | |||
|<pre>04 00 NOP $00 | |||
26 00 ROL $00 \ × 2 | |||
66 00 ROR $00 / | |||
36 00 ROL $00,X \ × 7 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|39 bytes | |||
|- | |||
|<pre>4C xx xx JMP *+3 | |||
26 00 ROL $00 \ × 2 | |||
66 00 ROR $00 / | |||
36 00 ROL $00,X \ × 7 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | |||
|- | |||
|} | |||
Line 19,762: | Line 16,619: | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |||
|<pre>08 PHP | |||
A0 14 LDY #20 | |||
88 DEY | |||
D0 FB BNE *-3 | |||
28 PLP</pre>||Clobbers Y; and writes in stack | |||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 19,768: | Line 16,631: | ||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers X; and writes in stack | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>38 SEC | |<pre>38 SEC | ||
Line 19,803: | Line 16,660: | ||
48 PHA | 48 PHA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
48 | 48 ... PHA × 2 | ||
18 CLC | 18 CLC | ||
D0 FA BNE *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack | D0 FA BNE *-4</pre>||Clobbers A, S, Z&N, and C; and writes in stack | ||
Line 19,858: | Line 16,714: | ||
|<pre>E6 xx INC @zptemp | |<pre>E6 xx INC @zptemp | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 3 | ||
18 CLC | 18 CLC | ||
D0 F9 BNE *-5</pre>||Clobbers A, Z&N, and C; and requires @zptemp | D0 F9 BNE *-5</pre>||Clobbers A, Z&N, and C; and requires @zptemp | ||
Line 19,872: | Line 16,726: | ||
68 PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack | 68 PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 3 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
08 PHP | 08 PHP | ||
Line 19,883: | Line 16,735: | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre> | |<pre>48 PHA | ||
18 ... CLC × 3 | |||
48 PHA | |||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
08 PHP | 08 PHP | ||
Line 19,896: | Line 16,746: | ||
A5 00 LDA $00 | A5 00 LDA $00 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 3 | ||
18 CLC | 18 CLC | ||
D0 F9 BNE *-5</pre>||Clobbers A, Z&N, and C | D0 F9 BNE *-5</pre>||Clobbers A, Z&N, and C | ||
Line 19,915: | Line 16,763: | ||
48 PHA | 48 PHA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
08 PHP | 08 PHP \ × 2 | ||
28 PLP | 28 PLP / | ||
10 F9 BPL *-5 | 10 F9 BPL *-5 | ||
68 PLA | 68 PLA | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |||
!colspan="2"|27 bytes | |||
|- | |||
|<pre>68 ... PLA × 27</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|30 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 PLA | |||
48 PHA | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 22 | |||
10 E6 BPL *-24</pre>||Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|36 bytes | |||
|- | |||
|<pre>36 00 ROL $00,X \ × 9 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N | |||
|- | |- | ||
|} | |} | ||
Line 19,944: | Line 16,809: | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack | D0 FB BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack | ||
|- | |||
|<pre>A0 0C LDY #12 | |||
68 PLA | |||
88 DEY | |||
D0 FA BNE *-4</pre>||Clobbers A, Y, S, and Z&N | |||
|- | |- | ||
|<pre>A2 0C LDX #12 | |<pre>A2 0C LDX #12 | ||
Line 19,949: | Line 16,819: | ||
CA DEX | CA DEX | ||
D0 FA BNE *-4</pre>||Clobbers A, X, S, and Z&N | D0 FA BNE *-4</pre>||Clobbers A, X, S, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
Line 20,032: | Line 16,897: | ||
|<pre>18 CLC | |<pre>18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
48 | 48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
28 PLP | 28 PLP | ||
Line 20,073: | Line 16,937: | ||
68 PLA | 68 PLA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 3 | ||
18 CLC | 18 CLC | ||
D0 F9 BNE *-5</pre>||Clobbers A, S, Z&N, and C | D0 F9 BNE *-5</pre>||Clobbers A, S, Z&N, and C | ||
Line 20,081: | Line 16,943: | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 3 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 3 | ||
18 CLC | 18 CLC | ||
D0 F9 BNE *-5</pre>||Clobbers A, Z&N, and C | D0 F9 BNE *-5</pre>||Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|28 bytes | |||
!colspan="2"| | |||
|- | |- | ||
|<pre> | |<pre>EA NOP | ||
68 ... PLA × 26 | |||
48 PHA</pre>||Clobbers A, S, and Z&N | |||
|- | |- | ||
!colspan="2"| | !colspan="2"|30 bytes | ||
|- | |- | ||
|<pre> | |<pre>EA NOP | ||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 24 | |||
10 E4 BPL *-26</pre>||Clobbers A, and Z&N | |||
|- | |- | ||
| | !colspan="2"|38 bytes | ||
|- | |- | ||
!colspan="2"| | |<pre>C5 00 CMP $00 | ||
26 00 ROL $00 | |||
66 00 ROR $00 | |||
36 00 ROL $00,X \ × 8 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | |||
|- | |||
|<pre>24 00 BIT $00 | |||
26 00 ROL $00 | |||
66 00 ROR $00 | |||
36 00 ROL $00,X \ × 8 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | |||
|- | |||
|<pre>E6 xx INC @zptemp | |||
26 00 ROL $00 \ × 2 | |||
66 00 ROR $00 / | |||
36 00 ROL $00,X \ × 7 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | |||
|- | |||
|<pre>04 00 NOP $00 | |||
26 00 ROL $00 | |||
66 00 ROR $00 | |||
36 00 ROL $00,X \ × 8 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|39 bytes | |||
|- | |||
|<pre>4C xx xx JMP *+3 | |||
26 00 ROL $00 | |||
66 00 ROR $00 | |||
36 00 ROL $00,X \ × 8 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | |||
|- | |||
|} | |||
=== 110 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>A9 LDA #83 | |||
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks | |||
|- | |||
!colspan="2"|6 bytes | |||
|- | |||
|<pre>68 PLA | |||
A0 15 LDY #21 | |||
88 DEY | |||
D0 FB BNE *-3</pre>||Clobbers A, Y, S, and Z&N | |||
|- | |- | ||
|<pre> | |<pre>68 PLA | ||
A2 15 LDX #21 | A2 15 LDX #21 | ||
CA DEX | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | D0 FB BNE *-3</pre>||Clobbers A, X, S, and Z&N | ||
|- | |||
!colspan="2"|7 bytes | |||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
A0 15 LDY #21 | A0 15 LDY #21 | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | ||
|- | |||
|<pre>EA ... NOP × 2 | |||
A2 15 LDX #21 | |||
CA DEX | |||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | |||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA | ||
Line 20,192: | Line 17,096: | ||
|<pre>48 PHA | |<pre>48 PHA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 3 | ||
18 CLC | 18 CLC | ||
D0 F9 BNE *-5 | D0 F9 BNE *-5 | ||
Line 20,209: | Line 17,111: | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
8C TXA | |||
48 PHA | 48 PHA | ||
A2 0D LDX #13 | |||
EA NOP | EA NOP | ||
CA DEX | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
68 PLA | 68 PLA | ||
AA TAX | |||
68 PLA</pre>||Clobbers Z&N; and writes in stack | 68 PLA</pre>||Clobbers Z&N; and writes in stack | ||
|- | |- | ||
Line 20,254: | Line 17,156: | ||
18 CLC | 18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
08 PHP | 08 PHP \ × 2 | ||
28 PLP | 28 PLP / | ||
10 F9 BPL *-5 | 10 F9 BPL *-5 | ||
68 PLA | 68 PLA | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |||
!colspan="2"|28 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 ... PLA × 27</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|30 bytes | |||
|- | |||
|<pre>68 PLA | |||
48 PHA | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 23 | |||
10 E5 BPL *-25</pre>||Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|37 bytes | |||
|- | |||
|<pre>EA NOP | |||
36 00 ROL $00,X \ × 9 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N | |||
|- | |- | ||
|} | |} | ||
Line 20,268: | Line 17,188: | ||
{| class="wikitable testtable" | {| class="wikitable testtable" | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |||
|<pre>A2 16 LDX #22 | |||
CA DEX | |||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | |||
|- | |- | ||
|<pre>A0 16 LDY #22 | |<pre>A0 16 LDY #22 | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>A9 E9 LDA #$E9 ;hides 'SBC #$0A' | |<pre>A9 E9 LDA #$E9 ;hides 'SBC #$0A' | ||
Line 20,303: | Line 17,223: | ||
|<pre>48 PHA | |<pre>48 PHA | ||
08 PHP | 08 PHP | ||
A2 14 LDX #20 | |||
CA DEX | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers X, and S; and writes in stack | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
08 PHP | 08 PHP | ||
A0 14 LDY #20 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers Y, and S; and writes in stack | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
Line 20,332: | Line 17,252: | ||
|- | |- | ||
|<pre>A9 0A LDA #$0A ;hides 'ASL A' | |<pre>A9 0A LDA #$0A ;hides 'ASL A' | ||
18 ... CLC × 2 | |||
18 | |||
90 00 BCC *+2 | 90 00 BCC *+2 | ||
18 CLC | 18 CLC | ||
Line 20,376: | Line 17,295: | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA | ||
98 TYA | |||
48 PHA | 48 PHA | ||
A0 13 LDY #19 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
A8 TAY</pre>||Clobbers A, S, and Z&N; and writes in stack | |||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 20,407: | Line 17,326: | ||
28 PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack | 28 PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
38 SEC | |||
38 SEC | |||
A9 69 LDA #$69 ;hides 'ADC #$5A' | A9 69 LDA #$69 ;hides 'ADC #$5A' | ||
5A NOP ;first loop only | 5A NOP ;first loop only | ||
Line 20,427: | Line 17,345: | ||
68 PLA | 68 PLA | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |||
!colspan="2"|28 bytes | |||
|- | |||
|<pre>68 ... PLA × 27 | |||
48 PHA</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|30 bytes | |||
|- | |||
|<pre>A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 25 | |||
10 E3 BPL *-27</pre>||Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|38 bytes | |||
|- | |||
|<pre>C5 00 CMP $00 | |||
36 00 ROL $00,X \ × 9 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | |||
|- | |||
|<pre>24 00 BIT $00 | |||
36 00 ROL $00,X \ × 9 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | |||
|- | |||
|<pre>E6 xx INC @zptemp | |||
26 00 ROL $00 | |||
66 00 ROR $00 | |||
36 00 ROL $00,X \ × 8 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | |||
|- | |||
|<pre>04 00 NOP $00 | |||
36 00 ROL $00,X \ × 9 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|39 bytes | |||
|- | |||
|<pre>4C xx xx JMP *+3 | |||
36 00 ROL $00,X \ × 9 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | |||
|- | |- | ||
|} | |} | ||
Line 20,440: | Line 17,396: | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
48 | A2 15 LDX #21 | ||
CA DEX | |||
D0 FB BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack | |||
|- | |||
|<pre>48 ... PHA × 2 | |||
A0 15 LDY #21 | A0 15 LDY #21 | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack | D0 FB BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack | ||
|- | |- | ||
|<pre> | |<pre>EA NOP | ||
68 PLA | |||
A2 15 LDX #21 | A2 15 LDX #21 | ||
CA DEX | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers X, S, and Z&N | D0 FB BNE *-3</pre>||Clobbers A, X, S, and Z&N | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 20,457: | Line 17,417: | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers A, Y, S, and Z&N | D0 FB BNE *-3</pre>||Clobbers A, Y, S, and Z&N | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 20,476: | Line 17,430: | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
A2 15 LDX #21 | A2 15 LDX #21 | ||
CA DEX | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | D0 FB BNE *-3</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
A0 15 LDY #21 | A0 15 LDY #21 | ||
88 DEY | 88 DEY | ||
Line 20,504: | Line 17,454: | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre> | |<pre>8C TXA | ||
48 PHA | 48 PHA | ||
A2 14 LDX #20 | |||
CA DEX | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
AA TAX</pre>||Clobbers A, and Z&N; and writes in stack | |||
|- | |||
|<pre>08 PHP | |||
A0 0D LDY #13 | |||
C5 00 CMP $00 | |||
88 DEY | |||
D0 F9 BNE *-5 | |||
28 PLP</pre>||Clobbers Y; and writes in stack | |||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A2 0D LDX #13 | A2 0D LDX #13 | ||
C5 00 CMP $00 | |||
CA DEX | CA DEX | ||
D0 F9 BNE *-5 | D0 F9 BNE *-5 | ||
28 PLP</pre>||Clobbers X; and writes in stack | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>EA ... NOP × 2 | |||
|<pre>EA | |||
38 SEC | 38 SEC | ||
A9 15 LDA #21 | A9 15 LDA #21 | ||
Line 20,576: | Line 17,525: | ||
18 CLC | 18 CLC | ||
D0 FB BNE *-3</pre>||Clobbers A, Z&N, and C | D0 FB BNE *-3</pre>||Clobbers A, Z&N, and C | ||
|- | |||
!colspan="2"|28 bytes | |||
|- | |||
|<pre>68 ... PLA × 28</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|31 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 PLA | |||
48 PHA | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 23 | |||
10 E5 BPL *-25</pre>||Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|38 bytes | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
36 00 ROL $00,X \ × 9 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N | |||
|- | |- | ||
|} | |} | ||
Line 20,588: | Line 17,557: | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |||
|<pre>A2 10 LDX #16 | |||
EA NOP | |||
CA DEX | |||
D0 FA BNE *-4</pre>||Clobbers X, and Z&N | |||
|- | |- | ||
|<pre>A0 10 LDY #16 | |<pre>A0 10 LDY #16 | ||
Line 20,593: | Line 17,567: | ||
88 DEY | 88 DEY | ||
D0 FA BNE *-4</pre>||Clobbers Y, and Z&N | D0 FA BNE *-4</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>18 CLC | |<pre>18 CLC | ||
Line 20,650: | Line 17,619: | ||
|<pre>18 CLC | |<pre>18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
18 ... CLC × 2 | |||
18 | |||
90 00 BCC *+2 | 90 00 BCC *+2 | ||
18 CLC | 18 CLC | ||
Line 20,664: | Line 17,632: | ||
28 PLP</pre>||Clobbers A, and S; and writes in stack | 28 PLP</pre>||Clobbers A, and S; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
38 SEC | 38 SEC | ||
A9 14 LDA #20 | A9 14 LDA #20 | ||
Line 20,715: | Line 17,682: | ||
28 PLP</pre>||Requires dummy interrupt handler; and writes in stack | 28 PLP</pre>||Requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 3 | ||
18 CLC | 18 CLC | ||
D0 F9 BNE *-5 | D0 F9 BNE *-5 | ||
Line 20,727: | Line 17,691: | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre> | |<pre>08 PHP | ||
08 PHP | |||
48 PHA | 48 PHA | ||
18 | 18 ... CLC × 2 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
08 PHP | 08 PHP | ||
Line 20,737: | Line 17,700: | ||
68 PLA | 68 PLA | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |||
!colspan="2"|29 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 ... PLA × 27 | |||
48 PHA</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|31 bytes | |||
|- | |||
|<pre>EA NOP | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 25 | |||
10 E3 BPL *-27</pre>||Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|38 bytes | |||
|- | |||
|<pre>E6 xx INC @zptemp | |||
36 00 ROL $00,X \ × 9 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | |||
|- | |||
!colspan="2"|39 bytes | |||
|- | |||
|<pre>EA NOP | |||
C5 00 CMP $00 | |||
36 00 ROL $00,X \ × 9 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | |||
|- | |||
|<pre>EA NOP | |||
24 00 BIT $00 | |||
36 00 ROL $00,X \ × 9 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | |||
|- | |||
|<pre>EA NOP | |||
04 00 NOP $00 | |||
36 00 ROL $00,X \ × 9 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | |||
|- | |||
!colspan="2"|40 bytes | |||
|- | |||
|<pre>EA NOP | |||
4C xx xx JMP *+3 | |||
36 00 ROL $00,X \ × 9 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and not relocatable code | |||
|- | |- | ||
|} | |} | ||
Line 20,749: | Line 17,756: | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |||
|<pre>48 PHA | |||
A2 16 LDX #22 | |||
CA DEX | |||
D0 FB BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack | |||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 20,754: | Line 17,766: | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack | D0 FB BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 20,796: | Line 17,803: | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A0 18 LDY #24 ;hides 'CLC' | A0 18 LDY #24 ;hides 'CLC' | ||
88 | 88 ... DEY × 2 | ||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers Y; and writes in stack | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
Line 20,803: | Line 17,809: | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A2 18 LDX #24 ;hides 'CLC' | A2 18 LDX #24 ;hides 'CLC' | ||
CA | CA ... DEX × 2 | ||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers X; and writes in stack | 28 PLP</pre>||Clobbers X; and writes in stack | ||
Line 20,834: | Line 17,839: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
8C TXA | |||
48 PHA | 48 PHA | ||
A2 14 LDX #20 | |||
CA DEX | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
AA TAX</pre>||Clobbers A, and Z&N; and writes in stack | |||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
98 TYA | |||
48 PHA | 48 PHA | ||
A0 13 LDY #19 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
A8 TAY | |||
68 PLA</pre>||Clobbers Z&N; and writes in stack | 68 PLA</pre>||Clobbers Z&N; and writes in stack | ||
|- | |- | ||
Line 20,864: | Line 17,869: | ||
|<pre>A5 00 LDA $00 | |<pre>A5 00 LDA $00 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
18 ... CLC × 2 | |||
18 | |||
90 00 BCC *+2 | 90 00 BCC *+2 | ||
18 CLC | 18 CLC | ||
Line 20,881: | Line 17,885: | ||
68 PLA | 68 PLA | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |||
!colspan="2"|29 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 ... PLA × 28</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|31 bytes | |||
|- | |||
|<pre>68 PLA | |||
48 PHA | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 24 | |||
10 E4 BPL *-26</pre>||Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|39 bytes | |||
|- | |||
|<pre>EA ... NOP × 3 | |||
36 00 ROL $00,X \ × 9 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N | |||
|- | |- | ||
|} | |} | ||
Line 21,030: | Line 18,054: | ||
68 PLA | 68 PLA | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |||
!colspan="2"|29 bytes | |||
|- | |||
|<pre>68 ... PLA × 28 | |||
48 PHA</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|31 bytes | |||
|- | |||
|<pre>A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 26 | |||
10 E2 BPL *-28</pre>||Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|39 bytes | |||
|- | |||
|<pre>EA NOP | |||
E6 xx INC @zptemp | |||
36 00 ROL $00,X \ × 9 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | |||
|- | |||
!colspan="2"|40 bytes | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
C5 00 CMP $00 | |||
36 00 ROL $00,X \ × 9 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and C | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
24 00 BIT $00 | |||
36 00 ROL $00,X \ × 9 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N, and V | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
04 00 NOP $00 | |||
36 00 ROL $00,X \ × 9 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires support for unofficial opcodes | |||
|- | |- | ||
|} | |} | ||
Line 21,155: | Line 18,215: | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA | ||
8C TXA | |||
48 PHA | 48 PHA | ||
A2 14 LDX #20 | |||
CA DEX | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
AA TAX</pre>||Clobbers A, S, and Z&N; and writes in stack | |||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 21,181: | Line 18,241: | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre> | |<pre>98 TYA | ||
48 PHA | 48 PHA | ||
A0 0D LDY #13 | |||
A5 00 LDA $00 | A5 00 LDA $00 | ||
88 DEY | |||
D0 F9 BNE *-5 | D0 F9 BNE *-5 | ||
68 PLA | 68 PLA | ||
A8 TAY</pre>||Clobbers A, and Z&N; and writes in stack | |||
|- | |- | ||
|<pre>20 xx xx JSR @rts14 | |<pre>20 xx xx JSR @rts14 | ||
Line 21,208: | Line 18,268: | ||
|<pre>E6 xx INC @zptemp | |<pre>E6 xx INC @zptemp | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
18 ... CLC × 2 | |||
18 | 90 00 BCC *+2 | ||
90 00 BCC *+2 | |||
18 CLC | 18 CLC | ||
D0 F8 BNE *-6</pre>||Clobbers A, Z&N, and C; and requires @zptemp | D0 F8 BNE *-6</pre>||Clobbers A, Z&N, and C; and requires @zptemp | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
38 SEC | 38 SEC | ||
Line 21,223: | Line 18,281: | ||
28 PLP</pre>||Clobbers A, and S; and writes in stack | 28 PLP</pre>||Clobbers A, and S; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 3 | ||
38 SEC | 38 SEC | ||
A9 14 LDA #20 | A9 14 LDA #20 | ||
Line 21,248: | Line 18,304: | ||
A5 00 LDA $00 | A5 00 LDA $00 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
18 ... CLC × 2 | |||
18 | |||
90 00 BCC *+2 | 90 00 BCC *+2 | ||
18 CLC | 18 CLC | ||
D0 F8 BNE *-6</pre>||Clobbers A, Z&N, and C | D0 F8 BNE *-6</pre>||Clobbers A, Z&N, and C | ||
|- | |||
!colspan="2"|29 bytes | |||
|- | |||
|<pre>68 ... PLA × 29</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|32 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 PLA | |||
48 PHA | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 24 | |||
10 E4 BPL *-26</pre>||Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|40 bytes | |||
|- | |||
|<pre>26 00 ROL $00 \ × 2 | |||
66 00 ROR $00 / | |||
36 00 ROL $00,X \ × 8 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N | |||
|- | |- | ||
|} | |} | ||
Line 21,276: | Line 18,352: | ||
D0 FA BNE *-4</pre>||Clobbers A, Y, and Z&N | D0 FA BNE *-4</pre>||Clobbers A, Y, and Z&N | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
A2 16 LDX #22 | A2 16 LDX #22 | ||
CA DEX | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack | D0 FB BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
A0 16 LDY #22 | A0 16 LDY #22 | ||
88 DEY | 88 DEY | ||
Line 21,306: | Line 18,380: | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
A0 10 LDY #16 | |||
EA NOP | EA NOP | ||
88 DEY | |||
D0 FA BNE *-4</pre>||Clobbers Y, and Z&N | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
A2 10 LDX #16 | A2 10 LDX #16 | ||
EA NOP | EA NOP | ||
Line 21,313: | Line 18,392: | ||
D0 FA BNE *-4</pre>||Clobbers X, and Z&N | D0 FA BNE *-4</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
18 CLC | 18 CLC | ||
A9 E9 LDA #$E9 ;hides 'SBC #$0A' | A9 E9 LDA #$E9 ;hides 'SBC #$0A' | ||
Line 21,329: | Line 18,400: | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre> | |<pre>8C TXA | ||
48 PHA | 48 PHA | ||
A2 15 LDX #21 | |||
CA DEX | |||
D0 FB BNE *-3 | |||
68 PLA | |||
AA TAX</pre>||Clobbers A, and Z&N; and writes in stack | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
08 PHP | |||
A0 15 LDY #21 | A0 15 LDY #21 | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers Y; and writes in stack | |||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
A2 15 LDX #21 | A2 15 LDX #21 | ||
Line 21,344: | Line 18,421: | ||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers X; and writes in stack | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 21,389: | Line 18,458: | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 2 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA NOP | EA NOP | ||
Line 21,396: | Line 18,464: | ||
76 00 ROR $00,X | 76 00 ROR $00,X | ||
90 F8 BCC *-6</pre>||Clobbers A, Z&N, and C | 90 F8 BCC *-6</pre>||Clobbers A, Z&N, and C | ||
|- | |||
!colspan="2"|30 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 ... PLA × 28 | |||
48 PHA</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|32 bytes | |||
|- | |||
|<pre>EA NOP | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 26 | |||
10 E2 BPL *-28</pre>||Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|40 bytes | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
E6 xx INC @zptemp | |||
36 00 ROL $00,X \ × 9 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N; and requires @zptemp | |||
|- | |- | ||
|} | |} | ||
Line 21,472: | Line 18,561: | ||
48 PHA | 48 PHA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
18 ... CLC × 2 | |||
18 | |||
90 00 BCC *+2 | 90 00 BCC *+2 | ||
18 CLC | 18 CLC | ||
Line 21,531: | Line 18,619: | ||
68 PLA | 68 PLA | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |||
!colspan="2"|30 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 ... PLA × 29</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|32 bytes | |||
|- | |||
|<pre>68 PLA | |||
48 PHA | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 25 | |||
10 E3 BPL *-27</pre>||Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|40 bytes | |||
|- | |||
|<pre>26 00 ROL $00 | |||
66 00 ROR $00 | |||
36 00 ROL $00,X \ × 9 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N | |||
|- | |- | ||
|} | |} | ||
Line 21,565: | Line 18,674: | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |||
|<pre>A4 00 LDY $00 | |||
A0 17 LDY #23 | |||
88 DEY | |||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | |||
|- | |- | ||
|<pre>A6 00 LDX $00 | |<pre>A6 00 LDX $00 | ||
Line 21,570: | Line 18,684: | ||
CA DEX | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | D0 FB BNE *-3</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>A5 00 LDA $00 | |<pre>A5 00 LDA $00 | ||
Line 21,608: | Line 18,717: | ||
|- | |- | ||
|<pre>A9 0A LDA #$0A ;hides 'ASL A' | |<pre>A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 4 | ||
18 CLC | 18 CLC | ||
D0 F8 BNE *-6</pre>||Clobbers A, Z&N, and C | D0 F8 BNE *-6</pre>||Clobbers A, Z&N, and C | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
A2 15 LDX #21 | A2 15 LDX #21 | ||
Line 21,623: | Line 18,728: | ||
28 PLP</pre>||Clobbers X, and S; and writes in stack | 28 PLP</pre>||Clobbers X, and S; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
A0 15 LDY #21 | A0 15 LDY #21 | ||
Line 21,641: | Line 18,745: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
8C TXA | |||
48 PHA | 48 PHA | ||
A2 15 LDX #21 | |||
CA DEX | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
AA TAX</pre>||Clobbers A, and Z&N; and writes in stack | |||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
08 PHP | 08 PHP | ||
A2 15 LDX #21 | A2 15 LDX #21 | ||
Line 21,658: | Line 18,760: | ||
28 PLP</pre>||Clobbers X; and writes in stack | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
08 PHP | 08 PHP | ||
A0 15 LDY #21 | A0 15 LDY #21 | ||
Line 21,675: | Line 18,775: | ||
28 PLP</pre>||Clobbers A, and S; requires dummy interrupt handler; and writes in stack | 28 PLP</pre>||Clobbers A, and S; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
18 CLC | 18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
Line 21,686: | Line 18,785: | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
8C TXA | |||
48 PHA | 48 PHA | ||
A2 14 LDX #20 | |||
CA DEX | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
AA TAX | |||
68 PLA</pre>||Clobbers Z&N; and writes in stack | 68 PLA</pre>||Clobbers Z&N; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
38 SEC | 38 SEC | ||
Line 21,715: | Line 18,813: | ||
68 PLA | 68 PLA | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |||
!colspan="2"|30 bytes | |||
|- | |||
|<pre>68 ... PLA × 29 | |||
48 PHA</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|32 bytes | |||
|- | |||
|<pre>A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 27 | |||
10 E1 BPL *-29</pre>||Clobbers A, and Z&N | |||
|- | |- | ||
|} | |} | ||
Line 21,727: | Line 18,837: | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |||
|<pre>A0 11 LDY #17 | |||
EA NOP | |||
88 DEY | |||
D0 FA BNE *-4</pre>||Clobbers Y, and Z&N | |||
|- | |- | ||
|<pre>A2 11 LDX #17 | |<pre>A2 11 LDX #17 | ||
Line 21,732: | Line 18,847: | ||
CA DEX | CA DEX | ||
D0 FA BNE *-4</pre>||Clobbers X, and Z&N | D0 FA BNE *-4</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA | ||
Line 21,771: | Line 18,881: | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A2 10 LDX #16 | |||
EA NOP | EA NOP | ||
CA DEX | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A0 10 LDY #16 | |||
EA NOP | EA NOP | ||
88 DEY | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 21,817: | Line 18,927: | ||
48 PHA | 48 PHA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
18 ... CLC × 2 | |||
18 | |||
90 00 BCC *+2 | 90 00 BCC *+2 | ||
18 CLC | 18 CLC | ||
Line 21,844: | Line 18,953: | ||
68 PLA | 68 PLA | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |||
!colspan="2"|30 bytes | |||
|- | |||
|<pre>68 ... PLA × 30</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|33 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 PLA | |||
48 PHA | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 25 | |||
10 E3 BPL *-27</pre>||Clobbers A, and Z&N | |||
|- | |||
!colspan="2"|40 bytes | |||
|- | |||
|<pre>36 00 ROL $00,X \ × 10 | |||
76 00 ROR $00,X /</pre>||Clobbers Z&N | |||
|- | |- | ||
|} | |} | ||
Line 21,851: | Line 18,979: | ||
{| class="wikitable testtable" | {| class="wikitable testtable" | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |||
|<pre>A2 18 LDX #24 | |||
CA DEX | |||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | |||
|- | |- | ||
|<pre>A0 18 LDY #24 | |<pre>A0 18 LDY #24 | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>A9 LDA #94 | |<pre>A9 LDA #94 | ||
Line 21,914: | Line 19,042: | ||
|<pre>48 PHA | |<pre>48 PHA | ||
08 PHP | 08 PHP | ||
A0 16 LDY #22 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers Y, and S; and writes in stack | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
08 PHP | 08 PHP | ||
A2 16 LDX #22 | |||
CA DEX | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers X, and S; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
A9 E9 LDA #$E9 ;hides 'SBC #$0A' | A9 E9 LDA #$E9 ;hides 'SBC #$0A' | ||
0A ASL A ;first loop only | 0A ASL A ;first loop only | ||
Line 21,974: | Line 19,101: | ||
|<pre>18 CLC | |<pre>18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 4 | ||
18 CLC | 18 CLC | ||
D0 F8 BNE *-6</pre>||Clobbers A, Z&N, and C | D0 F8 BNE *-6</pre>||Clobbers A, Z&N, and C | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
08 PHP | 08 PHP | ||
Line 22,005: | Line 19,128: | ||
|<pre>EA NOP | |<pre>EA NOP | ||
48 PHA | 48 PHA | ||
8C TXA | |||
48 PHA | 48 PHA | ||
A2 14 LDX #20 | |||
CA DEX | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
AA TAX | |||
68 PLA</pre>||Clobbers Z&N; and writes in stack | 68 PLA</pre>||Clobbers Z&N; and writes in stack | ||
|- | |- | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
48 PHA | 48 PHA | ||
Line 22,026: | Line 19,148: | ||
68 PLA | 68 PLA | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |||
!colspan="2"|31 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 ... PLA × 29 | |||
48 PHA</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|33 bytes | |||
|- | |||
|<pre>EA NOP | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 27 | |||
10 E1 BPL *-29</pre>||Clobbers A, and Z&N | |||
|- | |- | ||
|} | |} | ||
Line 22,038: | Line 19,174: | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |||
|<pre>EA NOP | |||
A0 11 LDY #17 | |||
EA NOP | |||
88 DEY | |||
D0 FA BNE *-4</pre>||Clobbers Y, and Z&N | |||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 22,044: | Line 19,186: | ||
CA DEX | CA DEX | ||
D0 FA BNE *-4</pre>||Clobbers X, and Z&N | D0 FA BNE *-4</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>38 SEC | |<pre>38 SEC | ||
Line 22,100: | Line 19,236: | ||
|<pre>EA NOP | |<pre>EA NOP | ||
08 PHP | 08 PHP | ||
A0 10 LDY #16 | |||
EA NOP | EA NOP | ||
88 DEY | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
08 PHP | 08 PHP | ||
A2 10 LDX #16 | |||
EA NOP | EA NOP | ||
CA DEX | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 22,151: | Line 19,287: | ||
|<pre>A5 00 LDA $00 | |<pre>A5 00 LDA $00 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 4 | ||
18 CLC | 18 CLC | ||
D0 F8 BNE *-6</pre>||Clobbers A, Z&N, and C | D0 F8 BNE *-6</pre>||Clobbers A, Z&N, and C | ||
|- | |||
!colspan="2"|31 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 ... PLA × 30</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|33 bytes | |||
|- | |||
|<pre>68 PLA | |||
48 PHA | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 26 | |||
10 E2 BPL *-28</pre>||Clobbers A, and Z&N | |||
|- | |- | ||
|} | |} | ||
Line 22,169: | Line 19,316: | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |||
|<pre>EA NOP | |||
A2 18 LDX #24 | |||
CA DEX | |||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | |||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 22,174: | Line 19,326: | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
Line 22,224: | Line 19,371: | ||
|<pre>68 PLA | |<pre>68 PLA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 4 | ||
18 CLC | 18 CLC | ||
D0 F8 BNE *-6</pre>||Clobbers A, S, Z&N, and C | D0 F8 BNE *-6</pre>||Clobbers A, S, Z&N, and C | ||
Line 22,233: | Line 19,377: | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 2 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 4 | ||
18 CLC | 18 CLC | ||
D0 F8 BNE *-6</pre>||Clobbers A, Z&N, and C | D0 F8 BNE *-6</pre>||Clobbers A, Z&N, and C | ||
Line 22,262: | Line 19,402: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
48 | 48 ... PHA × 2 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
08 PHP | 08 PHP | ||
Line 22,305: | Line 19,444: | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
98 TYA | |||
48 PHA | 48 PHA | ||
A0 0D LDY #13 | |||
A5 00 LDA $00 | A5 00 LDA $00 | ||
88 DEY | |||
D0 F9 BNE *-5 | D0 F9 BNE *-5 | ||
68 PLA | 68 PLA | ||
A8 TAY | |||
68 PLA</pre>||Clobbers Z&N; and writes in stack | 68 PLA</pre>||Clobbers Z&N; and writes in stack | ||
|- | |- | ||
Line 22,325: | Line 19,464: | ||
28 PLP</pre>||Requires @rts14; and writes in stack | 28 PLP</pre>||Requires @rts14; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
48 PHA | 48 PHA | ||
Line 22,338: | Line 19,476: | ||
!colspan="2"|14 bytes | !colspan="2"|14 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
08 PHP | 08 PHP | ||
48 PHA | 48 PHA | ||
Line 22,349: | Line 19,485: | ||
68 PLA | 68 PLA | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |||
!colspan="2"|31 bytes | |||
|- | |||
|<pre>68 ... PLA × 30 | |||
48 PHA</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|33 bytes | |||
|- | |||
|<pre>A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 28 | |||
10 E0 BPL *-30</pre>||Clobbers A, and Z&N | |||
|- | |- | ||
|} | |} | ||
Line 22,384: | Line 19,532: | ||
D0 FC BNE *-2</pre>||Clobbers A, Z&N, C, and V; requires dummy interrupt handler; and writes in stack | D0 FC BNE *-2</pre>||Clobbers A, Z&N, C, and V; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 2 | ||
A9 E9 LDA #$E9 ;hides 'SBC #$0A' | A9 E9 LDA #$E9 ;hides 'SBC #$0A' | ||
0A ASL A ;first loop only | 0A ASL A ;first loop only | ||
Line 22,418: | Line 19,565: | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A0 0D LDY #13 ;hides 'ORA abs' | |||
A5 00 LDA $0 | A5 00 LDA $0 | ||
88 DEY | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers A, and | 28 PLP</pre>||Clobbers A, and Y; and writes in stack | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A2 0D LDX #13 ;hides 'ORA abs' | |||
A5 00 LDA $0 | A5 00 LDA $0 | ||
CA DEX | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers A, and | 28 PLP</pre>||Clobbers A, and X; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 22,438: | Line 19,585: | ||
D0 F8 BNE *-6</pre>||Clobbers A, Z&N, C, and V | D0 F8 BNE *-6</pre>||Clobbers A, Z&N, C, and V | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
A9 E9 LDA #$E9 ;hides 'SBC #$0A' | A9 E9 LDA #$E9 ;hides 'SBC #$0A' | ||
Line 22,446: | Line 19,592: | ||
28 PLP</pre>||Clobbers A, and S; and writes in stack | 28 PLP</pre>||Clobbers A, and S; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
48 | 08 PHP | ||
A0 16 LDY #22 | |||
88 DEY | |||
D0 FB BNE *-3 | |||
28 PLP</pre>||Clobbers Y, and S; and writes in stack | |||
|- | |||
|<pre>48 ... PHA × 2 | |||
08 PHP | 08 PHP | ||
A2 16 LDX #22 | A2 16 LDX #22 | ||
Line 22,454: | Line 19,606: | ||
28 PLP</pre>||Clobbers X, and S; and writes in stack | 28 PLP</pre>||Clobbers X, and S; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 3 | ||
A9 E9 LDA #$E9 ;hides 'SBC #$0A' | A9 E9 LDA #$E9 ;hides 'SBC #$0A' | ||
0A ASL A ;first loop only | 0A ASL A ;first loop only | ||
Line 22,488: | Line 19,630: | ||
28 PLP</pre>||Clobbers A; and writes in stack | 28 PLP</pre>||Clobbers A; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
A0 10 LDY #16 | A0 10 LDY #16 | ||
Line 22,497: | Line 19,638: | ||
28 PLP</pre>||Clobbers Y; and writes in stack | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
A2 10 LDX #16 | A2 10 LDX #16 | ||
Line 22,506: | Line 19,646: | ||
28 PLP</pre>||Clobbers X; and writes in stack | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
48 PHA | 48 PHA | ||
18 CLC | 18 CLC | ||
Line 22,518: | Line 19,657: | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
8C TXA | |||
48 PHA | 48 PHA | ||
A2 15 LDX #21 | |||
CA DEX | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
AA TAX | |||
68 PLA</pre>||Clobbers Z&N; and writes in stack | 68 PLA</pre>||Clobbers Z&N; and writes in stack | ||
|- | |- | ||
|<pre>E6 xx INC @zptemp | |<pre>E6 xx INC @zptemp | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 4 | ||
18 CLC | 18 CLC | ||
D0 F8 BNE *-6</pre>||Clobbers A, Z&N, and C; and requires @zptemp | D0 F8 BNE *-6</pre>||Clobbers A, Z&N, and C; and requires @zptemp | ||
Line 22,551: | Line 19,687: | ||
A5 00 LDA $00 | A5 00 LDA $00 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 4 | ||
18 CLC | 18 CLC | ||
D0 F8 BNE *-6</pre>||Clobbers A, Z&N, and C | D0 F8 BNE *-6</pre>||Clobbers A, Z&N, and C | ||
|- | |||
!colspan="2"|31 bytes | |||
|- | |||
|<pre>68 ... PLA × 31</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|34 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 PLA | |||
48 PHA | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 26 | |||
10 E2 BPL *-28</pre>||Clobbers A, and Z&N | |||
|- | |- | ||
|} | |} | ||
Line 22,582: | Line 19,729: | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
EA | A2 18 LDX #24 | ||
CA DEX | |||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
A0 18 LDY #24 | A0 18 LDY #24 | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 22,655: | Line 19,800: | ||
68 PLA | 68 PLA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 4 | ||
18 CLC | 18 CLC | ||
D0 F8 BNE *-6</pre>||Clobbers A, S, Z&N, and C | D0 F8 BNE *-6</pre>||Clobbers A, S, Z&N, and C | ||
Line 22,664: | Line 19,806: | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 3 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 4 | ||
18 CLC | 18 CLC | ||
D0 F8 BNE *-6</pre>||Clobbers A, Z&N, and C | D0 F8 BNE *-6</pre>||Clobbers A, Z&N, and C | ||
|- | |||
!colspan="2"|32 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 ... PLA × 30 | |||
48 PHA</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|34 bytes | |||
|- | |||
|<pre>EA NOP | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 28 | |||
10 E0 BPL *-30</pre>||Clobbers A, and Z&N | |||
|- | |- | ||
|} | |} | ||
Line 22,739: | Line 19,890: | ||
28 PLP</pre>||Clobbers X, and S; and writes in stack | 28 PLP</pre>||Clobbers X, and S; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
A9 E9 LDA #$E9 ;hides 'SBC #$0A' | A9 E9 LDA #$E9 ;hides 'SBC #$0A' | ||
0A ASL A ;first loop only | 0A ASL A ;first loop only | ||
Line 22,747: | Line 19,897: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
68 | 68 ... PLA × 2 | ||
A9 E9 LDA #$E9 ;hides 'SBC #$0A' | A9 E9 LDA #$E9 ;hides 'SBC #$0A' | ||
0A ASL A ;first loop only | 0A ASL A ;first loop only | ||
Line 22,802: | Line 19,951: | ||
|- | |- | ||
|<pre>A9 0A LDA #$0A ;hides 'ASL A' | |<pre>A9 0A LDA #$0A ;hides 'ASL A' | ||
D0 | 18 CLC | ||
D0 FC BNE *-2 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA NOP | EA NOP | ||
18 CLC | 18 CLC | ||
D0 | D0 FB BNE *-3</pre>||Clobbers A, Z&N, and C | ||
|- | |- | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
Line 22,813: | Line 19,962: | ||
|<pre>EA NOP | |<pre>EA NOP | ||
48 PHA | 48 PHA | ||
8C TXA | |||
48 PHA | 48 PHA | ||
A2 15 LDX #21 | |||
CA DEX | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
AA TAX | |||
68 PLA</pre>||Clobbers Z&N; and writes in stack | 68 PLA</pre>||Clobbers Z&N; and writes in stack | ||
|- | |- | ||
Line 22,834: | Line 19,983: | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
48 PHA | 48 PHA | ||
Line 22,845: | Line 19,993: | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |- | ||
|} | !colspan="2"|32 bytes | ||
|- | |||
|<pre>EA NOP | |||
68 ... PLA × 31</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|34 bytes | |||
|- | |||
|<pre>68 PLA | |||
48 PHA | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 27 | |||
10 E1 BPL *-29</pre>||Clobbers A, and Z&N | |||
|- | |||
|} | |||
=== 127 cycles === | === 127 cycles === | ||
Line 22,891: | Line 20,053: | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A0 11 LDY #17 | |||
EA NOP | EA NOP | ||
88 DEY | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A2 11 LDX #17 | |||
EA NOP | EA NOP | ||
CA DEX | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>A9 0A LDA #$0A ;hides 'ASL A' | |<pre>A9 0A LDA #$0A ;hides 'ASL A' | ||
Line 22,942: | Line 20,104: | ||
68 PLA</pre>||Clobbers Z&N, C, and V; and writes in stack | 68 PLA</pre>||Clobbers Z&N, C, and V; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
38 SEC | 38 SEC | ||
A9 18 LDA #24 | A9 18 LDA #24 | ||
Line 22,968: | Line 20,129: | ||
|- | |- | ||
|<pre>A9 0A LDA #$0A ;hides 'ASL A' | |<pre>A9 0A LDA #$0A ;hides 'ASL A' | ||
18 ... CLC × 3 | |||
18 | |||
90 00 BCC *+2 | 90 00 BCC *+2 | ||
18 CLC | 18 CLC | ||
D0 F7 BNE *-7</pre>||Clobbers A, Z&N, and C | D0 F7 BNE *-7</pre>||Clobbers A, Z&N, and C | ||
|- | |||
!colspan="2"|32 bytes | |||
|- | |||
|<pre>68 ... PLA × 31 | |||
48 PHA</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|34 bytes | |||
|- | |||
|<pre>A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 29 | |||
10 DF BPL *-31</pre>||Clobbers A, and Z&N | |||
|- | |- | ||
|} | |} | ||
Line 23,096: | Line 20,267: | ||
|<pre>EA NOP | |<pre>EA NOP | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
D0 | 18 CLC | ||
D0 FC BNE *-2 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA NOP | EA NOP | ||
18 CLC | 18 CLC | ||
D0 | D0 FB BNE *-3</pre>||Clobbers A, Z&N, and C | ||
|- | |||
!colspan="2"|32 bytes | |||
|- | |||
|<pre>68 ... PLA × 32</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|35 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 PLA | |||
48 PHA | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 27 | |||
10 E1 BPL *-29</pre>||Clobbers A, and Z&N | |||
|- | |- | ||
|} | |} | ||
Line 23,130: | Line 20,315: | ||
|- | |- | ||
|<pre>A0 88 LDY #136 ;hides 'DEY' | |<pre>A0 88 LDY #136 ;hides 'DEY' | ||
68 | 68 ... PLA × 2 | ||
30 FB BMI *-3</pre>||Clobbers A, Y, S, and Z&N | 30 FB BMI *-3</pre>||Clobbers A, Y, S, and Z&N | ||
|- | |- | ||
Line 23,181: | Line 20,365: | ||
|<pre>EA NOP | |<pre>EA NOP | ||
08 PHP | 08 PHP | ||
A2 11 LDX #17 | |||
EA NOP | EA NOP | ||
CA DEX | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
08 PHP | 08 PHP | ||
A0 11 LDY #17 | |||
EA NOP | EA NOP | ||
88 DEY | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 23,203: | Line 20,387: | ||
68 PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack | 68 PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 3 | ||
A9 E9 LDA #$E9 ;hides 'SBC #$0A' | A9 E9 LDA #$E9 ;hides 'SBC #$0A' | ||
0A ASL A ;first loop only | 0A ASL A ;first loop only | ||
Line 23,242: | Line 20,424: | ||
|<pre>18 CLC | |<pre>18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
18 ... CLC × 3 | |||
18 | |||
90 00 BCC *+2 | 90 00 BCC *+2 | ||
18 CLC | 18 CLC | ||
D0 F7 BNE *-7</pre>||Clobbers A, Z&N, and C | D0 F7 BNE *-7</pre>||Clobbers A, Z&N, and C | ||
|- | |||
!colspan="2"|33 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 ... PLA × 31 | |||
48 PHA</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|35 bytes | |||
|- | |||
|<pre>EA NOP | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 29 | |||
10 DF BPL *-31</pre>||Clobbers A, and Z&N | |||
|- | |- | ||
|} | |} | ||
Line 23,261: | Line 20,455: | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
A2 E8 LDX #232 ;hides 'INX' | A2 E8 LDX #232 ;hides 'INX' | ||
D0 FD BNE *-1</pre>||Clobbers X, S, and Z&N; and writes in stack | D0 FD BNE *-1</pre>||Clobbers X, S, and Z&N; and writes in stack | ||
Line 23,278: | Line 20,471: | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
EA | A2 19 LDX #25 | ||
CA DEX | |||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
A0 19 LDY #25 | A0 19 LDY #25 | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 23,336: | Line 20,527: | ||
|<pre>A5 00 LDA $00 | |<pre>A5 00 LDA $00 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
18 ... CLC × 3 | |||
18 | |||
90 00 BCC *+2 | 90 00 BCC *+2 | ||
18 CLC | 18 CLC | ||
D0 F7 BNE *-7</pre>||Clobbers A, Z&N, and C | D0 F7 BNE *-7</pre>||Clobbers A, Z&N, and C | ||
|- | |||
!colspan="2"|33 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 ... PLA × 32</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|35 bytes | |||
|- | |||
|<pre>68 PLA | |||
48 PHA | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 28 | |||
10 E0 BPL *-30</pre>||Clobbers A, and Z&N | |||
|- | |- | ||
|} | |} | ||
Line 23,350: | Line 20,553: | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |- | ||
|<pre>A0 1A LDY #26 | |<pre>A2 1A LDX #26 | ||
CA DEX | |||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | |||
|- | |||
|<pre>A0 1A LDY #26 | |||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>A9 LDA #104 | |<pre>A9 LDA #104 | ||
Line 23,453: | Line 20,656: | ||
68 PLA</pre>||Clobbers Z&N, C, and V; requires dummy interrupt handler; and writes in stack | 68 PLA</pre>||Clobbers Z&N, C, and V; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 2 | ||
08 PHP | 08 PHP | ||
A9 E9 LDA #$E9 ;hides 'SBC #$0A' | A9 E9 LDA #$E9 ;hides 'SBC #$0A' | ||
Line 23,497: | Line 20,699: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
48 | 48 ... PHA × 3 | ||
A9 E9 LDA #$E9 ;hides 'SBC #$0A' | A9 E9 LDA #$E9 ;hides 'SBC #$0A' | ||
0A ASL A ;first loop only | 0A ASL A ;first loop only | ||
Line 23,516: | Line 20,716: | ||
68 PLA</pre>||Clobbers Z&N, C, and V; and writes in stack | 68 PLA</pre>||Clobbers Z&N, C, and V; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
48 PHA | 48 PHA | ||
Line 23,528: | Line 20,727: | ||
|<pre>68 PLA | |<pre>68 PLA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
18 ... CLC × 3 | |||
18 | |||
90 00 BCC *+2 | 90 00 BCC *+2 | ||
18 CLC | 18 CLC | ||
Line 23,548: | Line 20,745: | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 2 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
18 ... CLC × 3 | |||
18 | |||
90 00 BCC *+2 | 90 00 BCC *+2 | ||
18 CLC | 18 CLC | ||
D0 F7 BNE *-7</pre>||Clobbers A, Z&N, and C | D0 F7 BNE *-7</pre>||Clobbers A, Z&N, and C | ||
|- | |||
!colspan="2"|33 bytes | |||
|- | |||
|<pre>68 ... PLA × 32 | |||
48 PHA</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|35 bytes | |||
|- | |||
|<pre>A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 30 | |||
10 DE BPL *-32</pre>||Clobbers A, and Z&N | |||
|- | |- | ||
|} | |} | ||
Line 23,570: | Line 20,776: | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 2 | ||
A2 E8 LDX #232 ;hides 'INX' | A2 E8 LDX #232 ;hides 'INX' | ||
D0 FD BNE *-1</pre>||Clobbers A, X, S, and Z&N | D0 FD BNE *-1</pre>||Clobbers A, X, S, and Z&N | ||
Line 23,582: | Line 20,787: | ||
A2 E8 LDX #232 ;hides 'INX' | A2 E8 LDX #232 ;hides 'INX' | ||
D0 FD BNE *-1</pre>||Clobbers A, X, and Z&N | D0 FD BNE *-1</pre>||Clobbers A, X, and Z&N | ||
|- | |||
|<pre>48 PHA | |||
A0 10 LDY #16 | |||
48 PHA | |||
88 DEY | |||
D0 FA BNE *-4</pre>||Clobbers Y, S, and Z&N; and writes in stack | |||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 23,588: | Line 20,799: | ||
CA DEX | CA DEX | ||
D0 FA BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack | D0 FA BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 23,613: | Line 20,818: | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
A0 19 LDY #25 | |||
EA | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | |||
|- | |||
|<pre>EA ... NOP × 3 | |||
A2 19 LDX #25 | A2 19 LDX #25 | ||
CA DEX | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | D0 FB BNE *-3</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA | ||
Line 23,635: | Line 20,836: | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre> | |<pre>98 TYA | ||
48 PHA | 48 PHA | ||
A0 18 LDY #24 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
A8 TAY</pre>||Clobbers A, and Z&N; and writes in stack | |||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
A2 18 LDX #24 | A2 18 LDX #24 | ||
Line 23,651: | Line 20,851: | ||
28 PLP</pre>||Clobbers X; and writes in stack | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
A0 18 LDY #24 | A0 18 LDY #24 | ||
Line 23,659: | Line 20,858: | ||
28 PLP</pre>||Clobbers Y; and writes in stack | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
38 SEC | 38 SEC | ||
A9 19 LDA #25 | A9 19 LDA #25 | ||
Line 23,688: | Line 20,886: | ||
|<pre>E6 xx INC @zptemp | |<pre>E6 xx INC @zptemp | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
18 ... CLC × 3 | |||
18 | |||
90 00 BCC *+2 | 90 00 BCC *+2 | ||
18 CLC | 18 CLC | ||
Line 23,700: | Line 20,896: | ||
A5 00 LDA $00 | A5 00 LDA $00 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
18 ... CLC × 3 | |||
18 | |||
90 00 BCC *+2 | 90 00 BCC *+2 | ||
18 CLC | 18 CLC | ||
D0 F7 BNE *-7</pre>||Clobbers A, Z&N, and C | D0 F7 BNE *-7</pre>||Clobbers A, Z&N, and C | ||
|- | |||
!colspan="2"|33 bytes | |||
|- | |||
|<pre>68 ... PLA × 33</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|36 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 PLA | |||
48 PHA | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 28 | |||
10 E0 BPL *-30</pre>||Clobbers A, and Z&N | |||
|- | |- | ||
|} | |} | ||
Line 23,718: | Line 20,926: | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |||
|<pre>EA NOP | |||
A2 1A LDX #26 | |||
CA DEX | |||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | |||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 23,723: | Line 20,936: | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
Line 23,768: | Line 20,976: | ||
|<pre>18 CLC | |<pre>18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 2 | ||
00 00 BRK 0 | 00 00 BRK 0 | ||
90 F9 BCC *-5</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack | 90 F9 BCC *-5</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack | ||
Line 23,868: | Line 21,075: | ||
68 PLA | 68 PLA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
18 ... CLC × 3 | |||
18 | |||
90 00 BCC *+2 | 90 00 BCC *+2 | ||
18 CLC | 18 CLC | ||
Line 23,885: | Line 21,090: | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 3 | ||
A9 0A LDA #$0A ;hides 'ASL A' | |||
18 | 18 ... CLC × 3 | ||
A9 0A LDA #$0A ;hides 'ASL A' | 90 00 BCC *+2 | ||
18 | |||
90 00 BCC *+2 | |||
18 CLC | 18 CLC | ||
D0 F7 BNE *-7</pre>||Clobbers A, Z&N, and C | D0 F7 BNE *-7</pre>||Clobbers A, Z&N, and C | ||
|- | |||
!colspan="2"|34 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 ... PLA × 32 | |||
48 PHA</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|36 bytes | |||
|- | |||
|<pre>EA NOP | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 30 | |||
10 DE BPL *-32</pre>||Clobbers A, and Z&N | |||
|- | |- | ||
|} | |} | ||
Line 23,939: | Line 21,154: | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A0 12 LDY #18 | |||
EA NOP | EA NOP | ||
88 DEY | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A2 12 LDX #18 | |||
EA NOP | EA NOP | ||
CA DEX | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>A9 E9 LDA #$E9 ;hides 'SBC #$2A' | |<pre>A9 E9 LDA #$E9 ;hides 'SBC #$2A' | ||
Line 23,974: | Line 21,189: | ||
|<pre>A9 E9 LDA #$E9 ;hides 'SBC #$2A' | |<pre>A9 E9 LDA #$E9 ;hides 'SBC #$2A' | ||
2A ROL A ;first loop only | 2A ROL A ;first loop only | ||
08 PHP | 08 PHP \ × 2 | ||
28 PLP | 28 PLP / | ||
B0 F8 BCS *-6</pre>||Clobbers A, Z&N, C, and V; and writes in stack | B0 F8 BCS *-6</pre>||Clobbers A, Z&N, C, and V; and writes in stack | ||
|- | |- | ||
Line 24,028: | Line 21,241: | ||
68 PLA</pre>||Clobbers Z&N, and C; and writes in stack | 68 PLA</pre>||Clobbers Z&N, and C; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
38 SEC | 38 SEC | ||
A9 19 LDA #25 | A9 19 LDA #25 | ||
Line 24,057: | Line 21,268: | ||
18 CLC | 18 CLC | ||
D0 F9 BNE *-5</pre>||Clobbers A, Z&N, and C | D0 F9 BNE *-5</pre>||Clobbers A, Z&N, and C | ||
|- | |||
!colspan="2"|34 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 ... PLA × 33</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|36 bytes | |||
|- | |||
|<pre>68 PLA | |||
48 PHA | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 29 | |||
10 DF BPL *-31</pre>||Clobbers A, and Z&N | |||
|- | |- | ||
|} | |} | ||
Line 24,082: | Line 21,307: | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
A0 1A LDY #26 | A0 1A LDY #26 | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
A2 1A LDX #26 | A2 1A LDX #26 | ||
CA DEX | CA DEX | ||
Line 24,119: | Line 21,342: | ||
|<pre>EA NOP | |<pre>EA NOP | ||
08 PHP | 08 PHP | ||
A0 19 LDY #25 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
08 PHP | 08 PHP | ||
A2 19 LDX #25 | |||
CA DEX | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 24,163: | Line 21,386: | ||
|- | |- | ||
|<pre>A9 0A LDA #$0A ;hides 'ASL A' | |<pre>A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 5 | ||
18 CLC | 18 CLC | ||
D0 F7 BNE *-7</pre>||Clobbers A, Z&N, and C | D0 F7 BNE *-7</pre>||Clobbers A, Z&N, and C | ||
Line 24,182: | Line 21,401: | ||
68 PLA | 68 PLA | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |||
!colspan="2"|34 bytes | |||
|- | |||
|<pre>68 ... PLA × 33 | |||
48 PHA</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|36 bytes | |||
|- | |||
|<pre>A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 31 | |||
10 DD BPL *-33</pre>||Clobbers A, and Z&N | |||
|- | |- | ||
|} | |} | ||
Line 24,189: | Line 21,420: | ||
{| class="wikitable testtable" | {| class="wikitable testtable" | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |||
|<pre>A0 1B LDY #27 | |||
88 DEY | |||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | |||
|- | |- | ||
|<pre>A2 1B LDX #27 | |<pre>A2 1B LDX #27 | ||
CA DEX | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | D0 FB BNE *-3</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>A9 LDA #109 | |<pre>A9 LDA #109 | ||
Line 24,205: | Line 21,436: | ||
|<pre>A9 E9 LDA #$E9 ;hides 'SBC #$08' | |<pre>A9 E9 LDA #$E9 ;hides 'SBC #$08' | ||
08 PHP ;first loop only | 08 PHP ;first loop only | ||
EA | EA ... NOP × 2 | ||
30 FA BMI *-4</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack | 30 FA BMI *-4</pre>||Clobbers A, S, Z&N, C, and V; and writes in stack | ||
|- | |- | ||
Line 24,251: | Line 21,481: | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A0 10 LDY #16 | A0 10 LDY #16 | ||
C5 00 CMP $00 | |||
88 DEY | 88 DEY | ||
D0 F9 BNE *-5 | D0 F9 BNE *-5 | ||
Line 24,324: | Line 21,554: | ||
18 CLC | 18 CLC | ||
D0 F9 BNE *-5</pre>||Clobbers A, Z&N, and C | D0 F9 BNE *-5</pre>||Clobbers A, Z&N, and C | ||
|- | |||
!colspan="2"|34 bytes | |||
|- | |||
|<pre>68 ... PLA × 34</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|37 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 PLA | |||
48 PHA | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 29 | |||
10 DF BPL *-31</pre>||Clobbers A, and Z&N | |||
|- | |- | ||
|} | |} | ||
Line 24,352: | Line 21,596: | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |||
|<pre>A2 11 LDX #17 | |||
A5 00 LDA $00 | |||
CA DEX | |||
D0 F9 BNE *-5</pre>||Clobbers A, X, and Z&N | |||
|- | |- | ||
|<pre>A0 11 LDY #17 | |<pre>A0 11 LDY #17 | ||
Line 24,359: | Line 21,608: | ||
|- | |- | ||
|<pre>A2 11 LDX #17 | |<pre>A2 11 LDX #17 | ||
A4 00 LDY $00 | |||
CA DEX | CA DEX | ||
D0 F9 BNE *-5</pre>||Clobbers | D0 F9 BNE *-5</pre>||Clobbers X, Y, and Z&N | ||
|- | |- | ||
|<pre>A2 11 LDX #17 | |<pre>A2 11 LDX #17 | ||
C5 00 CMP $00 | |||
CA DEX | CA DEX | ||
D0 F9 BNE *-5</pre>||Clobbers X, | D0 F9 BNE *-5</pre>||Clobbers X, Z&N, and C | ||
|- | |- | ||
|<pre>A0 11 LDY #17 | |<pre>A0 11 LDY #17 | ||
Line 24,374: | Line 21,623: | ||
|- | |- | ||
|<pre>A2 11 LDX #17 | |<pre>A2 11 LDX #17 | ||
24 00 BIT $00 | |||
CA DEX | CA DEX | ||
D0 F9 BNE *-5</pre>||Clobbers X, Z&N, and | D0 F9 BNE *-5</pre>||Clobbers X, Z&N, and V | ||
|- | |- | ||
|<pre>A0 11 LDY #17 | |<pre>A0 11 LDY #17 | ||
Line 24,382: | Line 21,631: | ||
88 DEY | 88 DEY | ||
D0 F9 BNE *-5</pre>||Clobbers Y, Z&N, and V | D0 F9 BNE *-5</pre>||Clobbers Y, Z&N, and V | ||
|- | |- | ||
|<pre>A0 11 LDY #17 | |<pre>A0 11 LDY #17 | ||
Line 24,397: | Line 21,641: | ||
CA DEX | CA DEX | ||
D0 F9 BNE *-5</pre>||Clobbers X, and Z&N; and requires @zptemp | D0 F9 BNE *-5</pre>||Clobbers X, and Z&N; and requires @zptemp | ||
|- | |||
|<pre>A0 11 LDY #17 | |||
04 00 NOP $00 | |||
88 DEY | |||
D0 F9 BNE *-5</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes | |||
|- | |- | ||
|<pre>A2 11 LDX #17 | |<pre>A2 11 LDX #17 | ||
Line 24,402: | Line 21,651: | ||
CA DEX | CA DEX | ||
D0 F9 BNE *-5</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes | D0 F9 BNE *-5</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 24,419: | Line 21,663: | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |||
|<pre>A6 00 LDX $00 | |||
A2 13 LDX #19 | |||
EA NOP | |||
CA DEX | |||
D0 FA BNE *-4</pre>||Clobbers X, and Z&N | |||
|- | |- | ||
|<pre>A4 00 LDY $00 | |<pre>A4 00 LDY $00 | ||
Line 24,425: | Line 21,675: | ||
88 DEY | 88 DEY | ||
D0 FA BNE *-4</pre>||Clobbers Y, and Z&N | D0 FA BNE *-4</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>18 CLC | |<pre>18 CLC | ||
Line 24,437: | Line 21,681: | ||
D0 FA BNE *-4</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack | D0 FA BNE *-4</pre>||Clobbers A, Z&N, and C; requires @rts12; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
A2 E8 LDX #232 ;hides 'INX' | A2 E8 LDX #232 ;hides 'INX' | ||
Line 24,460: | Line 21,703: | ||
A8 TAY</pre>||Clobbers A, and Z&N; and writes in stack | A8 TAY</pre>||Clobbers A, and Z&N; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
A0 19 LDY #25 | A0 19 LDY #25 | ||
Line 24,468: | Line 21,710: | ||
28 PLP</pre>||Clobbers Y; and writes in stack | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
A2 19 LDX #25 | A2 19 LDX #25 | ||
Line 24,476: | Line 21,717: | ||
28 PLP</pre>||Clobbers X; and writes in stack | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
38 SEC | 38 SEC | ||
A9 1A LDA #26 | A9 1A LDA #26 | ||
Line 24,522: | Line 21,762: | ||
|<pre>18 CLC | |<pre>18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 5 | ||
18 CLC | 18 CLC | ||
D0 F7 BNE *-7</pre>||Clobbers A, Z&N, and C | D0 F7 BNE *-7</pre>||Clobbers A, Z&N, and C | ||
|- | |||
!colspan="2"|35 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 ... PLA × 33 | |||
48 PHA</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|37 bytes | |||
|- | |||
|<pre>EA NOP | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 31 | |||
10 DD BPL *-33</pre>||Clobbers A, and Z&N | |||
|- | |- | ||
|} | |} | ||
Line 24,680: | Line 21,930: | ||
28 PLP</pre>||Clobbers A, and S; and writes in stack | 28 PLP</pre>||Clobbers A, and S; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
38 SEC | 38 SEC | ||
A9 19 LDA #25 | A9 19 LDA #25 | ||
Line 24,746: | Line 21,995: | ||
|<pre>A5 00 LDA $00 | |<pre>A5 00 LDA $00 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 5 | ||
18 CLC | 18 CLC | ||
D0 F7 BNE *-7</pre>||Clobbers A, Z&N, and C | D0 F7 BNE *-7</pre>||Clobbers A, Z&N, and C | ||
|- | |||
!colspan="2"|35 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 ... PLA × 34</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|37 bytes | |||
|- | |||
|<pre>68 PLA | |||
48 PHA | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 30 | |||
10 DE BPL *-32</pre>||Clobbers A, and Z&N | |||
|- | |- | ||
|} | |} | ||
Line 24,765: | Line 22,024: | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |||
|<pre>48 PHA | |||
A0 1B LDY #27 | |||
88 DEY | |||
D0 FB BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack | |||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 24,771: | Line 22,035: | ||
D0 FB BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack | D0 FB BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack | ||
|- | |- | ||
| | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>A6 00 LDX $00 | |||
A2 1B LDX #27 | |||
CA DEX | |||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | |||
|- | |- | ||
|<pre>A4 00 LDY $00 | |<pre>A4 00 LDY $00 | ||
Line 24,782: | Line 22,046: | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>38 SEC | |<pre>38 SEC | ||
Line 24,839: | Line 22,098: | ||
28 PLP</pre>||Clobbers A, and X; and writes in stack | 28 PLP</pre>||Clobbers A, and X; and writes in stack | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 2 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
20 xx xx JSR @rts12 | 20 xx xx JSR @rts12 | ||
Line 24,865: | Line 22,123: | ||
AA TAX</pre>||Clobbers A, S, and Z&N; and writes in stack | AA TAX</pre>||Clobbers A, S, and Z&N; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
48 | 08 PHP | ||
A2 19 LDX #25 | |||
CA DEX | |||
D0 FB BNE *-3 | |||
28 PLP</pre>||Clobbers X, and S; and writes in stack | |||
|- | |||
|<pre>48 ... PHA × 2 | |||
08 PHP | 08 PHP | ||
A0 19 LDY #25 | A0 19 LDY #25 | ||
Line 24,872: | Line 22,136: | ||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers Y, and S; and writes in stack | 28 PLP</pre>||Clobbers Y, and S; and writes in stack | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 24,899: | Line 22,155: | ||
A8 TAY</pre>||Clobbers A, and Z&N; and writes in stack | A8 TAY</pre>||Clobbers A, and Z&N; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
08 PHP | |||
EA | A0 19 LDY #25 | ||
88 DEY | |||
D0 FB BNE *-3 | |||
28 PLP</pre>||Clobbers Y; and writes in stack | |||
|- | |||
|<pre>EA ... NOP × 3 | |||
08 PHP | 08 PHP | ||
A2 19 LDX #25 | A2 19 LDX #25 | ||
Line 24,907: | Line 22,168: | ||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers X; and writes in stack | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 24,936: | Line 22,188: | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
98 TYA | |||
48 PHA | 48 PHA | ||
A0 18 LDY #24 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
A8 TAY | |||
68 PLA</pre>||Clobbers Z&N; and writes in stack | 68 PLA</pre>||Clobbers Z&N; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
38 SEC | 38 SEC | ||
Line 24,956: | Line 22,207: | ||
|<pre>68 PLA | |<pre>68 PLA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 5 | ||
18 CLC | 18 CLC | ||
D0 F7 BNE *-7</pre>||Clobbers A, S, Z&N, and C | D0 F7 BNE *-7</pre>||Clobbers A, S, Z&N, and C | ||
Line 24,979: | Line 22,226: | ||
|<pre>18 CLC | |<pre>18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 3 | ||
36 00 ROL $00,X | 36 00 ROL $00,X | ||
76 00 ROR $00,X | 76 00 ROR $00,X | ||
90 F6 BCC *-8</pre>||Clobbers A, Z&N, and C | 90 F6 BCC *-8</pre>||Clobbers A, Z&N, and C | ||
|- | |||
!colspan="2"|35 bytes | |||
|- | |||
|<pre>68 ... PLA × 34 | |||
48 PHA</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|37 bytes | |||
|- | |||
|<pre>A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 32 | |||
10 DC BPL *-34</pre>||Clobbers A, and Z&N | |||
|- | |- | ||
|} | |} | ||
Line 24,997: | Line 22,254: | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |||
|<pre>68 PLA | |||
A0 1B LDY #27 | |||
88 DEY | |||
D0 FB BNE *-3</pre>||Clobbers A, Y, S, and Z&N | |||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA | ||
Line 25,002: | Line 22,264: | ||
CA DEX | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers A, X, S, and Z&N | D0 FB BNE *-3</pre>||Clobbers A, X, S, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
A2 1B LDX #27 | A2 1B LDX #27 | ||
CA DEX | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | D0 FB BNE *-3</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
A0 1B LDY #27 | A0 1B LDY #27 | ||
88 DEY | 88 DEY | ||
Line 25,096: | Line 22,351: | ||
18 CLC | 18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 2 | ||
00 00 BRK 0 | 00 00 BRK 0 | ||
90 F9 BCC *-5 | 90 F9 BCC *-5 | ||
Line 25,123: | Line 22,377: | ||
|<pre>E6 xx INC @zptemp | |<pre>E6 xx INC @zptemp | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 5 | ||
18 CLC | 18 CLC | ||
D0 F7 BNE *-7</pre>||Clobbers A, Z&N, and C; and requires @zptemp | D0 F7 BNE *-7</pre>||Clobbers A, Z&N, and C; and requires @zptemp | ||
Line 25,184: | Line 22,434: | ||
A5 00 LDA $00 | A5 00 LDA $00 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 5 | ||
18 CLC | 18 CLC | ||
D0 F7 BNE *-7</pre>||Clobbers A, Z&N, and C | D0 F7 BNE *-7</pre>||Clobbers A, Z&N, and C | ||
|- | |||
!colspan="2"|35 bytes | |||
|- | |||
|<pre>68 ... PLA × 35</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|38 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 PLA | |||
48 PHA | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 30 | |||
10 DE BPL *-32</pre>||Clobbers A, and Z&N | |||
|- | |- | ||
|} | |} | ||
Line 25,231: | Line 22,491: | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A0 13 LDY #19 | |||
EA NOP | EA NOP | ||
88 DEY | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A2 13 LDX #19 | |||
EA NOP | EA NOP | ||
CA DEX | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>A9 E9 LDA #$E9 ;hides 'SBC #$0A' | |<pre>A9 E9 LDA #$E9 ;hides 'SBC #$0A' | ||
Line 25,280: | Line 22,540: | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 3 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
20 xx xx JSR @rts12 | 20 xx xx JSR @rts12 | ||
Line 25,301: | Line 22,559: | ||
68 PLA</pre>||Clobbers Z&N, C, and V; requires @rts14; and writes in stack | 68 PLA</pre>||Clobbers Z&N, C, and V; requires @rts14; and writes in stack | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 2 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
E6 xx INC @zptemp | E6 xx INC @zptemp | ||
Line 25,322: | Line 22,579: | ||
A9 E9 LDA #$E9 ;hides 'SBC #$2A' | A9 E9 LDA #$E9 ;hides 'SBC #$2A' | ||
2A ROL A ;first loop only | 2A ROL A ;first loop only | ||
08 PHP | 08 PHP \ × 2 | ||
28 PLP | 28 PLP / | ||
B0 F8 BCS *-6 | B0 F8 BCS *-6 | ||
28 PLP</pre>||Clobbers A; and writes in stack | 28 PLP</pre>||Clobbers A; and writes in stack | ||
Line 25,340: | Line 22,595: | ||
A9 E9 LDA #$E9 ;hides 'SBC #$2A' | A9 E9 LDA #$E9 ;hides 'SBC #$2A' | ||
2A ROL A ;first loop only | 2A ROL A ;first loop only | ||
08 PHP | 08 PHP \ × 2 | ||
28 PLP | 28 PLP / | ||
B0 F8 BCS *-6 | B0 F8 BCS *-6 | ||
68 PLA</pre>||Clobbers Z&N, C, and V; and writes in stack | 68 PLA</pre>||Clobbers Z&N, C, and V; and writes in stack | ||
Line 25,372: | Line 22,625: | ||
68 PLA | 68 PLA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 5 | ||
18 CLC | |||
D0 F7 BNE *-7</pre>||Clobbers A, S, Z&N, and C | |||
18 CLC | |||
D0 F7 BNE *-7</pre>||Clobbers A, S, Z&N, and C | |||
|- | |- | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 2 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 3 | ||
36 00 ROL $00,X | 36 00 ROL $00,X | ||
76 00 ROR $00,X | 76 00 ROR $00,X | ||
90 F6 BCC *-8</pre>||Clobbers A, Z&N, and C | 90 F6 BCC *-8</pre>||Clobbers A, Z&N, and C | ||
|- | |||
!colspan="2"|36 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 ... PLA × 34 | |||
48 PHA</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|38 bytes | |||
|- | |||
|<pre>EA NOP | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 32 | |||
10 DC BPL *-34</pre>||Clobbers A, and Z&N | |||
|- | |- | ||
|} | |} | ||
Line 25,403: | Line 22,663: | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |||
|<pre>A2 98 LDX #152 ;hides 'TYA' | |||
EA NOP | |||
CA ... DEX × 2 | |||
30 FA BMI *-4</pre>||Clobbers A, X, and Z&N | |||
|- | |- | ||
|<pre>A0 98 LDY #152 ;hides 'TYA' | |<pre>A0 98 LDY #152 ;hides 'TYA' | ||
EA NOP | EA NOP | ||
88 | 88 ... DEY × 2 | ||
30 FA BMI *-4</pre>||Clobbers A, Y, and Z&N | 30 FA BMI *-4</pre>||Clobbers A, Y, and Z&N | ||
|- | |- | ||
|<pre>A2 | |<pre>48 ... PHA × 2 | ||
A2 1B LDX #27 | |||
CA DEX | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack | |||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
A0 1B LDY #27 | A0 1B LDY #27 | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack | D0 FB BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack | ||
|- | |- | ||
|<pre> | |<pre>A0 1A LDY #26 ;hides 'NOP' | ||
EA NOP | |||
88 ... DEY × 2 | |||
D0 FA BNE *-4</pre>||Clobbers Y, and Z&N; and requires support for unofficial opcodes | |||
D0 | |||
|- | |- | ||
|<pre>A2 1A LDX #26 ;hides 'NOP' | |<pre>A2 1A LDX #26 ;hides 'NOP' | ||
EA NOP | EA NOP | ||
CA | CA ... DEX × 2 | ||
D0 FA BNE *-4</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes | D0 FA BNE *-4</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA | ||
Line 25,458: | Line 22,712: | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
A2 1B LDX #27 | A2 1B LDX #27 | ||
CA DEX | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | D0 FB BNE *-3</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
A0 1B LDY #27 | A0 1B LDY #27 | ||
88 DEY | 88 DEY | ||
Line 25,478: | Line 22,728: | ||
D0 F9 BNE *-5</pre>||Clobbers A, S, Z&N, C, and V | D0 F9 BNE *-5</pre>||Clobbers A, S, Z&N, C, and V | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
38 SEC | 38 SEC | ||
A9 E9 LDA #$E9 ;hides 'SBC #$3A' | A9 E9 LDA #$E9 ;hides 'SBC #$3A' | ||
Line 25,493: | Line 22,742: | ||
28 PLP</pre>||Clobbers A; requires @rts12; and writes in stack | 28 PLP</pre>||Clobbers A; requires @rts12; and writes in stack | ||
|- | |- | ||
|<pre> | |<pre>98 TYA | ||
48 PHA | 48 PHA | ||
A0 1A LDY #26 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
A8 TAY</pre>||Clobbers A, and Z&N; and writes in stack | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
08 PHP | |||
A0 1A LDY #26 | |||
88 DEY | |||
D0 FB BNE *-3 | |||
28 PLP</pre>||Clobbers Y; and writes in stack | |||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
A2 1A LDX #26 | A2 1A LDX #26 | ||
Line 25,508: | Line 22,763: | ||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers X; and writes in stack | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 25,523: | Line 22,770: | ||
68 PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack | 68 PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
38 SEC | 38 SEC | ||
A9 1B LDA #27 | A9 1B LDA #27 | ||
Line 25,570: | Line 22,816: | ||
|- | |- | ||
|<pre>A9 0A LDA #$0A ;hides 'ASL A' | |<pre>A9 0A LDA #$0A ;hides 'ASL A' | ||
D0 | EA NOP | ||
18 CLC | |||
D0 FB BNE *-3 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA NOP | EA NOP | ||
18 CLC | 18 CLC | ||
D0 | D0 FB BNE *-3</pre>||Clobbers A, Z&N, and C | ||
|- | |||
!colspan="2"|36 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 ... PLA × 35</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|38 bytes | |||
|- | |||
|<pre>68 PLA | |||
48 PHA | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 31 | |||
10 DD BPL *-33</pre>||Clobbers A, and Z&N | |||
|- | |- | ||
|} | |} | ||
Line 25,641: | Line 22,901: | ||
|- | |- | ||
|<pre>A9 0A LDA #$0A ;hides 'ASL A' | |<pre>A9 0A LDA #$0A ;hides 'ASL A' | ||
48 | 48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
28 PLP | 28 PLP | ||
Line 25,650: | Line 22,909: | ||
|- | |- | ||
|<pre>A9 0A LDA #$0A ;hides 'ASL A' | |<pre>A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
28 PLP | 28 PLP | ||
Line 25,685: | Line 22,943: | ||
|- | |- | ||
|<pre>A9 0A LDA #$0A ;hides 'ASL A' | |<pre>A9 0A LDA #$0A ;hides 'ASL A' | ||
18 ... CLC × 4 | |||
90 00 BCC *+2 | |||
18 | |||
90 00 BCC *+2 | |||
18 CLC | 18 CLC | ||
D0 F6 BNE *-8</pre>||Clobbers A, Z&N, and C | D0 F6 BNE *-8</pre>||Clobbers A, Z&N, and C | ||
Line 25,713: | Line 22,968: | ||
68 PLA | 68 PLA | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |||
!colspan="2"|36 bytes | |||
|- | |||
|<pre>68 ... PLA × 35 | |||
48 PHA</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|38 bytes | |||
|- | |||
|<pre>A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 33 | |||
10 DB BPL *-35</pre>||Clobbers A, and Z&N | |||
|- | |- | ||
|} | |} | ||
Line 25,725: | Line 22,992: | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |||
|<pre>48 PHA | |||
A2 1C LDX #28 | |||
CA DEX | |||
D0 FB BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack | |||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 25,730: | Line 23,002: | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack | D0 FB BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
Line 25,777: | Line 23,044: | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A2 11 LDX #17 | A2 11 LDX #17 | ||
24 00 BIT $00 | |||
CA DEX | CA DEX | ||
D0 F9 BNE *-5 | D0 F9 BNE *-5 | ||
Line 25,796: | Line 23,063: | ||
D0 F9 BNE *-5</pre>||Clobbers A, S, Z&N, C, and V | D0 F9 BNE *-5</pre>||Clobbers A, S, Z&N, C, and V | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
38 SEC | 38 SEC | ||
A9 E9 LDA #$E9 ;hides 'SBC #$3A' | A9 E9 LDA #$E9 ;hides 'SBC #$3A' | ||
Line 25,821: | Line 23,086: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
98 TYA | |||
48 PHA | 48 PHA | ||
A0 1A LDY #26 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
A8 TAY</pre>||Clobbers A, and Z&N; and writes in stack | |||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 25,836: | Line 23,101: | ||
68 PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack | 68 PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
38 SEC | 38 SEC | ||
A9 1B LDA #27 | A9 1B LDA #27 | ||
Line 25,856: | Line 23,119: | ||
68 PLA</pre>||Clobbers Z&N; and writes in stack | 68 PLA</pre>||Clobbers Z&N; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
38 SEC | 38 SEC | ||
Line 25,881: | Line 23,143: | ||
|<pre>EA NOP | |<pre>EA NOP | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
D0 | EA NOP | ||
18 CLC | |||
D0 FB BNE *-3 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA NOP | EA NOP | ||
18 CLC | 18 CLC | ||
D0 | D0 FB BNE *-3</pre>||Clobbers A, Z&N, and C | ||
|- | |||
!colspan="2"|36 bytes | |||
|- | |||
|<pre>68 ... PLA × 36</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|39 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 PLA | |||
48 PHA | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 31 | |||
10 DD BPL *-33</pre>||Clobbers A, and Z&N | |||
|- | |- | ||
|} | |} | ||
Line 25,900: | Line 23,176: | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |||
|<pre>A0 12 LDY #18 | |||
48 PHA | |||
88 DEY | |||
D0 FA BNE *-4</pre>||Clobbers Y, S, and Z&N; and writes in stack | |||
|- | |- | ||
|<pre>A2 12 LDX #18 | |<pre>A2 12 LDX #18 | ||
Line 25,905: | Line 23,186: | ||
CA DEX | CA DEX | ||
D0 FA BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack | D0 FA BNE *-4</pre>||Clobbers X, S, and Z&N; and writes in stack | ||
|- | |- | ||
|<pre>A2 10 LDX #16 | |<pre>A2 10 LDX #16 | ||
Line 25,922: | Line 23,198: | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |||
|<pre>A0 10 LDY #16 | |||
EA ... NOP × 2 | |||
88 DEY | |||
D0 F9 BNE *-5</pre>||Clobbers Y, and Z&N | |||
|- | |- | ||
|<pre>A2 10 LDX #16 | |<pre>A2 10 LDX #16 | ||
EA | EA ... NOP × 2 | ||
CA DEX | CA DEX | ||
D0 F9 BNE *-5</pre>||Clobbers X, and Z&N | D0 F9 BNE *-5</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>18 CLC | |<pre>18 CLC | ||
Line 25,960: | Line 23,234: | ||
|<pre>EA NOP | |<pre>EA NOP | ||
08 PHP | 08 PHP | ||
A2 1B LDX #27 | |||
CA DEX | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
08 PHP | 08 PHP | ||
A0 1B LDY #27 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 26,017: | Line 23,291: | ||
!colspan="2"|10 bytes | !colspan="2"|10 bytes | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
20 xx xx JSR @rts12 | 20 xx xx JSR @rts12 | ||
Line 26,033: | Line 23,306: | ||
68 PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack | 68 PLA</pre>||Clobbers Z&N, and C; requires @rts12; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
8C TXA | 8C TXA | ||
48 PHA | 48 PHA | ||
Line 26,067: | Line 23,339: | ||
|<pre>18 CLC | |<pre>18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
18 ... CLC × 4 | |||
18 | |||
90 00 BCC *+2 | 90 00 BCC *+2 | ||
18 CLC | 18 CLC | ||
Line 26,127: | Line 23,396: | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |- | ||
!colspan="2"|37 bytes | |||
!colspan="2"| | |||
|- | |- | ||
|<pre>A0 1D LDY #29 | |<pre>EA NOP | ||
68 ... PLA × 35 | |||
48 PHA</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|39 bytes | |||
|- | |||
|<pre>EA NOP | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 33 | |||
10 DB BPL *-35</pre>||Clobbers A, and Z&N | |||
|- | |||
|} | |||
=== 146 cycles === | |||
{| class="wikitable testtable" | |||
!colspan="2"|5 bytes | |||
|- | |||
|<pre>A0 1D LDY #29 | |||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | ||
Line 26,177: | Line 23,460: | ||
|<pre>48 PHA | |<pre>48 PHA | ||
08 PHP | 08 PHP | ||
A2 1B LDX #27 | |||
CA DEX | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers X, and S; and writes in stack | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
08 PHP | 08 PHP | ||
A0 1B LDY #27 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers Y, and S; and writes in stack | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 26,225: | Line 23,508: | ||
|<pre>48 PHA | |<pre>48 PHA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
48 | 48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
28 PLP | 28 PLP | ||
Line 26,257: | Line 23,539: | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA | ||
98 TYA | |||
48 PHA | 48 PHA | ||
A0 1A LDY #26 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
A8 TAY</pre>||Clobbers A, S, and Z&N; and writes in stack | |||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 26,291: | Line 23,573: | ||
28 PLP</pre>||Clobbers A; and writes in stack | 28 PLP</pre>||Clobbers A; and writes in stack | ||
|- | |- | ||
|<pre> | |<pre>48 PHA | ||
48 PHA | 18 ... CLC × 2 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
20 xx xx JSR @rts12 | 20 xx xx JSR @rts12 | ||
Line 26,340: | Line 23,621: | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
48 PHA | 48 PHA | ||
Line 26,353: | Line 23,633: | ||
|<pre>A5 00 LDA $00 | |<pre>A5 00 LDA $00 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
18 ... CLC × 4 | |||
18 | |||
90 00 BCC *+2 | 90 00 BCC *+2 | ||
18 CLC | 18 CLC | ||
D0 F6 BNE *-8</pre>||Clobbers A, Z&N, and C | D0 F6 BNE *-8</pre>||Clobbers A, Z&N, and C | ||
|- | |||
!colspan="2"|37 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 ... PLA × 36</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|39 bytes | |||
|- | |||
|<pre>68 PLA | |||
48 PHA | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 32 | |||
10 DC BPL *-34</pre>||Clobbers A, and Z&N | |||
|- | |- | ||
|} | |} | ||
Line 26,419: | Line 23,710: | ||
|- | |- | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |||
|<pre>EA NOP | |||
A2 10 LDX #16 | |||
EA ... NOP × 2 | |||
CA DEX | |||
D0 F9 BNE *-5</pre>||Clobbers X, and Z&N | |||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
A0 10 LDY #16 | A0 10 LDY #16 | ||
EA | EA ... NOP × 2 | ||
88 DEY | 88 DEY | ||
D0 F9 BNE *-5</pre>||Clobbers Y, and Z&N | D0 F9 BNE *-5</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>18 CLC | |<pre>18 CLC | ||
A9 69 LDA #$69 ;hides 'ADC #$F8' | A9 69 LDA #$69 ;hides 'ADC #$F8' | ||
F8 SED ;first loop only | F8 SED ;first loop only | ||
EA | EA ... NOP × 2 | ||
10 F8 BPL *-6</pre>||Clobbers A, Z&N, C, V, and D | 10 F8 BPL *-6</pre>||Clobbers A, Z&N, C, V, and D | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 2 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
00 00 BRK 0 | 00 00 BRK 0 | ||
Line 26,453: | Line 23,740: | ||
D0 F9 BNE *-5</pre>||Clobbers A, S, Z&N, C, and V | D0 F9 BNE *-5</pre>||Clobbers A, S, Z&N, C, and V | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
18 CLC | 18 CLC | ||
A9 EB LDA #$EB ;hides 'SBC #$7A' | A9 EB LDA #$EB ;hides 'SBC #$7A' | ||
Line 26,462: | Line 23,748: | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre> | |<pre>8C TXA | ||
48 PHA | 48 PHA | ||
A2 1B LDX #27 | |||
CA DEX | |||
D0 FB BNE *-3 | |||
68 PLA | |||
AA TAX</pre>||Clobbers A, and Z&N; and writes in stack | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
08 PHP | |||
A0 1B LDY #27 | A0 1B LDY #27 | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers Y; and writes in stack | |||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
A2 1B LDX #27 | A2 1B LDX #27 | ||
Line 26,477: | Line 23,769: | ||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers X; and writes in stack | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>38 SEC | |<pre>38 SEC | ||
Line 26,548: | Line 23,832: | ||
|<pre>68 PLA | |<pre>68 PLA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
18 ... CLC × 4 | |||
18 | |||
90 00 BCC *+2 | 90 00 BCC *+2 | ||
18 CLC | 18 CLC | ||
Line 26,558: | Line 23,839: | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 2 | ||
18 | A9 0A LDA #$0A ;hides 'ASL A' | ||
A9 0A LDA #$0A ;hides 'ASL A' | 18 ... CLC × 4 | ||
90 00 BCC *+2 | |||
18 | |||
90 00 BCC *+2 | |||
18 CLC | 18 CLC | ||
D0 F6 BNE *-8</pre>||Clobbers A, Z&N, and C | D0 F6 BNE *-8</pre>||Clobbers A, Z&N, and C | ||
|- | |||
!colspan="2"|37 bytes | |||
|- | |||
|<pre>68 ... PLA × 36 | |||
48 PHA</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|39 bytes | |||
|- | |||
|<pre>A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 34 | |||
10 DA BPL *-36</pre>||Clobbers A, and Z&N | |||
|- | |- | ||
|} | |} | ||
Line 26,654: | Line 23,943: | ||
28 PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack | 28 PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
38 SEC | 38 SEC | ||
A9 E9 LDA #$E9 ;hides 'SBC #$3A' | A9 E9 LDA #$E9 ;hides 'SBC #$3A' | ||
Line 26,691: | Line 23,979: | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 3 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
20 xx xx JSR @rts12 | 20 xx xx JSR @rts12 | ||
Line 26,701: | Line 23,987: | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre> | |<pre>48 PHA | ||
18 ... CLC × 3 | |||
48 PHA | |||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
20 xx xx JSR @rts12 | 20 xx xx JSR @rts12 | ||
Line 26,719: | Line 24,003: | ||
28 PLP</pre>||Requires @rts14; and writes in stack | 28 PLP</pre>||Requires @rts14; and writes in stack | ||
|- | |- | ||
|<pre> | |<pre>48 PHA | ||
48 PHA | 18 ... CLC × 2 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
E6 xx INC @zptemp | E6 xx INC @zptemp | ||
Line 26,728: | Line 24,011: | ||
68 PLA</pre>||Clobbers Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack | 68 PLA</pre>||Clobbers Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 3 | ||
8C TXA | 8C TXA | ||
48 PHA | 48 PHA | ||
Line 26,745: | Line 24,026: | ||
A9 E9 LDA #$E9 ;hides 'SBC #$2A' | A9 E9 LDA #$E9 ;hides 'SBC #$2A' | ||
2A ROL A ;first loop only | 2A ROL A ;first loop only | ||
08 PHP | 08 PHP \ × 2 | ||
28 PLP | 28 PLP / | ||
B0 F8 BCS *-6 | B0 F8 BCS *-6 | ||
68 PLA | 68 PLA | ||
Line 26,755: | Line 24,034: | ||
|<pre>E6 xx INC @zptemp | |<pre>E6 xx INC @zptemp | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
18 ... CLC × 4 | |||
18 | |||
90 00 BCC *+2 | 90 00 BCC *+2 | ||
18 CLC | 18 CLC | ||
Line 26,768: | Line 24,044: | ||
A5 00 LDA $00 | A5 00 LDA $00 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
18 ... CLC × 4 | |||
18 | |||
90 00 BCC *+2 | 90 00 BCC *+2 | ||
18 CLC | 18 CLC | ||
D0 F6 BNE *-8</pre>||Clobbers A, Z&N, and C | D0 F6 BNE *-8</pre>||Clobbers A, Z&N, and C | ||
|- | |||
!colspan="2"|37 bytes | |||
|- | |||
|<pre>68 ... PLA × 37</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|40 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 PLA | |||
48 PHA | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 32 | |||
10 DC BPL *-34</pre>||Clobbers A, and Z&N | |||
|- | |- | ||
|} | |} | ||
Line 26,799: | Line 24,086: | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |||
|<pre>A4 00 LDY $00 | |||
A0 1D LDY #29 | |||
88 DEY | |||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | |||
|- | |- | ||
|<pre>A6 00 LDX $00 | |<pre>A6 00 LDX $00 | ||
Line 26,804: | Line 24,096: | ||
CA DEX | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | D0 FB BNE *-3</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 26,838: | Line 24,125: | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A2 98 LDX #152 ;hides 'TYA' | |||
EA NOP | EA NOP | ||
CA ... DEX × 2 | |||
30 FA BMI *-4 | 30 FA BMI *-4 | ||
28 PLP</pre>||Clobbers A, and | 28 PLP</pre>||Clobbers A, and X; and writes in stack | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A0 98 LDY #152 ;hides 'TYA' | |||
EA NOP | EA NOP | ||
88 ... DEY × 2 | |||
30 FA BMI *-4 | 30 FA BMI *-4 | ||
28 PLP</pre>||Clobbers A, and | 28 PLP</pre>||Clobbers A, and Y; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 26,857: | Line 24,142: | ||
A9 69 LDA #$69 ;hides 'ADC #$F8' | A9 69 LDA #$69 ;hides 'ADC #$F8' | ||
F8 SED ;first loop only | F8 SED ;first loop only | ||
EA | EA ... NOP × 2 | ||
10 F8 BPL *-6</pre>||Clobbers A, Z&N, C, V, and D | 10 F8 BPL *-6</pre>||Clobbers A, Z&N, C, V, and D | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 3 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
00 00 BRK 0 | 00 00 BRK 0 | ||
D0 FB BNE *-3</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack | D0 FB BNE *-3</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
48 | 08 PHP | ||
A2 1B LDX #27 | |||
CA DEX | |||
D0 FB BNE *-3 | |||
28 PLP</pre>||Clobbers X, and S; and writes in stack | |||
|- | |||
|<pre>48 ... PHA × 2 | |||
08 PHP | 08 PHP | ||
A0 1B LDY #27 | A0 1B LDY #27 | ||
Line 26,875: | Line 24,163: | ||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers Y, and S; and writes in stack | 28 PLP</pre>||Clobbers Y, and S; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 26,892: | Line 24,172: | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A0 1A LDY #26 ;hides 'NOP' | |||
EA NOP | EA NOP | ||
88 ... DEY × 2 | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers Y; requires support for unofficial opcodes; and writes in stack | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A2 1A LDX #26 ;hides 'NOP' | |||
EA NOP | EA NOP | ||
CA ... DEX × 2 | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers X; requires support for unofficial opcodes; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
18 CLC | 18 CLC | ||
A9 EB LDA #$EB ;hides 'SBC #$7A' | A9 EB LDA #$EB ;hides 'SBC #$7A' | ||
Line 26,933: | Line 24,209: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
8C TXA | |||
48 PHA | 48 PHA | ||
A2 1B LDX #27 | |||
CA DEX | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
AA TAX</pre>||Clobbers A, and Z&N; and writes in stack | |||
|- | |||
|<pre>EA ... NOP × 3 | |||
08 PHP | |||
A2 1B LDX #27 | |||
CA DEX | |||
D0 FB BNE *-3 | |||
28 PLP</pre>||Clobbers X; and writes in stack | |||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
08 PHP | 08 PHP | ||
A0 1B LDY #27 | A0 1B LDY #27 | ||
Line 26,949: | Line 24,230: | ||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers Y; and writes in stack | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 26,966: | Line 24,238: | ||
D0 F7 BNE *-7</pre>||Clobbers A, Z&N, C, and V | D0 F7 BNE *-7</pre>||Clobbers A, Z&N, C, and V | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
38 SEC | 38 SEC | ||
Line 26,975: | Line 24,246: | ||
28 PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack | 28 PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
48 PHA | 48 PHA | ||
38 SEC | 38 SEC | ||
Line 26,995: | Line 24,265: | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
98 TYA | |||
48 PHA | 48 PHA | ||
A0 1A LDY #26 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
A8 TAY | |||
68 PLA</pre>||Clobbers Z&N; and writes in stack | 68 PLA</pre>||Clobbers Z&N; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
38 SEC | 38 SEC | ||
Line 27,030: | Line 24,299: | ||
68 PLA | 68 PLA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
18 ... CLC × 4 | |||
18 | |||
90 00 BCC *+2 | 90 00 BCC *+2 | ||
18 CLC | 18 CLC | ||
Line 27,040: | Line 24,306: | ||
!colspan="2"|14 bytes | !colspan="2"|14 bytes | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 3 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
18 ... CLC × 4 | |||
18 | |||
90 00 BCC *+2 | 90 00 BCC *+2 | ||
18 CLC | 18 CLC | ||
D0 F6 BNE *-8</pre>||Clobbers A, Z&N, and C | D0 F6 BNE *-8</pre>||Clobbers A, Z&N, and C | ||
|- | |||
!colspan="2"|38 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 ... PLA × 36 | |||
48 PHA</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|40 bytes | |||
|- | |||
|<pre>EA NOP | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 34 | |||
10 DA BPL *-36</pre>||Clobbers A, and Z&N | |||
|- | |- | ||
|} | |} | ||
Line 27,075: | Line 24,350: | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |||
|<pre>EA NOP | |||
A0 15 LDY #21 | |||
EA NOP | |||
88 DEY | |||
D0 FA BNE *-4</pre>||Clobbers Y, and Z&N | |||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 27,081: | Line 24,362: | ||
CA DEX | CA DEX | ||
D0 FA BNE *-4</pre>||Clobbers X, and Z&N | D0 FA BNE *-4</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 27,108: | Line 24,383: | ||
|<pre>EA NOP | |<pre>EA NOP | ||
08 PHP | 08 PHP | ||
A0 1C LDY #28 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
08 PHP | 08 PHP | ||
A2 1C LDX #28 | |||
CA DEX | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>38 SEC | |<pre>38 SEC | ||
Line 27,179: | Line 24,454: | ||
|<pre>48 PHA | |<pre>48 PHA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
28 PLP | 28 PLP | ||
Line 27,204: | Line 24,478: | ||
D0 FD BNE *-1 | D0 FD BNE *-1 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
18 ... CLC × 2 | |||
18 | |||
90 00 BCC *+2 | 90 00 BCC *+2 | ||
18 CLC | 18 CLC | ||
D0 F8 BNE *-6</pre>||Clobbers A, Z&N, and C | D0 F8 BNE *-6</pre>||Clobbers A, Z&N, and C | ||
|- | |||
!colspan="2"|38 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 ... PLA × 37</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|40 bytes | |||
|- | |||
|<pre>68 PLA | |||
48 PHA | |||
A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 33 | |||
10 DB BPL *-35</pre>||Clobbers A, and Z&N | |||
|- | |- | ||
|} | |} | ||
Line 27,216: | Line 24,503: | ||
{| class="wikitable testtable" | {| class="wikitable testtable" | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |||
|<pre>A0 1E LDY #30 | |||
88 DEY | |||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | |||
|- | |- | ||
|<pre>A2 1E LDX #30 | |<pre>A2 1E LDX #30 | ||
CA DEX | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | D0 FB BNE *-3</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>A9 LDA #124 | |<pre>A9 LDA #124 | ||
Line 27,253: | Line 24,540: | ||
|- | |- | ||
|<pre>A9 0A LDA #$0A ;hides 'ASL A' | |<pre>A9 0A LDA #$0A ;hides 'ASL A' | ||
08 PHP | 08 PHP \ × 2 | ||
28 PLP | 28 PLP / | ||
D0 F9 BNE *-5</pre>||Clobbers A, Z&N, and C; and writes in stack | D0 F9 BNE *-5</pre>||Clobbers A, Z&N, and C; and writes in stack | ||
|- | |- | ||
Line 27,311: | Line 24,596: | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA | ||
8C TXA | |||
48 PHA | 48 PHA | ||
A2 1B LDX #27 | |||
CA DEX | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
AA TAX</pre>||Clobbers A, S, and Z&N; and writes in stack | |||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
38 SEC | 38 SEC | ||
Line 27,328: | Line 24,612: | ||
28 PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack | 28 PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 3 | ||
38 SEC | 38 SEC | ||
A9 E9 LDA #$E9 ;hides 'SBC #$3A' | A9 E9 LDA #$E9 ;hides 'SBC #$3A' | ||
Line 27,339: | Line 24,621: | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
8C TXA | |||
48 PHA | 48 PHA | ||
A2 1B LDX #27 | |||
CA DEX | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
AA TAX</pre>||Clobbers A, and Z&N; and writes in stack | |||
|- | |- | ||
|<pre>A9 0A LDA #$0A ;hides 'ASL A' | |<pre>A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 6 | ||
18 CLC | 18 CLC | ||
D0 F6 BNE *-8</pre>||Clobbers A, Z&N, and C | D0 F6 BNE *-8</pre>||Clobbers A, Z&N, and C | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
38 SEC | 38 SEC | ||
Line 27,368: | Line 24,643: | ||
28 PLP</pre>||Clobbers A, and S; and writes in stack | 28 PLP</pre>||Clobbers A, and S; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 3 | ||
38 SEC | 38 SEC | ||
A9 1B LDA #27 | A9 1B LDA #27 | ||
Line 27,377: | Line 24,650: | ||
68 PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack | 68 PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
08 PHP | 08 PHP | ||
38 SEC | 38 SEC | ||
Line 27,387: | Line 24,658: | ||
28 PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack | 28 PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
48 PHA | 48 PHA | ||
38 SEC | 38 SEC | ||
Line 27,410: | Line 24,679: | ||
|<pre>EA NOP | |<pre>EA NOP | ||
48 PHA | 48 PHA | ||
98 TYA | |||
48 PHA | 48 PHA | ||
A0 1A LDY #26 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
A8 TAY | |||
68 PLA</pre>||Clobbers Z&N; and writes in stack | 68 PLA</pre>||Clobbers Z&N; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
08 PHP | 08 PHP | ||
38 SEC | 38 SEC | ||
Line 27,431: | Line 24,698: | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
48 PHA | 48 PHA | ||
Line 27,441: | Line 24,707: | ||
68 PLA | 68 PLA | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |||
!colspan="2"|38 bytes | |||
|- | |||
|<pre>68 ... PLA × 37 | |||
48 PHA</pre>||Clobbers A, S, and Z&N | |||
|- | |||
!colspan="2"|40 bytes | |||
|- | |||
|<pre>A9 09 LDA #$09 ;hides 'ORA #$EA' | |||
EA NOP ;first loop only | |||
EA ... NOP × 35 | |||
10 D9 BPL *-37</pre>||Clobbers A, and Z&N | |||
|- | |- | ||
|} | |} | ||
Line 27,454: | Line 24,732: | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
48 | A0 1D LDY #29 | ||
88 DEY | |||
D0 FB BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack | |||
|- | |||
|<pre>48 ... PHA × 2 | |||
A2 1D LDX #29 | A2 1D LDX #29 | ||
CA DEX | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack | D0 FB BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 27,496: | Line 24,772: | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
A2 15 LDX #21 | A2 15 LDX #21 | ||
EA NOP | EA NOP | ||
Line 27,503: | Line 24,778: | ||
D0 FA BNE *-4</pre>||Clobbers X, and Z&N | D0 FA BNE *-4</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
A0 15 LDY #21 | A0 15 LDY #21 | ||
EA NOP | EA NOP | ||
Line 27,512: | Line 24,786: | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre> | |<pre>98 TYA | ||
48 PHA | 48 PHA | ||
A0 1C LDY #28 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
A8 TAY</pre>||Clobbers A, and Z&N; and writes in stack | |||
|- | |||
|<pre>08 PHP | |||
A0 10 LDY #16 | |||
EA ... NOP × 2 | |||
88 DEY | |||
D0 F9 BNE *-5 | |||
28 PLP</pre>||Clobbers Y; and writes in stack | |||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A2 10 LDX #16 | A2 10 LDX #16 | ||
EA | EA ... NOP × 2 | ||
CA DEX | CA DEX | ||
D0 F9 BNE *-5 | D0 F9 BNE *-5 | ||
28 PLP</pre>||Clobbers X; and writes in stack | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 27,624: | Line 24,896: | ||
D0 FD BNE *-1 | D0 FD BNE *-1 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
18 ... CLC × 2 | |||
18 | |||
90 00 BCC *+2 | 90 00 BCC *+2 | ||
18 CLC | 18 CLC | ||
D0 F8 BNE *-6</pre>||Clobbers A, Z&N, and C | D0 F8 BNE *-6</pre>||Clobbers A, Z&N, and C | ||
|- | |||
!colspan="2"|38 bytes | |||
|- | |||
|<pre>68 ... PLA × 38</pre>||Clobbers A, S, and Z&N | |||
|- | |- | ||
|} | |} | ||
Line 27,636: | Line 24,911: | ||
{| class="wikitable testtable" | {| class="wikitable testtable" | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |||
|<pre>A0 EA LDY #234 ;hides 'NOP' | |||
C8 INY | |||
D0 FC BNE *-2</pre>||Clobbers Y, and Z&N | |||
|- | |- | ||
|<pre>A2 EA LDX #234 ;hides 'NOP' | |<pre>A2 EA LDX #234 ;hides 'NOP' | ||
E8 INX | E8 INX | ||
D0 FC BNE *-2</pre>||Clobbers X, and Z&N | D0 FC BNE *-2</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>A9 LDA #126 | |<pre>A9 LDA #126 | ||
Line 27,695: | Line 24,970: | ||
|<pre>18 CLC | |<pre>18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
08 PHP | 08 PHP \ × 2 | ||
28 PLP | 28 PLP / | ||
D0 F9 BNE *-5</pre>||Clobbers A, Z&N, and C; and writes in stack | D0 F9 BNE *-5</pre>||Clobbers A, Z&N, and C; and writes in stack | ||
|- | |- | ||
Line 27,708: | Line 24,981: | ||
28 PLP</pre>||Clobbers A, and S; requires dummy interrupt handler; and writes in stack | 28 PLP</pre>||Clobbers A, and S; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
00 00 BRK 0 | 00 00 BRK 0 | ||
Line 27,723: | Line 24,995: | ||
28 PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack | 28 PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
18 CLC | 18 CLC | ||
A9 EB LDA #$EB ;hides 'SBC #$7A' | A9 EB LDA #$EB ;hides 'SBC #$7A' | ||
Line 27,762: | Line 25,033: | ||
28 PLP</pre>||Clobbers A, and S; and writes in stack | 28 PLP</pre>||Clobbers A, and S; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
38 SEC | 38 SEC | ||
A9 1C LDA #28 | A9 1C LDA #28 | ||
Line 27,808: | Line 25,078: | ||
|<pre>18 CLC | |<pre>18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 6 | ||
18 CLC | 18 CLC | ||
D0 F6 BNE *-8</pre>||Clobbers A, Z&N, and C | D0 F6 BNE *-8</pre>||Clobbers A, Z&N, and C | ||
Line 27,827: | Line 25,092: | ||
28 PLP</pre>||Requires @zptemp; and writes in stack | 28 PLP</pre>||Requires @zptemp; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
28 PLP | 28 PLP | ||
Line 27,859: | Line 25,122: | ||
68 PLA | 68 PLA | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |||
!colspan="2"|39 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 ... PLA × 37 | |||
48 PHA</pre>||Clobbers A, S, and Z&N | |||
|- | |- | ||
|} | |} | ||
Line 27,871: | Line 25,140: | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |||
|<pre>48 PHA | |||
A2 1E LDX #30 | |||
CA DEX | |||
D0 FB BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack | |||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 27,877: | Line 25,151: | ||
D0 FB BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack | D0 FB BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack | ||
|- | |- | ||
|<pre> | |<pre>A2 11 LDX #17 | ||
A2 | 68 PLA | ||
CA DEX | CA DEX | ||
D0 | D0 FA BNE *-4</pre>||Clobbers A, X, S, and Z&N | ||
|- | |- | ||
|<pre>A0 11 LDY #17 | |<pre>A0 11 LDY #17 | ||
Line 27,886: | Line 25,160: | ||
88 DEY | 88 DEY | ||
D0 FA BNE *-4</pre>||Clobbers A, Y, S, and Z&N | D0 FA BNE *-4</pre>||Clobbers A, Y, S, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
Line 27,917: | Line 25,186: | ||
|- | |- | ||
|<pre>A9 0A LDA #$0A ;hides 'ASL A' | |<pre>A9 0A LDA #$0A ;hides 'ASL A' | ||
00 00 | 00 00... BRK 0 × 2 | ||
10 F9 BPL *-5</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack | 10 F9 BPL *-5</pre>||Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
Line 27,940: | Line 25,208: | ||
D0 FA BNE *-4</pre>||Clobbers A, Z&N, and C; requires @rts14; and writes in stack | D0 FA BNE *-4</pre>||Clobbers A, Z&N, and C; requires @rts14; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
A0 1C LDY #28 | A0 1C LDY #28 | ||
Line 27,948: | Line 25,215: | ||
28 PLP</pre>||Clobbers Y, and S; and writes in stack | 28 PLP</pre>||Clobbers Y, and S; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
A2 1C LDX #28 | A2 1C LDX #28 | ||
Line 27,958: | Line 25,224: | ||
|<pre>48 PHA | |<pre>48 PHA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
08 PHP | 08 PHP \ × 2 | ||
28 PLP | 28 PLP / | ||
D0 F9 BNE *-5</pre>||Clobbers A, S, Z&N, and C; and writes in stack | D0 F9 BNE *-5</pre>||Clobbers A, S, Z&N, and C; and writes in stack | ||
|- | |- | ||
Line 27,992: | Line 25,256: | ||
A9 69 LDA #$69 ;hides 'ADC #$F8' | A9 69 LDA #$69 ;hides 'ADC #$F8' | ||
F8 SED ;first loop only | F8 SED ;first loop only | ||
EA | EA ... NOP × 2 | ||
10 F8 BPL *-6 | 10 F8 BPL *-6 | ||
28 PLP</pre>||Clobbers A; and writes in stack | 28 PLP</pre>||Clobbers A; and writes in stack | ||
Line 28,000: | Line 25,263: | ||
08 PHP | 08 PHP | ||
A2 10 LDX #16 | A2 10 LDX #16 | ||
EA | EA ... NOP × 2 | ||
CA DEX | CA DEX | ||
D0 F9 BNE *-5 | D0 F9 BNE *-5 | ||
Line 28,009: | Line 25,271: | ||
08 PHP | 08 PHP | ||
A0 10 LDY #16 | A0 10 LDY #16 | ||
EA | EA ... NOP × 2 | ||
88 DEY | 88 DEY | ||
D0 F9 BNE *-5 | D0 F9 BNE *-5 | ||
28 PLP</pre>||Clobbers Y; and writes in stack | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
38 SEC | 38 SEC | ||
A9 15 LDA #21 | A9 15 LDA #21 | ||
Line 28,027: | Line 25,287: | ||
A9 69 LDA #$69 ;hides 'ADC #$F8' | A9 69 LDA #$69 ;hides 'ADC #$F8' | ||
F8 SED ;first loop only | F8 SED ;first loop only | ||
EA | EA ... NOP × 2 | ||
10 F8 BPL *-6 | 10 F8 BPL *-6 | ||
68 PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack | 68 PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack | ||
|- | |- | ||
|<pre> | |<pre>48 PHA | ||
48 PHA | 18 ... CLC × 2 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
00 00 BRK 0 | 00 00 BRK 0 | ||
Line 28,040: | Line 25,298: | ||
68 PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack | 68 PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
48 PHA | 48 PHA | ||
18 CLC | 18 CLC | ||
Line 28,052: | Line 25,309: | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
8C TXA | |||
48 PHA | 48 PHA | ||
A2 1B LDX #27 | |||
CA DEX | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
AA TAX | |||
68 PLA</pre>||Clobbers Z&N; and writes in stack | 68 PLA</pre>||Clobbers Z&N; and writes in stack | ||
|- | |- | ||
Line 28,087: | Line 25,344: | ||
|<pre>A5 00 LDA $00 | |<pre>A5 00 LDA $00 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 6 | ||
18 CLC | 18 CLC | ||
D0 F6 BNE *-8</pre>||Clobbers A, Z&N, and C | D0 F6 BNE *-8</pre>||Clobbers A, Z&N, and C | ||
|- | |||
!colspan="2"|39 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 ... PLA × 38</pre>||Clobbers A, S, and Z&N | |||
|- | |- | ||
|} | |} | ||
Line 28,107: | Line 25,364: | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |||
|<pre>A2 16 LDX #22 | |||
EA NOP | |||
CA DEX | |||
D0 FA BNE *-4</pre>||Clobbers X, and Z&N | |||
|- | |- | ||
|<pre>A0 16 LDY #22 | |<pre>A0 16 LDY #22 | ||
Line 28,112: | Line 25,374: | ||
88 DEY | 88 DEY | ||
D0 FA BNE *-4</pre>||Clobbers Y, and Z&N | D0 FA BNE *-4</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>A9 E9 LDA #$E9 ;hides 'SBC #$0A' | |<pre>A9 E9 LDA #$E9 ;hides 'SBC #$0A' | ||
Line 28,189: | Line 25,446: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
48 | 48 ... PHA × 2 | ||
A9 0A LDA #$0A ;hides 'ASL A' | |||
A9 0A LDA #$0A ;hides 'ASL A' | |||
00 00 BRK 0 | 00 00 BRK 0 | ||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
Line 28,231: | Line 25,487: | ||
|<pre>68 PLA | |<pre>68 PLA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 6 | ||
18 CLC | 18 CLC | ||
D0 F6 BNE *-8</pre>||Clobbers A, S, Z&N, and C | D0 F6 BNE *-8</pre>||Clobbers A, S, Z&N, and C | ||
Line 28,242: | Line 25,493: | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 2 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 6 | ||
18 CLC | 18 CLC | ||
D0 F6 BNE *-8</pre>||Clobbers A, Z&N, and C | D0 F6 BNE *-8</pre>||Clobbers A, Z&N, and C | ||
|- | |||
!colspan="2"|39 bytes | |||
|- | |||
|<pre>68 ... PLA × 38 | |||
48 PHA</pre>||Clobbers A, S, and Z&N | |||
|- | |- | ||
|} | |} | ||
Line 28,350: | Line 25,600: | ||
|<pre>E6 xx INC @zptemp | |<pre>E6 xx INC @zptemp | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
08 PHP | 08 PHP \ × 2 | ||
28 PLP | 28 PLP / | ||
D0 F9 BNE *-5</pre>||Clobbers A, Z&N, and C; requires @zptemp; and writes in stack | D0 F9 BNE *-5</pre>||Clobbers A, Z&N, and C; requires @zptemp; and writes in stack | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA | ||
98 TYA | |||
48 PHA | 48 PHA | ||
A0 1C LDY #28 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
A8 TAY</pre>||Clobbers A, S, and Z&N; and writes in stack | |||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
Line 28,373: | Line 25,620: | ||
28 PLP</pre>||Clobbers A, and S; requires dummy interrupt handler; and writes in stack | 28 PLP</pre>||Clobbers A, and S; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 3 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
00 00 BRK 0 | 00 00 BRK 0 | ||
Line 28,381: | Line 25,626: | ||
68 PLA</pre>||Clobbers S, Z&N, and C; requires dummy interrupt handler; and writes in stack | 68 PLA</pre>||Clobbers S, Z&N, and C; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
18 CLC | 18 CLC | ||
Line 28,390: | Line 25,634: | ||
28 PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack | 28 PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 3 | ||
18 CLC | 18 CLC | ||
A9 EB LDA #$EB ;hides 'SBC #$7A' | A9 EB LDA #$EB ;hides 'SBC #$7A' | ||
Line 28,406: | Line 25,648: | ||
A9 69 LDA #$69 ;hides 'ADC #$F8' | A9 69 LDA #$69 ;hides 'ADC #$F8' | ||
F8 SED ;first loop only | F8 SED ;first loop only | ||
EA | EA ... NOP × 2 | ||
10 F8 BPL *-6 | 10 F8 BPL *-6 | ||
28 PLP</pre>||Clobbers A; and writes in stack | 28 PLP</pre>||Clobbers A; and writes in stack | ||
Line 28,416: | Line 25,657: | ||
A9 69 LDA #$69 ;hides 'ADC #$F8' | A9 69 LDA #$69 ;hides 'ADC #$F8' | ||
F8 SED ;first loop only | F8 SED ;first loop only | ||
EA | EA ... NOP × 2 | ||
10 F8 BPL *-6 | 10 F8 BPL *-6 | ||
68 PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack | 68 PLA</pre>||Clobbers Z&N, C, V, and D; and writes in stack | ||
|- | |- | ||
|<pre> | |<pre>48 PHA | ||
18 ... CLC × 3 | |||
48 PHA | |||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
00 00 BRK 0 | 00 00 BRK 0 | ||
Line 28,430: | Line 25,668: | ||
68 PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack | 68 PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 3 | ||
38 SEC | 38 SEC | ||
A9 1C LDA #28 | A9 1C LDA #28 | ||
Line 28,439: | Line 25,675: | ||
68 PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack | 68 PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
48 PHA | 48 PHA | ||
18 CLC | 18 CLC | ||
Line 28,453: | Line 25,687: | ||
|<pre>EA NOP | |<pre>EA NOP | ||
48 PHA | 48 PHA | ||
8C TXA | |||
48 PHA | 48 PHA | ||
A2 1B LDX #27 | |||
CA DEX | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
AA TAX | |||
68 PLA</pre>||Clobbers Z&N; and writes in stack | 68 PLA</pre>||Clobbers Z&N; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
48 PHA | 48 PHA | ||
Line 28,475: | Line 25,708: | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
48 PHA | 48 PHA | ||
Line 28,488: | Line 25,720: | ||
|<pre>E6 xx INC @zptemp | |<pre>E6 xx INC @zptemp | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 6 | ||
18 CLC | 18 CLC | ||
D0 F6 BNE *-8</pre>||Clobbers A, Z&N, and C; and requires @zptemp | D0 F6 BNE *-8</pre>||Clobbers A, Z&N, and C; and requires @zptemp | ||
Line 28,502: | Line 25,729: | ||
A5 00 LDA $00 | A5 00 LDA $00 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 6 | ||
18 CLC | 18 CLC | ||
D0 F6 BNE *-8</pre>||Clobbers A, Z&N, and C | D0 F6 BNE *-8</pre>||Clobbers A, Z&N, and C | ||
|- | |||
!colspan="2"|39 bytes | |||
|- | |||
|<pre>68 ... PLA × 39</pre>||Clobbers A, S, and Z&N | |||
|- | |- | ||
|} | |} | ||
Line 28,646: | Line 25,872: | ||
|<pre>18 CLC | |<pre>18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 2 | ||
E6 xx INC @zptemp | E6 xx INC @zptemp | ||
36 00 ROL $00,X | 36 00 ROL $00,X | ||
Line 28,656: | Line 25,881: | ||
68 PLA | 68 PLA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 6 | ||
18 CLC | 18 CLC | ||
D0 F6 BNE *-8</pre>||Clobbers A, S, Z&N, and C | D0 F6 BNE *-8</pre>||Clobbers A, S, Z&N, and C | ||
Line 28,667: | Line 25,887: | ||
!colspan="2"|14 bytes | !colspan="2"|14 bytes | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 3 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 6 | ||
18 CLC | 18 CLC | ||
D0 F6 BNE *-8</pre>||Clobbers A, Z&N, and C | D0 F6 BNE *-8</pre>||Clobbers A, Z&N, and C | ||
|- | |||
!colspan="2"|40 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 ... PLA × 38 | |||
48 PHA</pre>||Clobbers A, S, and Z&N | |||
|- | |- | ||
|} | |} | ||
Line 28,693: | Line 25,912: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
A2 1F LDX #31 | A0 1F LDY #31 | ||
88 DEY | |||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | |||
|- | |||
|<pre>EA NOP | |||
A2 1F LDX #31 | |||
CA DEX | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | D0 FB BNE *-3</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>18 CLC | |<pre>18 CLC | ||
Line 28,762: | Line 25,981: | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
08 PHP | 08 PHP \ × 2 | ||
28 PLP | 28 PLP / | ||
D0 F9 BNE *-5 | D0 F9 BNE *-5 | ||
28 PLP</pre>||Clobbers A; and writes in stack | 28 PLP</pre>||Clobbers A; and writes in stack | ||
Line 28,771: | Line 25,988: | ||
|<pre>48 PHA | |<pre>48 PHA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
08 PHP | 08 PHP \ × 2 | ||
28 PLP | 28 PLP / | ||
D0 F9 BNE *-5 | D0 F9 BNE *-5 | ||
68 PLA</pre>||Clobbers Z&N, and C; and writes in stack | 68 PLA</pre>||Clobbers Z&N, and C; and writes in stack | ||
Line 28,780: | Line 25,995: | ||
!colspan="2"|12 bytes | !colspan="2"|12 bytes | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
48 PHA | 48 PHA | ||
Line 28,793: | Line 26,007: | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
48 PHA | 48 PHA | ||
8C TXA | |||
48 PHA | 48 PHA | ||
A2 1B LDX #27 | |||
CA DEX | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
AA TAX | |||
68 PLA</pre>||Clobbers Z&N; and writes in stack | 68 PLA</pre>||Clobbers Z&N; and writes in stack | ||
|- | |- | ||
Line 28,808: | Line 26,021: | ||
D0 FD BNE *-1 | D0 FD BNE *-1 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 4 | ||
18 CLC | 18 CLC | ||
D0 F8 BNE *-6</pre>||Clobbers A, Z&N, and C | D0 F8 BNE *-6</pre>||Clobbers A, Z&N, and C | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
48 PHA | 48 PHA | ||
Line 28,826: | Line 26,035: | ||
28 PLP</pre>||Clobbers S; and writes in stack | 28 PLP</pre>||Clobbers S; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
08 PHP | 08 PHP | ||
48 PHA | 48 PHA | ||
Line 28,840: | Line 26,047: | ||
!colspan="2"|14 bytes | !colspan="2"|14 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
08 PHP | 08 PHP | ||
48 PHA | 48 PHA | ||
Line 28,851: | Line 26,056: | ||
68 PLA | 68 PLA | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
|- | |||
!colspan="2"|40 bytes | |||
|- | |||
|<pre>EA NOP | |||
68 ... PLA × 39</pre>||Clobbers A, S, and Z&N | |||
|- | |- | ||
|} | |} | ||
Line 28,863: | Line 26,073: | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |||
|<pre>48 PHA | |||
A2 1F LDX #31 | |||
CA DEX | |||
D0 FB BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack | |||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 28,868: | Line 26,083: | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack | D0 FB BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 28,929: | Line 26,139: | ||
D0 F8 BNE *-6</pre>||Clobbers A, Z&N, and C; requires @zptemp, and @rts12; and writes in stack | D0 F8 BNE *-6</pre>||Clobbers A, Z&N, and C; requires @zptemp, and @rts12; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
A2 1D LDX #29 | A2 1D LDX #29 | ||
Line 28,937: | Line 26,146: | ||
28 PLP</pre>||Clobbers X, and S; and writes in stack | 28 PLP</pre>||Clobbers X, and S; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
A0 1D LDY #29 | A0 1D LDY #29 | ||
Line 28,946: | Line 26,154: | ||
|- | |- | ||
|<pre>A9 0A LDA #$0A ;hides 'ASL A' | |<pre>A9 0A LDA #$0A ;hides 'ASL A' | ||
48 | 48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
28 PLP | 28 PLP | ||
Line 28,976: | Line 26,183: | ||
AA TAX</pre>||Clobbers A, and Z&N; and writes in stack | AA TAX</pre>||Clobbers A, and Z&N; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
A2 15 LDX #21 | A2 15 LDX #21 | ||
Line 28,985: | Line 26,191: | ||
28 PLP</pre>||Clobbers X; and writes in stack | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
A0 15 LDY #21 | A0 15 LDY #21 | ||
Line 28,997: | Line 26,202: | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
98 TYA | |||
48 PHA | 48 PHA | ||
A0 1C LDY #28 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
A8 TAY | |||
68 PLA</pre>||Clobbers Z&N; and writes in stack | 68 PLA</pre>||Clobbers Z&N; and writes in stack | ||
|- | |- | ||
Line 29,047: | Line 26,252: | ||
|- | |- | ||
|<pre>A9 0A LDA #$0A ;hides 'ASL A' | |<pre>A9 0A LDA #$0A ;hides 'ASL A' | ||
18 ... CLC × 5 | |||
18 | |||
90 00 BCC *+2 | 90 00 BCC *+2 | ||
18 CLC | 18 CLC | ||
D0 F5 BNE *-9</pre>||Clobbers A, Z&N, and C | D0 F5 BNE *-9</pre>||Clobbers A, Z&N, and C | ||
|- | |||
!colspan="2"|40 bytes | |||
|- | |||
|<pre>68 ... PLA × 39 | |||
48 PHA</pre>||Clobbers A, S, and Z&N | |||
|- | |- | ||
|} | |} | ||
Line 29,097: | Line 26,303: | ||
28 PLP</pre>||Clobbers X; and writes in stack | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
A0 1F LDY #31 | A0 1F LDY #31 | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
A2 1F LDX #31 | A2 1F LDX #31 | ||
CA DEX | CA DEX | ||
Line 29,162: | Line 26,366: | ||
18 CLC | 18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
08 PHP | 08 PHP \ × 2 | ||
28 PLP | 28 PLP / | ||
D0 F9 BNE *-5 | D0 F9 BNE *-5 | ||
68 PLA</pre>||Clobbers Z&N, and C; and writes in stack | 68 PLA</pre>||Clobbers Z&N, and C; and writes in stack | ||
Line 29,237: | Line 26,439: | ||
D0 FD BNE *-1 | D0 FD BNE *-1 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 4 | ||
18 CLC | 18 CLC | ||
D0 F8 BNE *-6</pre>||Clobbers A, Z&N, and C | D0 F8 BNE *-6</pre>||Clobbers A, Z&N, and C | ||
|- | |||
!colspan="2"|40 bytes | |||
|- | |||
|<pre>68 ... PLA × 40</pre>||Clobbers A, S, and Z&N | |||
|- | |- | ||
|} | |} | ||
Line 29,361: | Line 26,564: | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
00 00 | 00 00... BRK 0 × 2 | ||
10 F9 BPL *-5 | 10 F9 BPL *-5 | ||
28 PLP</pre>||Clobbers A; requires dummy interrupt handler; and writes in stack | 28 PLP</pre>||Clobbers A; requires dummy interrupt handler; and writes in stack | ||
Line 29,368: | Line 26,570: | ||
|<pre>48 PHA | |<pre>48 PHA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
00 00 | 00 00... BRK 0 × 2 | ||
10 F9 BPL *-5 | 10 F9 BPL *-5 | ||
68 PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack | 68 PLA</pre>||Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack | ||
Line 29,389: | Line 26,590: | ||
28 PLP</pre>||Clobbers A, and S; requires @rts14; and writes in stack | 28 PLP</pre>||Clobbers A, and S; requires @rts14; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
20 xx xx JSR @rts14 | 20 xx xx JSR @rts14 | ||
Line 29,428: | Line 26,628: | ||
68 PLA</pre>||Clobbers Z&N, and C; requires @rts14; and writes in stack | 68 PLA</pre>||Clobbers Z&N, and C; requires @rts14; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
38 SEC | 38 SEC | ||
Line 29,437: | Line 26,636: | ||
28 PLP</pre>||Clobbers A, and S; and writes in stack | 28 PLP</pre>||Clobbers A, and S; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
08 PHP | 08 PHP \ × 2 | ||
28 PLP | 28 PLP / | ||
D0 F9 BNE *-5 | |||
D0 F9 BNE *-5 | |||
68 PLA</pre>||Clobbers S, Z&N, and C; and writes in stack | 68 PLA</pre>||Clobbers S, Z&N, and C; and writes in stack | ||
|- | |- | ||
Line 29,454: | Line 26,650: | ||
A9 69 LDA #$69 ;hides 'ADC #$F8' | A9 69 LDA #$69 ;hides 'ADC #$F8' | ||
F8 SED ;first loop only | F8 SED ;first loop only | ||
EA | EA ... NOP × 2 | ||
10 F8 BPL *-6 | 10 F8 BPL *-6 | ||
68 PLA | 68 PLA | ||
Line 29,464: | Line 26,659: | ||
|<pre>18 CLC | |<pre>18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
18 ... CLC × 5 | |||
18 | |||
90 00 BCC *+2 | 90 00 BCC *+2 | ||
18 CLC | 18 CLC | ||
Line 29,484: | Line 26,675: | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |||
|<pre>A0 17 LDY #23 | |||
EA NOP | |||
88 DEY | |||
D0 FA BNE *-4</pre>||Clobbers Y, and Z&N | |||
|- | |- | ||
|<pre>A2 17 LDX #23 | |<pre>A2 17 LDX #23 | ||
Line 29,489: | Line 26,685: | ||
CA DEX | CA DEX | ||
D0 FA BNE *-4</pre>||Clobbers X, and Z&N | D0 FA BNE *-4</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>A9 E9 LDA #$E9 ;hides 'SBC #$0A' | |<pre>A9 E9 LDA #$E9 ;hides 'SBC #$0A' | ||
Line 29,522: | Line 26,713: | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A2 16 LDX #22 | |||
EA NOP | EA NOP | ||
CA DEX | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A0 16 LDY #22 | |||
EA NOP | EA NOP | ||
88 DEY | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 29,566: | Line 26,757: | ||
|<pre>A5 00 LDA $00 | |<pre>A5 00 LDA $00 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
18 ... CLC × 5 | |||
18 | |||
90 00 BCC *+2 | 90 00 BCC *+2 | ||
18 CLC | 18 CLC | ||
Line 29,661: | Line 26,848: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
48 | 48 ... PHA × 2 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
20 xx xx JSR @rts14 | 20 xx xx JSR @rts14 | ||
Line 29,681: | Line 26,867: | ||
48 PHA | 48 PHA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
08 PHP | 08 PHP \ × 2 | ||
28 PLP | 28 PLP / | ||
D0 F9 BNE *-5 | D0 F9 BNE *-5 | ||
68 PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack | 68 PLA</pre>||Clobbers Z&N, and C; requires @zptemp; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
48 | 48 ... PHA × 2 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
08 PHP | 08 PHP \ × 2 | ||
28 PLP | 28 PLP / | ||
D0 F9 BNE *-5 | D0 F9 BNE *-5 | ||
68 PLA</pre>||Clobbers S, Z&N, and C; and writes in stack | 68 PLA</pre>||Clobbers S, Z&N, and C; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
48 PHA | 48 PHA | ||
Line 29,709: | Line 26,889: | ||
28 PLP</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack | 28 PLP</pre>||Clobbers S; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
48 PHA | 48 PHA | ||
Line 29,728: | Line 26,907: | ||
A9 69 LDA #$69 ;hides 'ADC #$F8' | A9 69 LDA #$69 ;hides 'ADC #$F8' | ||
F8 SED ;first loop only | F8 SED ;first loop only | ||
EA | EA ... NOP × 2 | ||
10 F8 BPL *-6 | 10 F8 BPL *-6 | ||
68 PLA | 68 PLA | ||
Line 29,753: | Line 26,931: | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |||
|<pre>48 PHA | |||
A2 20 LDX #32 | |||
CA DEX | |||
D0 FB BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack | |||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 29,758: | Line 26,941: | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack | D0 FB BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 29,866: | Line 27,044: | ||
|<pre>E6 xx INC @zptemp | |<pre>E6 xx INC @zptemp | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
18 ... CLC × 5 | |||
18 | |||
90 00 BCC *+2 | 90 00 BCC *+2 | ||
18 CLC | 18 CLC | ||
Line 29,880: | Line 27,054: | ||
A5 00 LDA $00 | A5 00 LDA $00 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
18 ... CLC × 5 | |||
18 | |||
90 00 BCC *+2 | 90 00 BCC *+2 | ||
18 CLC | 18 CLC | ||
Line 29,900: | Line 27,070: | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |||
|<pre>68 PLA | |||
A2 20 LDX #32 | |||
CA DEX | |||
D0 FB BNE *-3</pre>||Clobbers A, X, S, and Z&N | |||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA | ||
Line 29,905: | Line 27,080: | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers A, Y, S, and Z&N | D0 FB BNE *-3</pre>||Clobbers A, Y, S, and Z&N | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA | ||
Line 29,918: | Line 27,088: | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
EA | A2 20 LDX #32 | ||
CA DEX | |||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
A0 20 LDY #32 | A0 20 LDY #32 | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 29,960: | Line 27,128: | ||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers A; and writes in stack | 28 PLP</pre>||Clobbers A; and writes in stack | ||
|- | |||
|<pre>EA NOP | |||
08 PHP | |||
A2 1F LDX #31 | |||
CA DEX | |||
D0 FB BNE *-3 | |||
28 PLP</pre>||Clobbers X; and writes in stack | |||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 29,967: | Line 27,142: | ||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers Y; and writes in stack | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 30,020: | Line 27,188: | ||
48 PHA | 48 PHA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
08 PHP | 08 PHP \ × 2 | ||
28 PLP | 28 PLP / | ||
D0 F9 BNE *-5 | D0 F9 BNE *-5 | ||
68 PLA | 68 PLA | ||
Line 30,030: | Line 27,196: | ||
!colspan="2"|14 bytes | !colspan="2"|14 bytes | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 2 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
26 00 ROL $00 | 26 00 ROL $00 | ||
Line 30,110: | Line 27,275: | ||
28 PLP</pre>||Clobbers X, and S; and writes in stack | 28 PLP</pre>||Clobbers X, and S; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
A9 69 LDA #$69 ;hides 'ADC #$38' | A9 69 LDA #$69 ;hides 'ADC #$38' | ||
38 SEC ;first loop only | 38 SEC ;first loop only | ||
Line 30,214: | Line 27,378: | ||
D0 FD BNE *-1 | D0 FD BNE *-1 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
18 ... CLC × 3 | |||
18 | |||
90 00 BCC *+2 | 90 00 BCC *+2 | ||
18 CLC | 18 CLC | ||
Line 30,293: | Line 27,455: | ||
D0 F9 BNE *-5</pre>||Clobbers A, S, Z&N, C, and V | D0 F9 BNE *-5</pre>||Clobbers A, S, Z&N, C, and V | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
18 CLC | 18 CLC | ||
A9 EB LDA #$EB ;hides 'SBC #$18' | A9 EB LDA #$EB ;hides 'SBC #$18' | ||
Line 30,315: | Line 27,476: | ||
28 PLP</pre>||Clobbers A; and writes in stack | 28 PLP</pre>||Clobbers A; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
EA | 08 PHP | ||
A0 1F LDY #31 | |||
88 DEY | |||
D0 FB BNE *-3 | |||
28 PLP</pre>||Clobbers Y; and writes in stack | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
08 PHP | 08 PHP | ||
A2 1F LDX #31 | A2 1F LDX #31 | ||
Line 30,322: | Line 27,489: | ||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers X; and writes in stack | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 30,339: | Line 27,498: | ||
68 PLA</pre>||Clobbers Z&N, C, and V; and writes in stack | 68 PLA</pre>||Clobbers Z&N, C, and V; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
38 SEC | 38 SEC | ||
A9 20 LDA #32 | A9 20 LDA #32 | ||
Line 30,367: | Line 27,525: | ||
|- | |- | ||
|<pre>A9 0A LDA #$0A ;hides 'ASL A' | |<pre>A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 7 | ||
18 CLC | 18 CLC | ||
D0 F5 BNE *-9</pre>||Clobbers A, Z&N, and C | D0 F5 BNE *-9</pre>||Clobbers A, Z&N, and C | ||
Line 30,388: | Line 27,540: | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |||
|<pre>EA NOP | |||
A2 21 LDX #33 | |||
CA DEX | |||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | |||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 30,393: | Line 27,550: | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
Line 30,465: | Line 27,617: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
48 | 48 ... PHA × 2 | ||
A9 69 LDA #$69 ;hides 'ADC #$38' | A9 69 LDA #$69 ;hides 'ADC #$38' | ||
38 SEC ;first loop only | 38 SEC ;first loop only | ||
Line 30,525: | Line 27,676: | ||
48 PHA | 48 PHA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
00 00 | 00 00... BRK 0 × 2 | ||
10 F9 BPL *-5 | 10 F9 BPL *-5 | ||
68 PLA | 68 PLA | ||
Line 30,571: | Line 27,721: | ||
28 PLP</pre>||Requires @rts14; and writes in stack | 28 PLP</pre>||Requires @rts14; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
48 PHA | 48 PHA | ||
Line 30,584: | Line 27,733: | ||
!colspan="2"|14 bytes | !colspan="2"|14 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
48 PHA | 48 PHA | ||
Line 30,602: | Line 27,750: | ||
D0 FD BNE *-1 | D0 FD BNE *-1 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
18 ... CLC × 3 | |||
18 | |||
90 00 BCC *+2 | 90 00 BCC *+2 | ||
18 CLC | 18 CLC | ||
Line 30,620: | Line 27,766: | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |||
|<pre>A2 18 LDX #24 | |||
EA NOP | |||
CA DEX | |||
D0 FA BNE *-4</pre>||Clobbers X, and Z&N | |||
|- | |- | ||
|<pre>A0 18 LDY #24 | |<pre>A0 18 LDY #24 | ||
Line 30,625: | Line 27,776: | ||
88 DEY | 88 DEY | ||
D0 FA BNE *-4</pre>||Clobbers Y, and Z&N | D0 FA BNE *-4</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
Line 30,638: | Line 27,784: | ||
D0 FC BNE *-2</pre>||Clobbers A, Z&N, C, and V; requires dummy interrupt handler; and writes in stack | D0 FC BNE *-2</pre>||Clobbers A, Z&N, C, and V; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 2 | ||
A9 EB LDA #$EB ;hides 'SBC #$18' | A9 EB LDA #$EB ;hides 'SBC #$18' | ||
18 CLC ;first loop only | 18 CLC ;first loop only | ||
Line 30,664: | Line 27,809: | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A2 17 LDX #23 | |||
EA NOP | EA NOP | ||
CA DEX | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A0 17 LDY #23 | |||
EA NOP | EA NOP | ||
88 DEY | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 30,715: | Line 27,860: | ||
|<pre>18 CLC | |<pre>18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 7 | ||
18 CLC | 18 CLC | ||
D0 F5 BNE *-9</pre>||Clobbers A, Z&N, and C | D0 F5 BNE *-9</pre>||Clobbers A, Z&N, and C | ||
Line 30,738: | Line 27,877: | ||
|- | |- | ||
|<pre>A0 C8 LDY #200 ;hides 'INY' | |<pre>A0 C8 LDY #200 ;hides 'INY' | ||
C8 | C8 ... INY × 2 | ||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
Line 30,753: | Line 27,891: | ||
|- | |- | ||
|<pre>A2 5A LDX #90 ;hides 'NOP' | |<pre>A2 5A LDX #90 ;hides 'NOP' | ||
E8 | E8 ... INX × 2 | ||
10 FB BPL *-3</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes | 10 FB BPL *-3</pre>||Clobbers X, and Z&N; and requires support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
A2 21 LDX #33 | A2 21 LDX #33 | ||
CA DEX | CA DEX | ||
Line 30,831: | Line 27,967: | ||
|<pre>A5 00 LDA $00 | |<pre>A5 00 LDA $00 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 7 | ||
18 CLC | |||
D0 F5 BNE *-9</pre>||Clobbers A, Z&N, and C | |||
18 CLC | |||
D0 F5 BNE *-9</pre>||Clobbers A, Z&N, and C | |||
|- | |- | ||
|} | |} | ||
Line 30,906: | Line 28,036: | ||
28 PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack | 28 PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
A9 EB LDA #$EB ;hides 'SBC #$18' | A9 EB LDA #$EB ;hides 'SBC #$18' | ||
18 CLC ;first loop only | 18 CLC ;first loop only | ||
Line 30,968: | Line 28,097: | ||
|<pre>68 PLA | |<pre>68 PLA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 7 | ||
18 CLC | 18 CLC | ||
D0 F5 BNE *-9</pre>||Clobbers A, S, Z&N, and C | D0 F5 BNE *-9</pre>||Clobbers A, S, Z&N, and C | ||
Line 30,980: | Line 28,103: | ||
!colspan="2"|14 bytes | !colspan="2"|14 bytes | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 2 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 7 | ||
18 CLC | 18 CLC | ||
D0 F5 BNE *-9</pre>||Clobbers A, Z&N, and C | D0 F5 BNE *-9</pre>||Clobbers A, Z&N, and C | ||
Line 31,018: | Line 28,134: | ||
|- | |- | ||
|<pre>A0 13 LDY #19 | |<pre>A0 13 LDY #19 | ||
EA | EA ... NOP × 2 | ||
88 DEY | 88 DEY | ||
D0 F9 BNE *-5</pre>||Clobbers Y, and Z&N | D0 F9 BNE *-5</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>A2 13 LDX #19 | |<pre>A2 13 LDX #19 | ||
EA | EA ... NOP × 2 | ||
CA DEX | CA DEX | ||
D0 F9 BNE *-5</pre>||Clobbers X, and Z&N | D0 F9 BNE *-5</pre>||Clobbers X, and Z&N | ||
Line 31,064: | Line 28,178: | ||
AA TAX</pre>||Clobbers A, and Z&N; and writes in stack | AA TAX</pre>||Clobbers A, and Z&N; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
EA | 08 PHP | ||
A2 20 LDX #32 | |||
CA DEX | |||
D0 FB BNE *-3 | |||
28 PLP</pre>||Clobbers X; and writes in stack | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
08 PHP | 08 PHP | ||
A0 20 LDY #32 | A0 20 LDY #32 | ||
Line 31,072: | Line 28,192: | ||
28 PLP</pre>||Clobbers Y; and writes in stack | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
38 SEC | 38 SEC | ||
A9 21 LDA #33 | A9 21 LDA #33 | ||
Line 31,095: | Line 28,206: | ||
28 PLP</pre>||Clobbers A, and S; and writes in stack | 28 PLP</pre>||Clobbers A, and S; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
A9 E9 LDA #$E9 ;hides 'SBC #$0A' | A9 E9 LDA #$E9 ;hides 'SBC #$0A' | ||
0A ASL A ;first loop only | 0A ASL A ;first loop only | ||
Line 31,141: | Line 28,251: | ||
|<pre>E6 xx INC @zptemp | |<pre>E6 xx INC @zptemp | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 7 | ||
18 CLC | 18 CLC | ||
D0 F5 BNE *-9</pre>||Clobbers A, Z&N, and C; and requires @zptemp | D0 F5 BNE *-9</pre>||Clobbers A, Z&N, and C; and requires @zptemp | ||
Line 31,156: | Line 28,260: | ||
A5 00 LDA $00 | A5 00 LDA $00 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 7 | ||
18 CLC | 18 CLC | ||
D0 F5 BNE *-9</pre>||Clobbers A, Z&N, and C | D0 F5 BNE *-9</pre>||Clobbers A, Z&N, and C | ||
Line 31,250: | Line 28,348: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
48 | 48 ... PHA × 2 | ||
A9 EB LDA #$EB ;hides 'SBC #$18' | A9 EB LDA #$EB ;hides 'SBC #$18' | ||
18 CLC ;first loop only | 18 CLC ;first loop only | ||
Line 31,309: | Line 28,406: | ||
68 PLA | 68 PLA | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 7 | ||
18 CLC | 18 CLC | ||
D0 F5 BNE *-9</pre>||Clobbers A, S, Z&N, and C | D0 F5 BNE *-9</pre>||Clobbers A, S, Z&N, and C | ||
Line 31,321: | Line 28,412: | ||
!colspan="2"|15 bytes | !colspan="2"|15 bytes | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 3 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 7 | ||
18 CLC | 18 CLC | ||
D0 F5 BNE *-9</pre>||Clobbers A, Z&N, and C | D0 F5 BNE *-9</pre>||Clobbers A, Z&N, and C | ||
Line 31,398: | Line 28,481: | ||
|<pre>38 SEC | |<pre>38 SEC | ||
A9 13 LDA #19 | A9 13 LDA #19 | ||
EA | EA ... NOP × 2 | ||
E9 01 SBC #1 | E9 01 SBC #1 | ||
D0 F7 BNE *-7</pre>||Clobbers A, Z&N, C, and V | D0 F7 BNE *-7</pre>||Clobbers A, Z&N, C, and V | ||
Line 31,410: | Line 28,492: | ||
D0 FA BNE *-4</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack | D0 FA BNE *-4</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
A9 EB LDA #$EB ;hides 'SBC #$18' | A9 EB LDA #$EB ;hides 'SBC #$18' | ||
Line 31,418: | Line 28,499: | ||
28 PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack | 28 PLP</pre>||Clobbers A, and S; requires support for unofficial opcodes; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 3 | ||
A9 EB LDA #$EB ;hides 'SBC #$18' | A9 EB LDA #$EB ;hides 'SBC #$18' | ||
18 CLC ;first loop only | 18 CLC ;first loop only | ||
Line 31,491: | Line 28,570: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
48 | 48 ... PHA × 2 | ||
A9 E9 LDA #$E9 ;hides 'SBC #$0A' | A9 E9 LDA #$E9 ;hides 'SBC #$0A' | ||
0A ASL A ;first loop only | 0A ASL A ;first loop only | ||
Line 31,499: | Line 28,577: | ||
68 PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack | 68 PLA</pre>||Clobbers S, Z&N, C, and V; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
18 CLC | 18 CLC | ||
Line 31,508: | Line 28,585: | ||
28 PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack | 28 PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
48 PHA | 48 PHA | ||
18 CLC | 18 CLC | ||
Line 31,541: | Line 28,617: | ||
D0 FD BNE *-1 | D0 FD BNE *-1 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 5 | ||
18 CLC | 18 CLC | ||
D0 F7 BNE *-7</pre>||Clobbers A, Z&N, and C | D0 F7 BNE *-7</pre>||Clobbers A, Z&N, and C | ||
Line 31,573: | Line 28,645: | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
EA | A0 22 LDY #34 | ||
88 DEY | |||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
A2 22 LDX #34 | A2 22 LDX #34 | ||
CA DEX | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | D0 FB BNE *-3</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 31,599: | Line 28,669: | ||
|<pre>EA NOP | |<pre>EA NOP | ||
08 PHP | 08 PHP | ||
A0 21 LDY #33 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
08 PHP | 08 PHP | ||
A2 21 LDX #33 | |||
CA DEX | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>A9 0A LDA #$0A ;hides 'ASL A' | |<pre>A9 0A LDA #$0A ;hides 'ASL A' | ||
Line 31,701: | Line 28,771: | ||
|<pre>18 CLC | |<pre>18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X / | ||
90 F5 BCC *-9</pre>||Clobbers A, Z&N, and C | 90 F5 BCC *-9</pre>||Clobbers A, Z&N, and C | ||
|- | |- | ||
Line 31,713: | Line 28,781: | ||
{| class="wikitable testtable" | {| class="wikitable testtable" | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |||
|<pre>A2 23 LDX #35 | |||
CA DEX | |||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | |||
|- | |- | ||
|<pre>A0 23 LDY #35 | |<pre>A0 23 LDY #35 | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>A9 LDA #149 | |<pre>A9 LDA #149 | ||
Line 31,740: | Line 28,808: | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A2 18 LDX #24 | |||
EA NOP | EA NOP | ||
CA DEX | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A0 18 LDY #24 | |||
EA NOP | EA NOP | ||
88 DEY | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 31,792: | Line 28,860: | ||
68 PLA</pre>||Clobbers Z&N, C, and V; requires dummy interrupt handler; and writes in stack | 68 PLA</pre>||Clobbers Z&N, C, and V; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 2 | ||
08 PHP | 08 PHP | ||
A9 EB LDA #$EB ;hides 'SBC #$18' | A9 EB LDA #$EB ;hides 'SBC #$18' | ||
Line 31,824: | Line 28,891: | ||
D0 FD BNE *-1 | D0 FD BNE *-1 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 5 | ||
18 CLC | 18 CLC | ||
D0 F7 BNE *-7</pre>||Clobbers A, Z&N, and C | D0 F7 BNE *-7</pre>||Clobbers A, Z&N, and C | ||
Line 31,915: | Line 28,978: | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A0 C8 LDY #200 ;hides 'INY' | A0 C8 LDY #200 ;hides 'INY' | ||
C8 | C8 ... INY × 2 | ||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers Y; and writes in stack | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>A0 10 LDY #16 | |<pre>A0 10 LDY #16 | ||
EA | EA ... NOP × 3 | ||
88 DEY | 88 DEY | ||
D0 F8 BNE *-6</pre>||Clobbers Y, and Z&N | D0 F8 BNE *-6</pre>||Clobbers Y, and Z&N | ||
Line 31,947: | Line 29,007: | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A2 5A LDX #90 ;hides 'NOP' | A2 5A LDX #90 ;hides 'NOP' | ||
E8 | E8 ... INX × 2 | ||
10 FB BPL *-3 | 10 FB BPL *-3 | ||
28 PLP</pre>||Clobbers X; requires support for unofficial opcodes; and writes in stack | 28 PLP</pre>||Clobbers X; requires support for unofficial opcodes; and writes in stack | ||
Line 31,954: | Line 29,013: | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre> | |<pre>98 TYA | ||
48 PHA | 48 PHA | ||
A0 21 LDY #33 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
A8 TAY</pre>||Clobbers A, and Z&N; and writes in stack | |||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
A2 21 LDX #33 | A2 21 LDX #33 | ||
Line 31,970: | Line 29,028: | ||
28 PLP</pre>||Clobbers X; and writes in stack | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
38 SEC | 38 SEC | ||
A9 22 LDA #34 | A9 22 LDA #34 | ||
Line 32,025: | Line 29,082: | ||
!colspan="2"|14 bytes | !colspan="2"|14 bytes | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 2 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X / | ||
90 F5 BCC *-9</pre>||Clobbers A, Z&N, and C | 90 F5 BCC *-9</pre>||Clobbers A, Z&N, and C | ||
|- | |- | ||
Line 32,045: | Line 29,099: | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |||
|<pre>EA NOP | |||
A2 23 LDX #35 | |||
CA DEX | |||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | |||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 32,050: | Line 29,109: | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
Line 32,087: | Line 29,141: | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre> | |<pre>98 TYA | ||
48 PHA | 48 PHA | ||
A0 18 LDY #24 ;hides 'CLC' | |||
88 DEY | |||
D0 FC BNE *-2 | D0 FC BNE *-2 | ||
68 PLA | 68 PLA | ||
A8 TAY</pre>||Clobbers A, and Z&N; and writes in stack | |||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 32,146: | Line 29,200: | ||
18 CLC | 18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X / | ||
90 F5 BCC *-9</pre>||Clobbers A, Z&N, and C | 90 F5 BCC *-9</pre>||Clobbers A, Z&N, and C | ||
|- | |- | ||
Line 32,163: | Line 29,215: | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |||
|<pre>A0 15 LDY #21 ;hides 'ORA zp,X' | |||
88 DEY ;first loop only | |||
88 DEY | |||
D0 FB BNE *-3</pre>||Clobbers A, Y, and Z&N | |||
|- | |- | ||
|<pre>A2 15 LDX #21 ;hides 'ORA zp,X' | |<pre>A2 15 LDX #21 ;hides 'ORA zp,X' | ||
Line 32,169: | Line 29,226: | ||
D0 FB BNE *-3</pre>||Clobbers A, X, and Z&N | D0 FB BNE *-3</pre>||Clobbers A, X, and Z&N | ||
|- | |- | ||
|<pre>A0 | |<pre>A0 D8 LDY #216 ;hides 'CLD' | ||
C8 ... INY × 2 | |||
D0 FB BNE *-3</pre>||Clobbers Y, Z&N, and D | |||
D0 FB BNE *-3</pre>||Clobbers | |||
|- | |- | ||
|<pre>A2 D8 LDX #216 ;hides 'CLD' | |<pre>A2 D8 LDX #216 ;hides 'CLD' | ||
E8 | E8 ... INX × 2 | ||
D0 FB BNE *-3</pre>||Clobbers X, Z&N, and D | D0 FB BNE *-3</pre>||Clobbers X, Z&N, and D | ||
|- | |- | ||
|<pre>A0 88 LDY #136 ;hides 'DEY' | |<pre>A0 88 LDY #136 ;hides 'DEY' | ||
Line 32,251: | Line 29,301: | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |||
|<pre>08 PHP | |||
A2 13 LDX #19 | |||
EA ... NOP × 2 | |||
CA DEX | |||
D0 F9 BNE *-5 | |||
28 PLP</pre>||Clobbers X; and writes in stack | |||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A0 13 LDY #19 | A0 13 LDY #19 | ||
EA | EA ... NOP × 2 | ||
88 DEY | 88 DEY | ||
D0 F9 BNE *-5 | D0 F9 BNE *-5 | ||
28 PLP</pre>||Clobbers Y; and writes in stack | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>38 SEC | |<pre>38 SEC | ||
Line 32,303: | Line 29,351: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
98 TYA | |||
48 PHA | 48 PHA | ||
A0 21 LDY #33 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
A8 TAY</pre>||Clobbers A, and Z&N; and writes in stack | |||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 32,339: | Line 29,387: | ||
68 PLA</pre>||Clobbers Z&N; and writes in stack | 68 PLA</pre>||Clobbers Z&N; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
38 SEC | 38 SEC | ||
Line 32,386: | Line 29,433: | ||
18 CLC | 18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X / | ||
90 F5 BCC *-9</pre>||Clobbers A, S, Z&N, and C | 90 F5 BCC *-9</pre>||Clobbers A, S, Z&N, and C | ||
|- | |- | ||
!colspan="2"|15 bytes | !colspan="2"|15 bytes | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 3 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X / | ||
90 F5 BCC *-9</pre>||Clobbers A, Z&N, and C | 90 F5 BCC *-9</pre>||Clobbers A, Z&N, and C | ||
|- | |- | ||
Line 32,428: | Line 29,469: | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
A0 23 LDY #35 | A0 23 LDY #35 | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
A2 23 LDX #35 | A2 23 LDX #35 | ||
CA DEX | CA DEX | ||
Line 32,540: | Line 29,579: | ||
18 CLC | 18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X / | ||
90 F5 BCC *-9</pre>||Clobbers A, Z&N, and C; and requires @zptemp | 90 F5 BCC *-9</pre>||Clobbers A, Z&N, and C; and requires @zptemp | ||
|- | |- | ||
Line 32,552: | Line 29,589: | ||
18 CLC | 18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X / | ||
90 F5 BCC *-9</pre>||Clobbers A, Z&N, and C | 90 F5 BCC *-9</pre>||Clobbers A, Z&N, and C | ||
|- | |- | ||
Line 32,673: | Line 29,708: | ||
48 PHA | 48 PHA | ||
A0 C8 LDY #200 ;hides 'INY' | A0 C8 LDY #200 ;hides 'INY' | ||
C8 | C8 ... INY × 2 | ||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
Line 32,684: | Line 29,718: | ||
38 SEC | 38 SEC | ||
A9 13 LDA #19 | A9 13 LDA #19 | ||
EA | EA ... NOP × 2 | ||
E9 01 SBC #1 | E9 01 SBC #1 | ||
D0 F7 BNE *-7 | D0 F7 BNE *-7 | ||
Line 32,693: | Line 29,726: | ||
38 SEC | 38 SEC | ||
A9 13 LDA #19 | A9 13 LDA #19 | ||
EA | EA ... NOP × 2 | ||
E9 01 SBC #1 | E9 01 SBC #1 | ||
D0 F7 BNE *-7 | D0 F7 BNE *-7 | ||
68 PLA</pre>||Clobbers Z&N, C, and V; and writes in stack | 68 PLA</pre>||Clobbers Z&N, C, and V; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
48 PHA | 48 PHA | ||
Line 32,752: | Line 29,783: | ||
28 PLP</pre>||Clobbers S; and writes in stack | 28 PLP</pre>||Clobbers S; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
48 PHA | 48 PHA | ||
Line 32,765: | Line 29,795: | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>08 PHP | |<pre>EA ... NOP × 2 | ||
08 PHP | |||
28 PLP | |||
08 PHP | |||
48 PHA | 48 PHA | ||
A9 69 LDA #$69 ;hides 'ADC #$38' | |||
38 SEC ;first loop only | |||
D0 FC BNE *-2 | |||
D0 | |||
68 PLA | 68 PLA | ||
28 PLP</pre>||Writes in stack | 28 PLP</pre>||Writes in stack | ||
Line 32,782: | Line 29,811: | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
E6 xx INC @zptemp | E6 xx INC @zptemp | ||
26 00 ROL $00 | 26 00 ROL $00 \ × 2 | ||
66 00 ROR $00 | 66 00 ROR $00 / | ||
90 F3 BCC *-11</pre>||Clobbers A, Z&N, and C; and requires @zptemp | 90 F3 BCC *-11</pre>||Clobbers A, Z&N, and C; and requires @zptemp | ||
|- | |- | ||
Line 32,792: | Line 29,819: | ||
18 CLC | 18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X / | ||
90 F5 BCC *-9</pre>||Clobbers A, S, Z&N, and C | 90 F5 BCC *-9</pre>||Clobbers A, S, Z&N, and C | ||
|- | |- | ||
Line 32,809: | Line 29,834: | ||
!colspan="2"|16 bytes | !colspan="2"|16 bytes | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 4 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X / | ||
90 F5 BCC *-9</pre>||Clobbers A, Z&N, and C | 90 F5 BCC *-9</pre>||Clobbers A, Z&N, and C | ||
|- | |- | ||
Line 32,842: | Line 29,862: | ||
D0 FA BNE *-4</pre>||Clobbers Y, Z&N, and C; and requires @zptemp | D0 FA BNE *-4</pre>||Clobbers Y, Z&N, and C; and requires @zptemp | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
A2 23 LDX #35 | A2 23 LDX #35 | ||
CA DEX | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack | D0 FB BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
A0 23 LDY #35 | A0 23 LDY #35 | ||
88 DEY | 88 DEY | ||
Line 32,878: | Line 29,896: | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
A0 23 LDY #35 | A0 23 LDY #35 | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
A2 23 LDX #35 | |||
A2 23 LDX #35 | |||
CA DEX | CA DEX | ||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | D0 FB BNE *-3</pre>||Clobbers X, and Z&N | ||
Line 32,900: | Line 29,914: | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre> | |<pre>98 TYA | ||
48 PHA | 48 PHA | ||
A0 22 LDY #34 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
A8 TAY</pre>||Clobbers A, and Z&N; and writes in stack | |||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
A2 22 LDX #34 | A2 22 LDX #34 | ||
Line 32,916: | Line 29,929: | ||
28 PLP</pre>||Clobbers X; and writes in stack | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
A0 22 LDY #34 | A0 22 LDY #34 | ||
Line 32,924: | Line 29,936: | ||
28 PLP</pre>||Clobbers Y; and writes in stack | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
38 SEC | 38 SEC | ||
A9 23 LDA #35 | A9 23 LDA #35 | ||
Line 32,988: | Line 29,999: | ||
18 CLC | 18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X / | ||
90 F5 BCC *-9</pre>||Clobbers A, Z&N, and C | 90 F5 BCC *-9</pre>||Clobbers A, Z&N, and C | ||
|- | |- | ||
Line 33,083: | Line 30,092: | ||
|- | |- | ||
|<pre>A9 0A LDA #$0A ;hides 'ASL A' | |<pre>A9 0A LDA #$0A ;hides 'ASL A' | ||
48 | 48 ... PHA × 2 | ||
20 xx xx JSR @rts12 | 20 xx xx JSR @rts12 | ||
D0 F8 BNE *-6</pre>||Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack | D0 F8 BNE *-6</pre>||Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack | ||
Line 33,110: | Line 30,118: | ||
|<pre>A9 0A LDA #$0A ;hides 'ASL A' | |<pre>A9 0A LDA #$0A ;hides 'ASL A' | ||
EA NOP | EA NOP | ||
08 PHP | 08 PHP \ × 2 | ||
28 PLP | 28 PLP / | ||
18 CLC | 18 CLC | ||
D0 F7 BNE *-7</pre>||Clobbers A, Z&N, and C; and writes in stack | D0 F7 BNE *-7</pre>||Clobbers A, Z&N, and C; and writes in stack | ||
Line 33,125: | Line 30,131: | ||
28 PLP</pre>||Clobbers A, and S; and writes in stack | 28 PLP</pre>||Clobbers A, and S; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
38 SEC | 38 SEC | ||
A9 22 LDA #34 | A9 22 LDA #34 | ||
Line 33,206: | Line 30,211: | ||
|- | |- | ||
|<pre>A9 0A LDA #$0A ;hides 'ASL A' | |<pre>A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 8 | ||
18 CLC | 18 CLC | ||
D0 F4 BNE *-10</pre>||Clobbers A, Z&N, and C | D0 F4 BNE *-10</pre>||Clobbers A, Z&N, and C | ||
Line 33,228: | Line 30,226: | ||
|- | |- | ||
!colspan="2"|6 bytes | !colspan="2"|6 bytes | ||
|- | |||
|<pre>48 PHA | |||
A2 24 LDX #36 | |||
CA DEX | |||
D0 FB BNE *-3</pre>||Clobbers X, S, and Z&N; and writes in stack | |||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 33,233: | Line 30,236: | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack | D0 FB BNE *-3</pre>||Clobbers Y, S, and Z&N; and writes in stack | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
Line 33,288: | Line 30,286: | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A0 16 LDY #22 | A0 16 LDY #22 | ||
C5 00 CMP $00 | |||
88 DEY | 88 DEY | ||
D0 F9 BNE *-5 | D0 F9 BNE *-5 | ||
Line 33,372: | Line 30,370: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
98 TYA | |||
48 PHA | 48 PHA | ||
A0 22 LDY #34 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
A8 TAY</pre>||Clobbers A, and Z&N; and writes in stack | |||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 33,387: | Line 30,385: | ||
68 PLA</pre>||Clobbers Z&N, C, and V; writes in stack; and not relocatable code | 68 PLA</pre>||Clobbers Z&N, C, and V; writes in stack; and not relocatable code | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
38 SEC | 38 SEC | ||
A9 23 LDA #35 | A9 23 LDA #35 | ||
Line 33,398: | Line 30,394: | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
98 TYA | |||
48 PHA | 48 PHA | ||
A0 21 LDY #33 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
A8 TAY | |||
68 PLA</pre>||Clobbers Z&N; and writes in stack | 68 PLA</pre>||Clobbers Z&N; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
38 SEC | 38 SEC | ||
Line 33,435: | Line 30,430: | ||
18 CLC | 18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X / | ||
90 F5 BCC *-9</pre>||Clobbers A, Z&N, and C | 90 F5 BCC *-9</pre>||Clobbers A, Z&N, and C | ||
|- | |- | ||
Line 33,516: | Line 30,509: | ||
|<pre>EA NOP | |<pre>EA NOP | ||
08 PHP | 08 PHP | ||
A0 23 LDY #35 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
08 PHP | 08 PHP | ||
A2 23 LDX #35 | |||
CA DEX | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>38 SEC | |<pre>38 SEC | ||
Line 33,560: | Line 30,553: | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
98 TYA | |||
48 PHA | 48 PHA | ||
A0 18 LDY #24 ;hides 'CLC' | |||
88 DEY | |||
D0 FC BNE *-2 | D0 FC BNE *-2 | ||
68 PLA | 68 PLA | ||
A8 TAY | |||
68 PLA</pre>||Clobbers Z&N; and writes in stack | 68 PLA</pre>||Clobbers Z&N; and writes in stack | ||
|- | |- | ||
Line 33,585: | Line 30,578: | ||
|<pre>18 CLC | |<pre>18 CLC | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 8 | ||
18 CLC | 18 CLC | ||
D0 F4 BNE *-10</pre>||Clobbers A, Z&N, and C | D0 F4 BNE *-10</pre>||Clobbers A, Z&N, and C | ||
Line 33,638: | Line 30,624: | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A2 D8 LDX #216 ;hides 'CLD' | |||
E8 ... INX × 2 | |||
D0 FB BNE *-3 | |||
D0 FB BNE *-3 | 28 PLP</pre>||Clobbers X; and writes in stack | ||
28 PLP</pre>||Clobbers | |||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A0 D8 LDY #216 ;hides 'CLD' | |||
C8 ... INY × 2 | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 33,710: | Line 30,694: | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA | ||
98 TYA | |||
48 PHA | 48 PHA | ||
A0 22 LDY #34 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
A8 TAY</pre>||Clobbers A, S, and Z&N; and writes in stack | |||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 33,756: | Line 30,740: | ||
|<pre>EA NOP | |<pre>EA NOP | ||
48 PHA | 48 PHA | ||
98 TYA | |||
48 PHA | 48 PHA | ||
A0 21 LDY #33 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
A8 TAY | |||
68 PLA</pre>||Clobbers Z&N; and writes in stack | 68 PLA</pre>||Clobbers Z&N; and writes in stack | ||
|- | |- | ||
Line 33,777: | Line 30,761: | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
48 PHA | 48 PHA | ||
Line 33,792: | Line 30,775: | ||
|<pre>A5 00 LDA $00 | |<pre>A5 00 LDA $00 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 8 | ||
18 CLC | 18 CLC | ||
D0 F4 BNE *-10</pre>||Clobbers A, Z&N, and C | D0 F4 BNE *-10</pre>||Clobbers A, Z&N, and C | ||
Line 33,837: | Line 30,813: | ||
88 DEY | 88 DEY | ||
D0 FA BNE *-4</pre>||Clobbers Y, S, and Z&N; and writes in stack | D0 FA BNE *-4</pre>||Clobbers Y, S, and Z&N; and writes in stack | ||
|- | |||
|<pre>EA NOP | |||
68 PLA | |||
A2 24 LDX #36 | |||
CA DEX | |||
D0 FB BNE *-3</pre>||Clobbers A, X, S, and Z&N | |||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 33,843: | Line 30,825: | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers A, Y, S, and Z&N | D0 FB BNE *-3</pre>||Clobbers A, Y, S, and Z&N | ||
|- | |- | ||
|<pre>18 CLC | |<pre>18 CLC | ||
Line 33,874: | Line 30,850: | ||
!colspan="2"|8 bytes | !colspan="2"|8 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
A2 1A LDX #26 | A2 1A LDX #26 | ||
EA NOP | EA NOP | ||
Line 33,881: | Line 30,856: | ||
D0 FA BNE *-4</pre>||Clobbers X, and Z&N | D0 FA BNE *-4</pre>||Clobbers X, and Z&N | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
A0 1A LDY #26 | A0 1A LDY #26 | ||
EA NOP | EA NOP | ||
Line 33,908: | Line 30,882: | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre> | |<pre>98 TYA | ||
48 PHA | 48 PHA | ||
A0 23 LDY #35 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
A8 TAY</pre>||Clobbers A, and Z&N; and writes in stack | |||
|- | |||
|<pre>EA ... NOP × 2 | |||
08 PHP | |||
A0 23 LDY #35 | |||
88 DEY | |||
D0 FB BNE *-3 | |||
28 PLP</pre>||Clobbers Y; and writes in stack | |||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
A2 23 LDX #35 | A2 23 LDX #35 | ||
Line 33,923: | Line 30,903: | ||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers X; and writes in stack | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>38 SEC | |<pre>38 SEC | ||
Line 33,979: | Line 30,951: | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA NOP | EA NOP | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X / | ||
90 F4 BCC *-10</pre>||Clobbers A, Z&N, and C | 90 F4 BCC *-10</pre>||Clobbers A, Z&N, and C | ||
|- | |- | ||
Line 34,007: | Line 30,977: | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
|- | |||
|<pre>08 PHP | |||
A0 24 LDY #36 | |||
88 DEY | |||
D0 FB BNE *-3 | |||
28 PLP</pre>||Clobbers Y; and writes in stack | |||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 34,013: | Line 30,989: | ||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers X; and writes in stack | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>38 SEC | |<pre>38 SEC | ||
Line 34,068: | Line 31,038: | ||
28 PLP</pre>||Clobbers A, and S; and writes in stack | 28 PLP</pre>||Clobbers A, and S; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
38 SEC | 38 SEC | ||
A9 23 LDA #35 | A9 23 LDA #35 | ||
Line 34,125: | Line 31,094: | ||
48 PHA | 48 PHA | ||
A0 C8 LDY #200 ;hides 'INY' | A0 C8 LDY #200 ;hides 'INY' | ||
C8 | C8 ... INY × 2 | ||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
Line 34,138: | Line 31,106: | ||
38 SEC | 38 SEC | ||
A9 13 LDA #19 | A9 13 LDA #19 | ||
EA | EA ... NOP × 2 | ||
E9 01 SBC #1 | E9 01 SBC #1 | ||
D0 F7 BNE *-7 | D0 F7 BNE *-7 | ||
Line 34,149: | Line 31,116: | ||
|<pre>E6 xx INC @zptemp | |<pre>E6 xx INC @zptemp | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 8 | ||
18 CLC | |||
D0 F4 BNE *-10</pre>||Clobbers A, Z&N, and C; and requires @zptemp | |||
|- | |||
!colspan="2"|16 bytes | |||
18 CLC | |||
D0 F4 BNE *-10</pre>||Clobbers A, Z&N, and C; and requires @zptemp | |||
|- | |||
!colspan="2"|16 bytes | |||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
A5 00 LDA $00 | A5 00 LDA $00 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 8 | ||
18 CLC | 18 CLC | ||
D0 F4 BNE *-10</pre>||Clobbers A, Z&N, and C | D0 F4 BNE *-10</pre>||Clobbers A, Z&N, and C | ||
Line 34,225: | Line 31,178: | ||
68 PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack | 68 PLA</pre>||Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
A9 LDA #158 | A9 LDA #158 | ||
20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks | 20 xx xx JSR delay_a_25_clocks</pre>||Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks | ||
Line 34,267: | Line 31,219: | ||
B0 F8 BCS *-6</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp | B0 F8 BCS *-6</pre>||Clobbers A, Z&N, C, and V; and requires @zptemp | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
48 | 08 PHP | ||
A0 23 LDY #35 | |||
88 DEY | |||
D0 FB BNE *-3 | |||
28 PLP</pre>||Clobbers Y, and S; and writes in stack | |||
|- | |||
|<pre>48 ... PHA × 2 | |||
08 PHP | 08 PHP | ||
A2 23 LDX #35 | A2 23 LDX #35 | ||
Line 34,274: | Line 31,232: | ||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers X, and S; and writes in stack | 28 PLP</pre>||Clobbers X, and S; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 34,307: | Line 31,257: | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
98 TYA | |||
48 PHA | 48 PHA | ||
A0 23 LDY #35 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
A8 TAY</pre>||Clobbers A, and Z&N; and writes in stack | |||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
08 PHP | 08 PHP | ||
A2 23 LDX #35 | A2 23 LDX #35 | ||
Line 34,324: | Line 31,272: | ||
28 PLP</pre>||Clobbers X; and writes in stack | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
08 PHP | 08 PHP | ||
A0 23 LDY #35 | A0 23 LDY #35 | ||
Line 34,343: | Line 31,289: | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
98 TYA | |||
48 PHA | 48 PHA | ||
A0 22 LDY #34 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
A8 TAY | |||
68 PLA</pre>||Clobbers Z&N; and writes in stack | 68 PLA</pre>||Clobbers Z&N; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
38 SEC | 38 SEC | ||
Line 34,375: | Line 31,320: | ||
!colspan="2"|15 bytes | !colspan="2"|15 bytes | ||
|- | |- | ||
|<pre> | |<pre>18 ... CLC × 2 | ||
18 | |||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA NOP | EA NOP | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X / | ||
90 F4 BCC *-10</pre>||Clobbers A, Z&N, and C | 90 F4 BCC *-10</pre>||Clobbers A, Z&N, and C | ||
|- | |- | ||
Line 34,422: | Line 31,364: | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A0 1A LDY #26 | |||
EA NOP | EA NOP | ||
88 DEY | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A2 1A LDX #26 | |||
EA NOP | EA NOP | ||
CA DEX | |||
D0 FA BNE *-4 | D0 FA BNE *-4 | ||
28 PLP</pre>||Clobbers | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>EA NOP | |<pre>EA NOP | ||
Line 34,523: | Line 31,465: | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA NOP | EA NOP | ||
08 PHP | 08 PHP \ × 2 | ||
28 PLP | 28 PLP / | ||
18 CLC | 18 CLC | ||
D0 F7 BNE *-7 | D0 F7 BNE *-7 | ||
Line 34,577: | Line 31,517: | ||
D0 FD BNE *-1 | D0 FD BNE *-1 | ||
A9 0A LDA #$0A ;hides 'ASL A' | A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 6 | ||
18 CLC | 18 CLC | ||
D0 F6 BNE *-8</pre>||Clobbers A, Z&N, and C | D0 F6 BNE *-8</pre>||Clobbers A, Z&N, and C | ||
Line 34,592: | Line 31,527: | ||
{| class="wikitable testtable" | {| class="wikitable testtable" | ||
!colspan="2"|5 bytes | !colspan="2"|5 bytes | ||
|- | |||
|<pre>A2 26 LDX #38 | |||
CA DEX | |||
D0 FB BNE *-3</pre>||Clobbers X, and Z&N | |||
|- | |- | ||
|<pre>A0 26 LDY #38 | |<pre>A0 26 LDY #38 | ||
88 DEY | 88 DEY | ||
D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | D0 FB BNE *-3</pre>||Clobbers Y, and Z&N | ||
|- | |- | ||
!colspan="2"|7 bytes | !colspan="2"|7 bytes | ||
Line 34,624: | Line 31,559: | ||
20 xx xx JSR @rts14 | 20 xx xx JSR @rts14 | ||
30 F9 BMI *-5</pre>||Clobbers A, Z&N, C, and V; requires @rts14; and writes in stack | 30 F9 BMI *-5</pre>||Clobbers A, Z&N, C, and V; requires @rts14; and writes in stack | ||
|- | |||
|<pre>48 PHA | |||
08 PHP | |||
A0 24 LDY #36 | |||
88 DEY | |||
D0 FB BNE *-3 | |||
28 PLP</pre>||Clobbers Y, and S; and writes in stack | |||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 34,631: | Line 31,573: | ||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers X, and S; and writes in stack | 28 PLP</pre>||Clobbers X, and S; and writes in stack | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 34,646: | Line 31,581: | ||
|- | |- | ||
|<pre>A9 0A LDA #$0A ;hides 'ASL A' | |<pre>A9 0A LDA #$0A ;hides 'ASL A' | ||
48 | 48 ... PHA × 2 | ||
00 00 BRK 0 | 00 00 BRK 0 | ||
D0 F9 BNE *-5</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack | D0 F9 BNE *-5</pre>||Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>68 | |<pre>68 ... PLA × 2 | ||
38 SEC | 38 SEC | ||
A9 EB LDA #$EB ;hides 'SBC #$DA' | A9 EB LDA #$EB ;hides 'SBC #$DA' | ||
Line 34,659: | Line 31,592: | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |||
|<pre>08 PHP | |||
A4 00 LDY $00 | |||
A0 24 LDY #36 | |||
88 DEY | |||
D0 FB BNE *-3 | |||
28 PLP</pre>||Clobbers Y; and writes in stack | |||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 34,666: | Line 31,606: | ||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
28 PLP</pre>||Clobbers X; and writes in stack | 28 PLP</pre>||Clobbers X; and writes in stack | ||
|- | |- | ||
|<pre>A9 0A LDA #$0A ;hides 'ASL A' | |<pre>A9 0A LDA #$0A ;hides 'ASL A' | ||
Line 34,693: | Line 31,626: | ||
|- | |- | ||
|<pre>A9 0A LDA #$0A ;hides 'ASL A' | |<pre>A9 0A LDA #$0A ;hides 'ASL A' | ||
EA | EA ... NOP × 2 | ||
00 00 BRK 0 | 00 00 BRK 0 | ||
18 CLC | 18 CLC | ||
Line 34,722: | Line 31,654: | ||
|- | |- | ||
|<pre>68 PLA | |<pre>68 PLA | ||
98 TYA | |||
48 PHA | 48 PHA | ||
A0 23 LDY #35 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
A8 TAY</pre>||Clobbers A, S, and Z&N; and writes in stack | |||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 34,738: | Line 31,670: | ||
28 PLP</pre>||Clobbers A, and S; requires dummy interrupt handler; and writes in stack | 28 PLP</pre>||Clobbers A, and S; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
A9 E9 LDA #$E9 ;hides 'SBC #$0A' | A9 E9 LDA #$E9 ;hides 'SBC #$0A' | ||
0A ASL A ;first loop only | 0A ASL A ;first loop only | ||
Line 34,748: | Line 31,679: | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
98 TYA | |||
48 PHA | 48 PHA | ||
A0 23 LDY #35 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
A8 TAY</pre>||Clobbers A, and Z&N; and writes in stack | |||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 34,783: | Line 31,713: | ||
68 PLA</pre>||Clobbers Z&N, C, and V; requires dummy interrupt handler; and writes in stack | 68 PLA</pre>||Clobbers Z&N, C, and V; requires dummy interrupt handler; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 2 | ||
08 PHP | 08 PHP | ||
38 SEC | 38 SEC | ||
Line 34,792: | Line 31,721: | ||
28 PLP</pre>||Clobbers A, and S; and writes in stack | 28 PLP</pre>||Clobbers A, and S; and writes in stack | ||
|- | |- | ||
|<pre>48 | |<pre>48 ... PHA × 3 | ||
38 SEC | 38 SEC | ||
A9 23 LDA #35 | A9 23 LDA #35 | ||
Line 34,823: | Line 31,750: | ||
|<pre>EA NOP | |<pre>EA NOP | ||
48 PHA | 48 PHA | ||
98 TYA | |||
48 PHA | 48 PHA | ||
A0 22 LDY #34 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
A8 TAY | |||
68 PLA</pre>||Clobbers Z&N; and writes in stack | 68 PLA</pre>||Clobbers Z&N; and writes in stack | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 3 | ||
08 PHP | 08 PHP | ||
38 SEC | 38 SEC | ||
Line 34,844: | Line 31,769: | ||
!colspan="2"|13 bytes | !colspan="2"|13 bytes | ||
|- | |- | ||
|<pre>EA | |<pre>EA ... NOP × 2 | ||
08 PHP | 08 PHP | ||
48 PHA | 48 PHA | ||
Line 34,858: | Line 31,782: | ||
|- | |- | ||
|<pre>A9 0A LDA #$0A ;hides 'ASL A' | |<pre>A9 0A LDA #$0A ;hides 'ASL A' | ||
18 ... CLC × 7 | |||
18 | |||
90 00 BCC *+2 | 90 00 BCC *+2 | ||
18 CLC | 18 CLC | ||
Line 34,902: | Line 31,820: | ||
|<pre>A2 E0 LDX #224 ;hides 'CPX #imm' | |<pre>A2 E0 LDX #224 ;hides 'CPX #imm' | ||
B4 48 LDY $48,X ;hides 'PHA' | B4 48 LDY $48,X ;hides 'PHA' | ||
E8 | E8 ... INX × 2 | ||
D0 F9 BNE *-5</pre>||Clobbers X, Y, S, Z&N, C, and V; and writes in stack | D0 F9 BNE *-5</pre>||Clobbers X, Y, S, Z&N, C, and V; and writes in stack | ||
|- | |- | ||
|<pre>A2 E0 LDX #224 ;hides 'CPX #imm' | |<pre>A2 E0 LDX #224 ;hides 'CPX #imm' | ||
14 48 NOP $48,X ;hides 'PHA' | 14 48 NOP $48,X ;hides 'PHA' | ||
E8 | E8 ... INX × 2 | ||
D0 F9 BNE *-5</pre>||Clobbers X, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack | D0 F9 BNE *-5</pre>||Clobbers X, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack | ||
|- | |- | ||
|<pre>A0 E0 LDY #224 ;hides 'CPX #imm' | |<pre>A0 E0 LDY #224 ;hides 'CPX #imm' | ||
14 48 NOP $48,X ;hides 'PHA' | 14 48 NOP $48,X ;hides 'PHA' | ||
C8 | C8 ... INY × 2 | ||
D0 F9 BNE *-5</pre>||Clobbers Y, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack | D0 F9 BNE *-5</pre>||Clobbers Y, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack | ||
|- | |- | ||
!colspan="2"|9 bytes | !colspan="2"|9 bytes | ||
|- | |- | ||
|<pre> | |<pre>98 TYA | ||
48 PHA | 48 PHA | ||
A0 24 LDY #36 | |||
88 DEY | |||
D0 FB BNE *-3 | D0 FB BNE *-3 | ||
68 PLA | 68 PLA | ||
A8 TAY</pre>||Clobbers A, and Z&N; and writes in stack | |||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
A2 17 LDX #23 | A2 17 LDX #23 | ||
C5 00 CMP $00 | |||
CA DEX | CA DEX | ||
D0 F9 BNE *-5 | D0 F9 BNE *-5 | ||
Line 34,941: | Line 31,856: | ||
D0 F9 BNE *-5 | D0 F9 BNE *-5 | ||
28 PLP</pre>||Clobbers Y; and writes in stack | 28 PLP</pre>||Clobbers Y; and writes in stack | ||
|- | |||
|<pre>A0 E0 LDY #224 ;hides 'CPX #imm' | |||
2C 24 EA BIT $EA24 ;hides 'BIT zp' | |||
C8 ... INY × 2 | |||
D0 F8 BNE *-6</pre>||Clobbers Y, Z&N, C, and V | |||
|- | |- | ||
|<pre>A2 E0 LDX #224 ;hides 'CPX #imm' | |<pre>A2 E0 LDX #224 ;hides 'CPX #imm' | ||
2C 24 EA BIT $EA24 ;hides 'BIT zp' | 2C 24 EA BIT $EA24 ;hides 'BIT zp' | ||
E8 | E8 ... INX × 2 | ||
D0 F8 BNE *-6</pre>||Clobbers X, Z&N, C, and V | D0 F8 BNE *-6</pre>||Clobbers X, Z&N, C, and V | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 34,967: | Line 31,880: | ||
B0 FA BCS *-4 | B0 FA BCS *-4 | ||
68 PLA</pre>||Clobbers Z&N, C, and V; requires @zptemp; and writes in stack | 68 PLA</pre>||Clobbers Z&N, C, and V; requires @zptemp; and writes in stack | ||
|- | |||
|<pre>A2 0D LDX #13 ;hides 'ORA abs' | |||
AD 00 68 LDA $6800 ;hides 'PLA' | |||
EA NOP | |||
CA DEX | |||
D0 F8 BNE *-6</pre>||Clobbers A, X, S, and Z&N | |||
|- | |- | ||
|<pre>A0 0D LDY #13 ;hides 'ORA abs' | |<pre>A0 0D LDY #13 ;hides 'ORA abs' | ||
Line 34,973: | Line 31,892: | ||
88 DEY | 88 DEY | ||
D0 F8 BNE *-6</pre>||Clobbers A, Y, S, and Z&N | D0 F8 BNE *-6</pre>||Clobbers A, Y, S, and Z&N | ||
|- | |- | ||
|<pre>08 PHP | |<pre>08 PHP | ||
Line 34,987: | Line 31,900: | ||
28 PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack | 28 PLP</pre>||Clobbers A; requires support for unofficial opcodes; and writes in stack | ||
|- | |- | ||
|<pre> | |<pre>A2 0C LDX #12 ;hides 'NOP abs' | ||
A5 00 LDA $0 | A5 00 LDA $0 | ||
68 PLA | 68 PLA | ||
48 PHA | 48 PHA | ||
CA DEX | |||
D0 F8 BNE *-6</pre>||Clobbers A, | D0 F8 BNE *-6</pre>||Clobbers A, X, and Z&N; and requires support for unofficial opcodes | ||
|- | |- | ||
|<pre> | |<pre>A0 0C LDY #12 ;hides 'NOP abs' | ||
A5 00 LDA $0 | A5 00 LDA $0 | ||
68 PLA | 68 PLA | ||
48 PHA | 48 PHA | ||
88 DEY | |||
D0 F8 BNE *-6</pre>||Clobbers A, | D0 F8 BNE *-6</pre>||Clobbers A, Y, and Z&N; and requires support for unofficial opcodes | ||
|- | |- | ||
|<pre>48 PHA | |<pre>48 PHA | ||
Line 35,054: | Line 31,967: | ||
68 PLA</pre>||Clobbers Z&N, C, and V; and writes in stack | 68 PLA</pre>||Clobbers Z&N, C, and V; and writes in stack | ||
|- | |- | ||
|<pre> | |<pre>A0 0C LDY #12 ;hides 'NOP abs' | ||
44 00 NOP $0 | 44 00 NOP $0 | ||
EA NOP | EA NOP | ||
E6 xx INC @zptemp | E6 xx INC @zptemp | ||
88 DEY | |||
D0 F7 BNE *-7</pre>||Clobbers | D0 F7 BNE *-7</pre>||Clobbers Y, and Z&N; and requires @zptemp, and support for unofficial opcodes | ||
|- | |- | ||
|<pre> | |<pre>A2 0C LDX #12 ;hides 'NOP abs' | ||
44 00 NOP $0 | 44 00 NOP $0 | ||
EA NOP | EA NOP | ||
E6 xx INC @zptemp | E6 xx INC @zptemp | ||
CA DEX | |||
D0 F7 BNE *-7</pre>||Clobbers | D0 F7 BNE *-7</pre>||Clobbers X, and Z&N; and requires @zptemp, and support for unofficial opcodes | ||
|- | |- | ||
!colspan="2"|11 bytes | !colspan="2"|11 bytes | ||
Line 35,081: | Line 31,994: | ||
|<pre>A0 0C LDY #12 ;hides 'NOP abs' | |<pre>A0 0C LDY #12 ;hides 'NOP abs' | ||
44 00 NOP $0 | 44 00 NOP $0 | ||
EA | EA ... NOP × 2 | ||
04 00 NOP $00 | 04 00 NOP $00 | ||
88 DEY | 88 DEY | ||
Line 35,089: | Line 32,001: | ||
|<pre>A2 0C LDX #12 ;hides 'NOP abs' | |<pre>A2 0C LDX #12 ;hides 'NOP abs' | ||
44 00 NOP $0 | 44 00 NOP $0 | ||
EA | EA ... NOP × 2 | ||
04 00 NOP $00 | 04 00 NOP $00 | ||
CA DEX | CA DEX | ||
Line 35,099: | Line 32,010: | ||
|<pre>A2 EC LDX #236 ;hides 'CPX abs' | |<pre>A2 EC LDX #236 ;hides 'CPX abs' | ||
E6 xx INC @zptemp | E6 xx INC @zptemp | ||
EA | EA ... NOP × 4 | ||
E8 ... INX × 2 | |||
E8 | |||
D0 F5 BNE *-9</pre>||Clobbers X, Z&N, and C; and requires @zptemp | D0 F5 BNE *-9</pre>||Clobbers X, Z&N, and C; and requires @zptemp | ||
|- | |- | ||
|<pre>A0 EC LDY #236 ;hides 'CPX abs' | |<pre>A0 EC LDY #236 ;hides 'CPX abs' | ||
E6 xx INC @zptemp | E6 xx INC @zptemp | ||
EA | EA ... NOP × 4 | ||
C8 ... INY × 2 | |||
C8 | |||
D0 F5 BNE *-9</pre>||Clobbers Y, Z&N, and C; and requires @zptemp | D0 F5 BNE *-9</pre>||Clobbers Y, Z&N, and C; and requires @zptemp | ||
|- | |- | ||
!colspan="2"|14 bytes | !colspan="2"|14 bytes | ||
|- | |||
|<pre>A2 05 LDX #5 ;hides 'ORA zp' | |||
E8 INX ;first loop only | |||
36 00 ROL $00,X \ × 2 | |||
76 00 ROR $00,X / | |||
CA DEX | |||
D0 F3 BNE *-11</pre>||Clobbers A, X, and Z&N | |||
|- | |- | ||
|<pre>A0 05 LDY #5 ;hides 'ORA zp' | |<pre>A0 05 LDY #5 ;hides 'ORA zp' | ||
C8 INY ;first loop only | C8 INY ;first loop only | ||
36 00 ROL $00,X | 36 00 ROL $00,X \ × 2 | ||
76 00 ROR $00,X | 76 00 ROR $00,X / | ||
88 DEY | 88 DEY | ||
D0 F3 BNE *-11</pre>||Clobbers A, Y, and Z&N | D0 F3 BNE *-11</pre>||Clobbers A, Y, and Z&N | ||
|- | |- | ||
|<pre> | !colspan="2"|24 bytes | ||
|- | |||
|<pre>18 ... CLC × 4 | |||
A9 0A LDA #$0A ;hides 'ASL A' | |||
EA ... NOP × 15 | |||
18 CLC | |||
10 ED BPL *-17</pre>||Clobbers A, Z&N, and C | |||
|- | |- | ||
|} | |} |
Revision as of 10:41, 15 March 2016
Delay code
Shortest possible CPU code that creates N cycles of delay, depending on constraints.
All code samples are written for CA65.
Assumptions:
- No page wrap occurs during any branch instruction. If a page wrap occurs, it adds +1 cycle for each loop, completely thwarting the accurate delay.
- No interrupt / NMI occurs during the delay code. This is important for accurate delay, but it is also required for correctness in those code samples where a PLA-PHA sequence is used.
It is possible to verify on compile time that no page wrap occurs, by replacing all branches with these macros:
.macro branch_check opc, dest opc dest .assert >* = >dest, warning, "branch_check: failed, crosses page" .endmacro .macro Jcc dest branch_check bcc, dest .endmacro .macro Jcs dest branch_check bcs, dest .endmacro .macro Jeq dest branch_check beq, dest .endmacro .macro Jne dest branch_check bne, dest .endmacro .macro Jmi dest branch_check bmi, dest .endmacro .macro Jpl dest branch_check bpl, dest .endmacro .macro Jvc dest branch_check bvc, dest .endmacro .macro Jvs dest branch_check bvs, dest .endmacro
It is permissible for DMA to steal cycles during the loops. If you are expecting that to happen, you have to manually adjust the delay cycle count (and it is in fact possible to do so) in order to get the correct delay.
Explanations on the requirements:
- @zptemp means you have a zeropage address that you can write random data into.
- @rti means you have a dummy interrupt handler installed that does nothing but
RTI
. - @rts12 means you know a memory address that contains byte $60 (
RTS
). - @rts14 means you know a memory address that contains a harmless 2-cycle instruction that fits your constraints (such as
CLC
,LDA #0
, orNOP
), followed byRTS
. - @rts15 means you know a memory address that contains a
JMP
that jumps to another location that containsRTS
. Alternatively, it means you know a memory address that contains a harmless 3-cycle instruction that fits your constraints (such asLDA $00
), followed byRTS
. - delay_a_25_clocks, delay_256a_16_clocks, delay_256a_x_33_clocks, delay_256a_x_31_clocks, and delay_256x_a_30_clocks are defined at Delay code.
{{#css:
.testtable td{padding:2px} .testtable td pre{padding:2px;margin:2px}
}}
2 cycles
1 bytes | |
---|---|
EA NOP |
No requirements |
- All instructions cost at least 2 cycles. There is no way to do 1 cycle of delay (though −1 cycles may sometimes appear in branch cost calculations).
3 cycles
1 bytes | |
---|---|
48 PHA |
Clobbers S; and writes in stack |
2 bytes | |
A5 00 LDA $00 |
Clobbers A, and Z&N |
A4 00 LDY $00 |
Clobbers Y, and Z&N |
A6 00 LDX $00 |
Clobbers X, and Z&N |
C5 00 CMP $00 |
Clobbers Z&N, and C |
24 00 BIT $00 |
Clobbers Z&N, and V |
85 xx STA @zptemp |
Requires @zptemp |
04 00 NOP $00 |
Requires support for unofficial opcodes |
3 bytes | |
4C xx xx JMP *+3 |
Not relocatable code |
- Not relocatable means that the target address is hardcoded into the code. In ROM hacking, it sometimes makes sense to move code blobs around, and a hardcoded address makes it difficult to relocate the code. This restriction does not apply to branches, which use relative addressing. It is also assumed to not apply to
JSR
instructions, as chances are the JSR target is outside the code being relocated.
4 cycles
1 bytes | |
---|---|
68 PLA |
Clobbers A, S, and Z&N |
2 bytes | |
EA ... NOP × 2 |
No requirements |
- zp-indexed modes such as
LDA $00,X
also do 4 cycles, but having side effects, these two-byte instructions are inferior to a simple 2 ×NOP
. - There is also an unofficial opcode
NOP $00,X
(34 00), but there is no reason to use this instruction when the official equivalent has the same performance.
5 cycles
2 bytes | |
---|---|
E6 xx INC @zptemp |
Clobbers Z&N; and requires @zptemp |
EA NOP 48 PHA |
Clobbers S; and writes in stack |
3 bytes | |
EA NOP A5 00 LDA $00 |
Clobbers A, and Z&N |
EA NOP A6 00 LDX $00 |
Clobbers X, and Z&N |
EA NOP A4 00 LDY $00 |
Clobbers Y, and Z&N |
18 CLC 90 00 BCC *+2 |
Clobbers C |
B8 CLV 50 00 BVC *+2 |
Clobbers V |
EA NOP 85 xx STA @zptemp |
Requires @zptemp |
EA NOP 04 00 NOP $00 |
Requires support for unofficial opcodes |
4 bytes | |
EA NOP 4C xx xx JMP *+3 |
Not relocatable code |
- abs-indexed modes such as
LDA $1234,X
cause 4 or 5 cycles of delay, depending whether a page wrap occurred. Because you need extra setup code to make sure that a wrap does occur, you do not see this mode in these samples, outside situations where circumstances permit.
6 cycles
2 bytes | |
---|---|
48 ... PHA × 2 |
Clobbers S; and writes in stack |
EA NOP 68 PLA |
Clobbers A, S, and Z&N |
3 bytes | |
EA ... NOP × 3 |
No requirements |
- zp-indexed RMW instructions such as
INC @zptemp,X
do 6 cycles, but as the memory address modified depends on the value of X, and in this document it is a bit difficult to formalize the rules under which you can write to such addresses, thus the instruction is not used. - ix and iy instructions such as
LDA ($00,X)
orLDA ($00),Y
do 6 cycles, but there may be side effects for reading from random memory addresses (such as $2002), and therefore we do not do that. With ind-y there is also the trouble of predicting whether a wrap occurs or not. - Absolute RMW instructions like
INC $2000
do 6 cycles, but weighing 3 bytes with side-effects it would be inferior to 3 ×NOP
.
7 cycles
2 bytes | |
---|---|
08 PHP 28 PLP |
Writes in stack |
68 PLA 48 PHA |
Clobbers A, and Z&N |
3 bytes | |
EA NOP E6 xx INC @zptemp |
Clobbers Z&N; and requires @zptemp |
4 bytes | |
EA ... NOP × 2 A6 00 LDX $00 |
Clobbers X, and Z&N |
EA ... NOP × 2 A4 00 LDY $00 |
Clobbers Y, and Z&N |
18 ... CLC × 2 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 2 50 00 BVC *+2 |
Clobbers V |
EA ... NOP × 2 85 xx STA @zptemp |
Requires @zptemp |
EA ... NOP × 2 04 00 NOP $00 |
Requires support for unofficial opcodes |
5 bytes | |
EA ... NOP × 2 4C xx xx JMP *+3 |
Not relocatable code |
PHP-PLP
is very efficient for 7 cycles of delay, but it does modify stack contents. S register remains unchanged though.PLA-PHA
does not overwrite any bytes in stack. It just writes back the same byte. But it does clobber A and Z+N.- abs-indexed RMW instructions such as
INC abs,X
do 7 cycles, but it is difficult to formalize the rules under which one could write to such random addresses.
8 cycles
2 bytes | |
---|---|
68 ... PLA × 2 |
Clobbers A, S, and Z&N |
3 bytes | |
BA TSX 68 PLA 9A TXS |
Clobbers A, X, and Z&N |
EA NOP 48 ... PHA × 2 |
Clobbers S; and writes in stack |
4 bytes | |
EA ... NOP × 4 |
No requirements |
- ix and iy RMW instructions such as
SLO ($00,X)
orSLO ($00),Y
would do 8 cycles for 2 bytes of code, but it is dangerous to read random memory addresses, let alone write to them, so we do not do that. These instructions are also unofficial.
9 cycles
3 bytes | |
---|---|
EA NOP 08 PHP 28 PLP |
Writes in stack |
EA NOP 68 PLA 48 PHA |
Clobbers A, and Z&N |
4 bytes | |
A0 AC LDY #$AC ;hides 'LDY $FDD0' D0 FD BNE *-1 |
Clobbers Y, and Z&N |
A2 AE LDX #$AE ;hides 'LDX $FDD0' D0 FD BNE *-1 |
Clobbers X, and Z&N |
EA ... NOP × 2 E6 xx INC @zptemp |
Clobbers Z&N; and requires @zptemp |
5 bytes | |
18 ... CLC × 3 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 3 50 00 BVC *+2 |
Clobbers V |
EA ... NOP × 3 85 xx STA @zptemp |
Requires @zptemp |
EA ... NOP × 3 04 00 NOP $00 |
Requires support for unofficial opcodes |
6 bytes | |
EA ... NOP × 3 4C xx xx JMP *+3 |
Not relocatable code |
- Jumping into the middle of another instruction is a very efficient way of reducing code size. Note that all code samples using branches on this page require that no page wrap occurs.
10 cycles
3 bytes | |
---|---|
48 PHA 08 PHP 28 PLP |
Clobbers S; and writes in stack |
EA NOP 68 ... PLA × 2 |
Clobbers A, S, and Z&N |
4 bytes | |
08 PHP 24 00 BIT $00 28 PLP |
Writes in stack |
26 00 ROL $00 66 00 ROR $00 |
Clobbers Z&N |
5 bytes | |
EA ... NOP × 5 |
No requirements |
- Note that the
ROL-ROR
sequence preserves the original value of the memory address. Carry is also preserved.
11 cycles
3 bytes | |
---|---|
68 ... PLA × 2 48 PHA |
Clobbers A, S, and Z&N |
4 bytes | |
EA ... NOP × 2 08 PHP 28 PLP |
Writes in stack |
EA ... NOP × 2 68 PLA 48 PHA |
Clobbers A, and Z&N |
5 bytes | |
A2 02 LDX #2 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A0 02 LDY #2 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
EA ... NOP × 3 E6 xx INC @zptemp |
Clobbers Z&N; and requires @zptemp |
6 bytes | |
18 ... CLC × 4 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 4 50 00 BVC *+2 |
Clobbers V |
EA ... NOP × 4 85 xx STA @zptemp |
Requires @zptemp |
EA ... NOP × 4 04 00 NOP $00 |
Requires support for unofficial opcodes |
7 bytes | |
EA ... NOP × 4 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 × 3 |
Clobbers A, S, and Z&N |
4 bytes | |
36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers Z&N |
08 PHP E6 xx INC @zptemp 28 PLP |
Requires @zptemp; and writes in stack |
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 × 6 |
No requirements |
JSR-RTS
causes 12 cycles of delay. But it does write a function return address in the stack, which may be unwanted in some applications. S is not modified.- Again,
ROL-ROR
does not have side effects (as long as an interrupt does not happen in the middle), except for Z+N.
13 cycles
2 bytes | |
---|---|
00 00 BRK 0 |
Requires dummy interrupt handler; and writes in stack |
4 bytes | |
48 ... PHA × 2 08 PHP 28 PLP |
Clobbers S; and writes in stack |
EA NOP 68 ... PLA × 2 48 PHA |
Clobbers A, S, and Z&N |
5 bytes | |
EA ... NOP × 3 08 PHP 28 PLP |
Writes in stack |
EA ... NOP × 3 68 PLA 48 PHA |
Clobbers A, and Z&N |
6 bytes | |
A4 00 LDY $00 26 00 ROL $00 66 00 ROR $00 |
Clobbers Y, and Z&N |
A6 00 LDX $00 26 00 ROL $00 66 00 ROR $00 |
Clobbers X, and Z&N |
C5 00 CMP $00 26 00 ROL $00 66 00 ROR $00 |
Clobbers Z&N, and C |
24 00 BIT $00 26 00 ROL $00 66 00 ROR $00 |
Clobbers Z&N, and V |
85 xx STA @zptemp 26 00 ROL $00 66 00 ROR $00 |
Clobbers Z&N; and requires @zptemp |
04 00 NOP $00 26 00 ROL $00 66 00 ROR $00 |
Clobbers Z&N; and requires support for unofficial opcodes |
7 bytes | |
4C xx xx JMP *+3 26 00 ROL $00 66 00 ROR $00 |
Clobbers Z&N; and not relocatable code |
18 ... CLC × 5 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 5 50 00 BVC *+2 |
Clobbers V |
EA ... NOP × 5 85 xx STA @zptemp |
Requires @zptemp |
EA ... NOP × 5 04 00 NOP $00 |
Requires support for unofficial opcodes |
8 bytes | |
EA ... NOP × 5 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 \ × 2 28 PLP / |
Writes in stack |
68 PLA \ × 2 48 PHA / |
Clobbers A, and Z&N |
5 bytes | |
EA NOP 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers Z&N |
7 bytes | |
EA ... NOP × 7 |
No requirements |
15 cycles
3 bytes | |
---|---|
20 xx xx JSR @rts15 |
Requires @rts15; and writes in stack |
EA NOP 00 00 BRK 0 |
Requires dummy interrupt handler; and writes in stack |
4 bytes | |
48 PHA 20 xx xx JSR @rts12 |
Clobbers S; requires @rts12; and writes in stack |
68 ... PLA × 3 48 PHA |
Clobbers A, S, and Z&N |
5 bytes | |
A5 00 LDA $00 20 xx xx JSR @rts12 |
Clobbers A, and Z&N; requires @rts12; and writes in stack |
48 PHA BA TSX 68 PLA 9A TXS 68 PLA |
Clobbers X, and Z&N; and writes in stack |
A4 00 LDY $00 20 xx xx JSR @rts12 |
Clobbers Y, and Z&N; requires @rts12; and writes in stack |
08 PHP BA TSX 68 PLA 9A TXS 28 PLP |
Clobbers A, and X; and writes in stack |
68 PLA 48 PHA BA TSX 68 PLA 9A TXS |
Clobbers A, X, and Z&N |
C5 00 CMP $00 20 xx xx JSR @rts12 |
Clobbers Z&N, and C; requires @rts12; and writes in stack |
24 00 BIT $00 20 xx xx JSR @rts12 |
Clobbers Z&N, and V; requires @rts12; and writes in stack |
85 xx STA @zptemp 20 xx xx JSR @rts12 |
Requires @zptemp, and @rts12; and writes in stack |
EA NOP 48 ... PHA × 2 08 PHP 28 PLP |
Clobbers S; and writes in stack |
04 00 NOP $00 20 xx xx JSR @rts12 |
Requires @rts12, and support for unofficial opcodes; and writes in stack |
6 bytes | |
EA ... NOP × 4 08 PHP 28 PLP |
Writes in stack |
A5 00 LDA $00 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers A, and Z&N |
A6 00 LDX $00 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers X, and Z&N |
A4 00 LDY $00 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers Y, and Z&N |
C5 00 CMP $00 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers Z&N, and C |
24 00 BIT $00 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers Z&N, and V |
E6 xx INC @zptemp 26 00 ROL $00 66 00 ROR $00 |
Clobbers Z&N; and requires @zptemp |
04 00 NOP $00 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers Z&N; and requires support for unofficial opcodes |
7 bytes | |
4C xx xx JMP *+3 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers Z&N; and not relocatable code |
8 bytes | |
18 ... CLC × 6 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 6 50 00 BVC *+2 |
Clobbers V |
EA ... NOP × 6 85 xx STA @zptemp |
Requires @zptemp |
EA ... NOP × 6 04 00 NOP $00 |
Requires support for unofficial opcodes |
9 bytes | |
EA ... NOP × 6 4C xx xx JMP *+3 |
Not relocatable code |
16 cycles
3 bytes | |
---|---|
48 PHA 00 00 BRK 0 |
Clobbers S; requires dummy interrupt handler; and writes in stack |
4 bytes | |
EA NOP 20 xx xx JSR @rts14 |
Requires @rts14; and writes in stack |
A5 00 LDA $00 00 00 BRK 0 |
Clobbers A, and Z&N; requires dummy interrupt handler; and writes in stack |
A4 00 LDY $00 00 00 BRK 0 |
Clobbers Y, and Z&N; requires dummy interrupt handler; and writes in stack |
A6 00 LDX $00 00 00 BRK 0 |
Clobbers X, and Z&N; requires dummy interrupt handler; and writes in stack |
C5 00 CMP $00 00 00 BRK 0 |
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack |
24 00 BIT $00 00 00 BRK 0 |
Clobbers Z&N, and V; requires dummy interrupt handler; and writes in stack |
85 xx STA @zptemp 00 00 BRK 0 |
Requires @zptemp, and dummy interrupt handler; and writes in stack |
68 ... PLA × 4 |
Clobbers A, S, and Z&N |
04 00 NOP $00 00 00 BRK 0 |
Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack |
5 bytes | |
EA NOP 08 PHP \ × 2 28 PLP / |
Writes in stack |
EA NOP 68 PLA \ × 2 48 PHA / |
Clobbers A, and Z&N |
A2 03 LDX #3 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A0 03 LDY #3 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
6 bytes | |
EA ... NOP × 2 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers Z&N |
8 bytes | |
EA ... NOP × 8 |
No requirements |
17 cycles
3 bytes | |
---|---|
68 PLA 00 00 BRK 0 |
Clobbers A, S, and Z&N; requires dummy interrupt handler; and writes in stack |
4 bytes | |
EA NOP 20 xx xx JSR @rts15 |
Requires @rts15; and writes in stack |
EA ... NOP × 2 00 00 BRK 0 |
Requires dummy interrupt handler; and writes in stack |
48 PHA 20 xx xx JSR @rts14 |
Clobbers S; requires @rts14; and writes in stack |
5 bytes | |
A5 00 LDA $00 20 xx xx JSR @rts14 |
Clobbers A, and Z&N; requires @rts14; and writes in stack |
A6 00 LDX $00 20 xx xx JSR @rts14 |
Clobbers X, and Z&N; requires @rts14; and writes in stack |
A4 00 LDY $00 20 xx xx JSR @rts14 |
Clobbers Y, and Z&N; requires @rts14; and writes in stack |
C5 00 CMP $00 20 xx xx JSR @rts14 |
Clobbers Z&N, and C; requires @rts14; and writes in stack |
24 00 BIT $00 20 xx xx JSR @rts14 |
Clobbers Z&N, and V; requires @rts14; and writes in stack |
E6 xx INC @zptemp 20 xx xx JSR @rts12 |
Clobbers Z&N; requires @zptemp, and @rts12; and writes in stack |
85 xx STA @zptemp 20 xx xx JSR @rts14 |
Requires @zptemp, and @rts14; and writes in stack |
48 PHA 08 PHP \ × 2 28 PLP / |
Clobbers S; and writes in stack |
EA NOP 68 ... PLA × 3 48 PHA |
Clobbers A, S, and Z&N |
04 00 NOP $00 20 xx xx JSR @rts14 |
Requires @rts14, and support for unofficial opcodes; and writes in stack |
6 bytes | |
08 PHP 26 00 ROL $00 66 00 ROR $00 28 PLP |
Writes in stack |
68 PLA 48 PHA 26 00 ROL $00 66 00 ROR $00 |
Clobbers A, and Z&N |
E6 xx INC @zptemp 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers Z&N; and requires @zptemp |
7 bytes | |
EA NOP A6 00 LDX $00 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers X, and Z&N |
EA NOP A4 00 LDY $00 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers Y, and Z&N |
EA NOP C5 00 CMP $00 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers Z&N, and C |
EA NOP 24 00 BIT $00 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers Z&N, and V |
EA NOP 04 00 NOP $00 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers Z&N; and requires support for unofficial opcodes |
8 bytes | |
EA NOP 4C xx xx JMP *+3 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers Z&N; and not relocatable code |
9 bytes | |
18 ... CLC × 7 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 7 50 00 BVC *+2 |
Clobbers V |
EA ... NOP × 7 85 xx STA @zptemp |
Requires @zptemp |
EA ... NOP × 7 04 00 NOP $00 |
Requires support for unofficial opcodes |
10 bytes | |
EA ... NOP × 7 4C xx xx JMP *+3 |
Not relocatable code |
18 cycles
4 bytes | |
---|---|
E6 xx INC @zptemp 00 00 BRK 0 |
Clobbers Z&N; requires @zptemp, and dummy interrupt handler; and writes in stack |
48 PHA 20 xx xx JSR @rts15 |
Clobbers S; requires @rts15; and writes in stack |
68 PLA 20 xx xx JSR @rts14 |
Clobbers A, S, and Z&N; requires @rts14; and writes in stack |
EA NOP 48 PHA 00 00 BRK 0 |
Clobbers S; requires dummy interrupt handler; and writes in stack |
5 bytes | |
A5 00 LDA $00 20 xx xx JSR @rts15 |
Clobbers A, and Z&N; requires @rts15; and writes in stack |
A4 00 LDY $00 20 xx xx JSR @rts15 |
Clobbers Y, and Z&N; requires @rts15; and writes in stack |
A6 00 LDX $00 20 xx xx JSR @rts15 |
Clobbers X, and Z&N; requires @rts15; and writes in stack |
C5 00 CMP $00 20 xx xx JSR @rts15 |
Clobbers Z&N, and C; requires @rts15; and writes in stack |
24 00 BIT $00 20 xx xx JSR @rts15 |
Clobbers Z&N, and V; requires @rts15; and writes in stack |
EA ... NOP × 2 20 xx xx JSR @rts14 |
Requires @rts14; and writes in stack |
85 xx STA @zptemp 20 xx xx JSR @rts15 |
Requires @zptemp, and @rts15; and writes in stack |
EA NOP A5 00 LDA $00 00 00 BRK 0 |
Clobbers A, and Z&N; requires dummy interrupt handler; and writes in stack |
EA NOP A4 00 LDY $00 00 00 BRK 0 |
Clobbers Y, and Z&N; requires dummy interrupt handler; and writes in stack |
EA NOP A6 00 LDX $00 00 00 BRK 0 |
Clobbers X, and Z&N; requires dummy interrupt handler; and writes in stack |
18 CLC 90 00 BCC *+2 00 00 BRK 0 |
Clobbers C; requires dummy interrupt handler; and writes in stack |
B8 CLV 50 00 BVC *+2 00 00 BRK 0 |
Clobbers V; requires dummy interrupt handler; and writes in stack |
EA NOP 85 xx STA @zptemp 00 00 BRK 0 |
Requires @zptemp, and dummy interrupt handler; and writes in stack |
48 ... PHA × 2 20 xx xx JSR @rts12 |
Clobbers S; requires @rts12; and writes in stack |
EA NOP 68 ... PLA × 4 |
Clobbers A, S, and Z&N |
04 00 NOP $00 20 xx xx JSR @rts15 |
Requires @rts15, and support for unofficial opcodes; and writes in stack |
EA NOP 04 00 NOP $00 00 00 BRK 0 |
Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack |
A9 LDA #0 20 xx xx JSR delay_256a_16_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks, and delay_256a_16_clocks |
6 bytes | |
EA ... NOP × 2 08 PHP \ × 2 28 PLP / |
Writes in stack |
EA ... NOP × 2 68 PLA \ × 2 48 PHA / |
Clobbers A, and Z&N |
EA NOP A0 03 LDY #3 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
EA NOP A2 03 LDX #3 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
7 bytes | |
EA ... NOP × 3 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers Z&N |
9 bytes | |
EA ... NOP × 9 |
No requirements |
19 cycles
4 bytes | |
---|---|
68 PLA 20 xx xx JSR @rts15 |
Clobbers A, S, and Z&N; requires @rts15; and writes in stack |
48 ... PHA × 2 00 00 BRK 0 |
Clobbers S; requires dummy interrupt handler; and writes in stack |
5 bytes | |
08 PHP 28 PLP 20 xx xx JSR @rts12 |
Requires @rts12; and writes in stack |
EA ... NOP × 2 20 xx xx JSR @rts15 |
Requires @rts15; and writes in stack |
EA ... NOP × 3 00 00 BRK 0 |
Requires dummy interrupt handler; and writes in stack |
E6 xx INC @zptemp 20 xx xx JSR @rts14 |
Clobbers Z&N; requires @zptemp, and @rts14; and writes in stack |
68 ... PLA × 4 48 PHA |
Clobbers A, S, and Z&N |
EA NOP 48 PHA 20 xx xx JSR @rts14 |
Clobbers S; requires @rts14; and writes in stack |
6 bytes | |
08 PHP 36 00 ROL $00,X 76 00 ROR $00,X 28 PLP |
Writes in stack |
68 PLA 48 PHA 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers A, and Z&N |
7 bytes | |
A4 00 LDY $00 A0 03 LDY #3 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A6 00 LDX $00 A2 03 LDX #3 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
EA NOP E6 xx INC @zptemp 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers Z&N; and requires @zptemp |
8 bytes | |
EA ... NOP × 2 C5 00 CMP $00 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers Z&N, and C |
EA ... NOP × 2 24 00 BIT $00 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers Z&N, and V |
EA ... NOP × 2 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 × 2 4C xx xx JMP *+3 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers Z&N; and not relocatable code |
10 bytes | |
18 ... CLC × 8 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 8 50 00 BVC *+2 |
Clobbers V |
EA ... NOP × 8 85 xx STA @zptemp |
Requires @zptemp |
EA ... NOP × 8 04 00 NOP $00 |
Requires support for unofficial opcodes |
11 bytes | |
EA ... NOP × 8 4C xx xx JMP *+3 |
Not relocatable code |
20 cycles
4 bytes | |
---|---|
08 PHP 28 PLP 00 00 BRK 0 |
Requires dummy interrupt handler; and writes in stack |
5 bytes | |
A9 2A LDA #$2A ;hides 'ROL A' 18 CLC 10 FC BPL *-2 |
Clobbers A, Z&N, and C |
E6 xx INC @zptemp 20 xx xx JSR @rts15 |
Clobbers Z&N; requires @zptemp, and @rts15; and writes in stack |
EA NOP 48 PHA 20 xx xx JSR @rts15 |
Clobbers S; requires @rts15; and writes in stack |
68 ... PLA × 5 |
Clobbers A, S, and Z&N |
48 ... PHA × 2 20 xx xx JSR @rts14 |
Clobbers S; requires @rts14; and writes in stack |
6 bytes | |
EA NOP A5 00 LDA $00 20 xx xx JSR @rts15 |
Clobbers A, and Z&N; requires @rts15; and writes in stack |
EA NOP A4 00 LDY $00 20 xx xx JSR @rts15 |
Clobbers Y, and Z&N; requires @rts15; and writes in stack |
EA NOP A6 00 LDX $00 20 xx xx JSR @rts15 |
Clobbers X, and Z&N; requires @rts15; and writes in stack |
BA TSX 68 ... PLA × 4 9A TXS |
Clobbers A, X, and Z&N |
18 CLC 90 00 BCC *+2 20 xx xx JSR @rts15 |
Clobbers C; requires @rts15; and writes in stack |
B8 CLV 50 00 BVC *+2 20 xx xx JSR @rts15 |
Clobbers V; requires @rts15; and writes in stack |
EA ... NOP × 3 20 xx xx JSR @rts14 |
Requires @rts14; and writes in stack |
EA NOP 85 xx STA @zptemp 20 xx xx JSR @rts15 |
Requires @zptemp, and @rts15; and writes in stack |
48 ... PHA × 2 08 PHP \ × 2 28 PLP / |
Clobbers S; and writes in stack |
EA NOP 04 00 NOP $00 20 xx xx JSR @rts15 |
Requires @rts15, and support for unofficial opcodes; and writes in stack |
7 bytes | |
EA ... NOP × 3 08 PHP \ × 2 28 PLP / |
Writes in stack |
EA ... NOP × 3 68 PLA \ × 2 48 PHA / |
Clobbers A, and Z&N |
EA ... NOP × 2 A0 03 LDY #3 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
EA ... NOP × 2 A2 03 LDX #3 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
8 bytes | |
26 00 ROL $00 \ × 2 66 00 ROR $00 / |
Clobbers Z&N |
10 bytes | |
EA ... NOP × 10 |
No requirements |
21 cycles
4 bytes | |
---|---|
68 ... PLA × 2 00 00 BRK 0 |
Clobbers A, S, and Z&N; requires dummy interrupt handler; and writes in stack |
5 bytes | |
A2 04 LDX #4 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A0 04 LDY #4 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
18 CLC A9 2A LDA #$2A ;hides 'ROL A' 90 FD BCC *-1 |
Clobbers A, Z&N, and C |
08 PHP 28 PLP 20 xx xx JSR @rts14 |
Requires @rts14; and writes in stack |
48 ... PHA × 2 20 xx xx JSR @rts15 |
Clobbers S; requires @rts15; and writes in stack |
EA NOP 48 ... PHA × 2 00 00 BRK 0 |
Clobbers S; requires dummy interrupt handler; and writes in stack |
6 bytes | |
08 PHP 48 PHA \ × 2 68 PLA / 28 PLP |
Writes in stack |
68 PLA \ × 3 48 PHA / |
Clobbers A, and Z&N |
8 bytes | |
EA ... NOP × 2 E6 xx INC @zptemp 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers Z&N; and requires @zptemp |
9 bytes | |
EA ... NOP × 3 C5 00 CMP $00 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers Z&N, and C |
EA ... NOP × 3 24 00 BIT $00 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers Z&N, and V |
EA ... NOP × 3 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 × 3 4C xx xx JMP *+3 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers Z&N; and not relocatable code |
11 bytes | |
18 ... CLC × 9 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 9 50 00 BVC *+2 |
Clobbers V |
EA ... NOP × 9 85 xx STA @zptemp |
Requires @zptemp |
EA ... NOP × 9 04 00 NOP $00 |
Requires support for unofficial opcodes |
12 bytes | |
EA ... NOP × 9 4C xx xx JMP *+3 |
Not relocatable code |
22 cycles
5 bytes | |
---|---|
08 PHP 28 PLP 20 xx xx JSR @rts15 |
Requires @rts15; and writes in stack |
EA NOP 08 PHP 28 PLP 00 00 BRK 0 |
Requires dummy interrupt handler; and writes in stack |
68 ... PLA × 2 20 xx xx JSR @rts14 |
Clobbers A, S, and Z&N; requires @rts14; and writes in stack |
6 bytes | |
A0 03 LDY #3 EA NOP 88 DEY D0 FA BNE *-4 |
Clobbers Y, and Z&N |
A2 03 LDX #3 EA NOP CA DEX D0 FA BNE *-4 |
Clobbers X, and Z&N |
18 CLC A9 2A LDA #$2A ;hides 'ROL A' 18 CLC 10 FC BPL *-2 |
Clobbers A, Z&N, and C |
48 PHA 08 PHP 28 PLP 20 xx xx JSR @rts12 |
Clobbers S; requires @rts12; and writes in stack |
EA NOP 68 ... PLA × 5 |
Clobbers A, S, and Z&N |
EA NOP 48 ... PHA × 2 20 xx xx JSR @rts14 |
Clobbers S; requires @rts14; and writes in stack |
7 bytes | |
08 PHP 24 00 BIT $00 28 PLP 20 xx xx JSR @rts12 |
Requires @rts12; and writes in stack |
08 PHP 48 PHA BA TSX 68 PLA 9A TXS 68 PLA 28 PLP |
Clobbers X; and writes in stack |
EA ... NOP × 4 20 xx xx JSR @rts14 |
Requires @rts14; and writes in stack |
48 PHA 08 PHP 36 00 ROL $00,X 76 00 ROR $00,X 28 PLP |
Clobbers S; and writes in stack |
8 bytes | |
08 PHP 24 00 BIT $00 36 00 ROL $00,X 76 00 ROR $00,X 28 PLP |
Writes in stack |
26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers Z&N |
11 bytes | |
EA ... NOP × 11 |
No requirements |
23 cycles
5 bytes | |
---|---|
68 ... PLA × 2 20 xx xx JSR @rts15 |
Clobbers A, S, and Z&N; requires @rts15; and writes in stack |
A9 2A LDA #$2A ;hides 'ROL A' 48 PHA 10 FC BPL *-2 |
Clobbers A, S, Z&N, and C; and writes in stack |
48 PHA 08 PHP 28 PLP 00 00 BRK 0 |
Clobbers S; requires dummy interrupt handler; and writes in stack |
6 bytes | |
EA NOP A0 04 LDY #4 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
EA NOP A2 04 LDX #4 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
18 ... CLC × 2 A9 2A LDA #$2A ;hides 'ROL A' 90 FD BCC *-1 |
Clobbers A, Z&N, and C |
EA NOP 08 PHP 28 PLP 20 xx xx JSR @rts14 |
Requires @rts14; and writes in stack |
08 PHP 24 00 BIT $00 28 PLP 00 00 BRK 0 |
Requires dummy interrupt handler; and writes in stack |
EA NOP 48 ... PHA × 2 20 xx xx JSR @rts15 |
Clobbers S; requires @rts15; and writes in stack |
68 ... PLA × 5 48 PHA |
Clobbers A, S, and Z&N |
7 bytes | |
EA NOP 08 PHP 48 PHA \ × 2 68 PLA / 28 PLP |
Writes in stack |
EA NOP 68 PLA \ × 3 48 PHA / |
Clobbers A, and Z&N |
9 bytes | |
EA ... NOP × 3 E6 xx INC @zptemp 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers Z&N; and requires @zptemp |
10 bytes | |
C5 00 CMP $00 26 00 ROL $00 \ × 2 66 00 ROR $00 / |
Clobbers Z&N, and C |
24 00 BIT $00 26 00 ROL $00 \ × 2 66 00 ROR $00 / |
Clobbers Z&N, and V |
04 00 NOP $00 26 00 ROL $00 \ × 2 66 00 ROR $00 / |
Clobbers Z&N; and requires support for unofficial opcodes |
11 bytes | |
4C xx xx JMP *+3 26 00 ROL $00 \ × 2 66 00 ROR $00 / |
Clobbers Z&N; and not relocatable code |
12 bytes | |
18 ... CLC × 10 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 10 50 00 BVC *+2 |
Clobbers V |
EA ... NOP × 10 85 xx STA @zptemp |
Requires @zptemp |
EA ... NOP × 10 04 00 NOP $00 |
Requires support for unofficial opcodes |
13 bytes | |
EA ... NOP × 10 4C xx xx JMP *+3 |
Not relocatable code |
24 cycles
4 bytes | |
---|---|
A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 |
Clobbers A, Z&N, and C |
5 bytes | |
48 PHA 68 ... PLA × 2 00 00 BRK 0 |
Clobbers A, S, and Z&N; requires dummy interrupt handler; and writes in stack |
6 bytes | |
20 xx xx JSR @rts12× 2 |
Requires @rts12; and writes in stack |
EA NOP 08 PHP 28 PLP 20 xx xx JSR @rts15 |
Requires @rts15; and writes in stack |
EA ... NOP × 2 08 PHP 28 PLP 00 00 BRK 0 |
Requires dummy interrupt handler; and writes in stack |
68 ... PLA × 6 |
Clobbers A, S, and Z&N |
48 PHA A0 04 LDY #4 88 DEY D0 FB BNE *-3 |
Clobbers Y, S, and Z&N; and writes in stack |
48 PHA A2 04 LDX #4 CA DEX D0 FB BNE *-3 |
Clobbers X, S, and Z&N; and writes in stack |
48 PHA 08 PHP 28 PLP 20 xx xx JSR @rts14 |
Clobbers S; requires @rts14; and writes in stack |
7 bytes | |
A6 00 LDX $00 A2 04 LDX #4 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A4 00 LDY $00 A0 04 LDY #4 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
08 PHP 24 00 BIT $00 28 PLP 20 xx xx JSR @rts14 |
Requires @rts14; and writes in stack |
48 PHA 08 PHP 48 PHA \ × 2 68 PLA / 28 PLP |
Clobbers S; and writes in stack |
8 bytes | |
08 PHP 28 PLP 08 PHP 26 00 ROL $00 66 00 ROR $00 28 PLP |
Writes in stack |
36 00 ROL $00,X \ × 2 76 00 ROR $00,X / |
Clobbers Z&N |
12 bytes | |
EA ... NOP × 12 |
No requirements |
25 cycles
5 bytes | |
---|---|
20 xx xx JSR @rts12 00 00 BRK 0 |
Requires dummy interrupt handler, and @rts12; and writes in stack |
68 ... PLA × 3 00 00 BRK 0 |
Clobbers A, S, and Z&N; requires dummy interrupt handler; and writes in stack |
6 bytes | |
36 00 ROL $00,X 76 00 ROR $00,X 00 00 BRK 0 |
Clobbers Z&N; requires dummy interrupt handler; and writes in stack |
08 PHP E6 xx INC @zptemp 28 PLP 00 00 BRK 0 |
Requires @zptemp, and dummy interrupt handler; and writes in stack |
48 PHA 08 PHP 28 PLP 20 xx xx JSR @rts15 |
Clobbers S; requires @rts15; and writes in stack |
A2 03 LDX #3 48 PHA CA DEX D0 FA BNE *-4 |
Clobbers X, S, and Z&N; and writes in stack |
A0 03 LDY #3 48 PHA 88 DEY D0 FA BNE *-4 |
Clobbers Y, S, and Z&N; and writes in stack |
68 PLA A2 04 LDX #4 CA DEX D0 FB BNE *-3 |
Clobbers A, X, S, and Z&N |
68 PLA A0 04 LDY #4 88 DEY D0 FB BNE *-3 |
Clobbers A, Y, S, and Z&N |
68 PLA 18 CLC A9 2A LDA #$2A ;hides 'ROL A' 90 FD BCC *-1 |
Clobbers A, S, Z&N, and C |
48 PHA 68 ... PLA × 2 20 xx xx JSR @rts14 |
Clobbers A, S, and Z&N; requires @rts14; and writes in stack |
EA NOP 48 PHA 08 PHP 28 PLP 00 00 BRK 0 |
Clobbers S; requires dummy interrupt handler; and writes in stack |
7 bytes | |
08 PHP 24 00 BIT $00 28 PLP 20 xx xx JSR @rts15 |
Requires @rts15; and writes in stack |
A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only 08 PHP 28 PLP 10 FA BPL *-4 |
Clobbers A, and Z&N; and writes in stack |
EA ... NOP × 2 A0 04 LDY #4 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
EA ... NOP × 2 A2 04 LDX #4 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
18 ... CLC × 3 A9 2A LDA #$2A ;hides 'ROL A' 90 FD BCC *-1 |
Clobbers A, Z&N, and C |
EA ... NOP × 2 08 PHP 28 PLP 20 xx xx JSR @rts14 |
Requires @rts14; and writes in stack |
EA NOP 08 PHP 24 00 BIT $00 28 PLP 00 00 BRK 0 |
Requires dummy interrupt handler; and writes in stack |
48 ... PHA × 2 08 PHP 28 PLP 20 xx xx JSR @rts12 |
Clobbers S; requires @rts12; and writes in stack |
EA NOP 68 ... PLA × 5 48 PHA |
Clobbers A, S, and Z&N |
08 PHP A9 LDA #0 20 xx xx JSR delay_256a_16_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks, and delay_256a_16_clocks; and writes in stack |
48 PHA A9 LDA #0 20 xx xx JSR delay_256a_16_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks, and delay_256a_16_clocks; and writes in stack |
8 bytes | |
EA ... NOP × 2 08 PHP 48 PHA \ × 2 68 PLA / 28 PLP |
Writes in stack |
EA ... NOP × 2 68 PLA \ × 3 48 PHA / |
Clobbers A, and Z&N |
10 bytes | |
C5 00 CMP $00 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers Z&N, and C |
24 00 BIT $00 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers Z&N, and V |
E6 xx INC @zptemp 26 00 ROL $00 \ × 2 66 00 ROR $00 / |
Clobbers Z&N; and requires @zptemp |
04 00 NOP $00 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers Z&N; and requires support for unofficial opcodes |
11 bytes | |
4C xx xx JMP *+3 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers Z&N; and not relocatable code |
13 bytes | |
18 ... CLC × 11 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 11 50 00 BVC *+2 |
Clobbers V |
EA ... NOP × 11 85 xx STA @zptemp |
Requires @zptemp |
EA ... NOP × 11 04 00 NOP $00 |
Requires support for unofficial opcodes |
14 bytes | |
EA ... NOP × 11 4C xx xx JMP *+3 |
Not relocatable code |
26 cycles
4 bytes | |
---|---|
00 00... BRK 0 × 2 |
Requires dummy interrupt handler; and writes in stack |
5 bytes | |
A2 05 LDX #5 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A0 05 LDY #5 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 |
Clobbers A, Z&N, and C |
6 bytes | |
20 xx xx JSR @rts12 20 xx xx JSR @rts14 |
Requires @rts12, and @rts14; and writes in stack |
48 PHA 68 ... PLA × 2 20 xx xx JSR @rts15 |
Clobbers A, S, and Z&N; requires @rts15; and writes in stack |
68 ... PLA × 3 20 xx xx JSR @rts14 |
Clobbers A, S, and Z&N; requires @rts14; and writes in stack |
7 bytes | |
EA NOP 20 xx xx JSR @rts12× 2 |
Requires @rts12; and writes in stack |
EA ... NOP × 2 08 PHP 28 PLP 20 xx xx JSR @rts15 |
Requires @rts15; and writes in stack |
36 00 ROL $00,X 76 00 ROR $00,X 20 xx xx JSR @rts14 |
Clobbers Z&N; requires @rts14; and writes in stack |
08 PHP E6 xx INC @zptemp 28 PLP 20 xx xx JSR @rts14 |
Requires @zptemp, and @rts14; and writes in stack |
EA NOP 68 ... PLA × 6 |
Clobbers A, S, and Z&N |
EA NOP 48 PHA 08 PHP 28 PLP 20 xx xx JSR @rts14 |
Clobbers S; requires @rts14; and writes in stack |
8 bytes | |
08 PHP 28 PLP 08 PHP 36 00 ROL $00,X 76 00 ROR $00,X 28 PLP |
Writes in stack |
68 PLA \ × 2 48 PHA / 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers A, and Z&N |
9 bytes | |
EA NOP 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / |
Clobbers Z&N |
13 bytes | |
EA ... NOP × 13 |
No requirements |
27 cycles
5 bytes | |
---|---|
00 00 BRK 0 20 xx xx JSR @rts14 |
Requires dummy interrupt handler, and @rts14; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 |
Clobbers A, S, Z&N, and C; and writes in stack |
A9 LDA #0 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
20 xx xx JSR @rts12 20 xx xx JSR @rts15 |
Requires @rts12, and @rts15; and writes in stack |
A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 |
Clobbers A, Z&N, and C |
08 PHP \ × 2 28 PLP / 00 00 BRK 0 |
Requires dummy interrupt handler; and writes in stack |
68 ... PLA × 3 20 xx xx JSR @rts15 |
Clobbers A, S, and Z&N; requires @rts15; and writes in stack |
7 bytes | |
36 00 ROL $00,X 76 00 ROR $00,X 20 xx xx JSR @rts15 |
Clobbers Z&N; requires @rts15; and writes in stack |
08 PHP A9 2A LDA #$2A ;hides 'ROL A' 18 CLC 10 FC BPL *-2 28 PLP |
Clobbers A; and writes in stack |
48 PHA A9 2A LDA #$2A ;hides 'ROL A' 18 CLC 10 FC BPL *-2 68 PLA |
Clobbers Z&N, and C; and writes in stack |
08 PHP E6 xx INC @zptemp 28 PLP 20 xx xx JSR @rts15 |
Requires @zptemp, and @rts15; and writes in stack |
48 PHA 20 xx xx JSR @rts12× 2 |
Clobbers S; requires @rts12; and writes in stack |
EA NOP 48 PHA 08 PHP 28 PLP 20 xx xx JSR @rts15 |
Clobbers S; requires @rts15; and writes in stack |
68 ... PLA × 6 48 PHA |
Clobbers A, S, and Z&N |
EA NOP A0 03 LDY #3 48 PHA 88 DEY D0 FA BNE *-4 |
Clobbers Y, S, and Z&N; and writes in stack |
EA NOP A2 03 LDX #3 48 PHA CA DEX D0 FA BNE *-4 |
Clobbers X, S, and Z&N; and writes in stack |
48 ... PHA × 2 08 PHP 28 PLP 20 xx xx JSR @rts14 |
Clobbers S; requires @rts14; and writes in stack |
A2 82 LDX #130 ;hides 'NOP #imm' 04 EA NOP $EA ;hides 'NOP' CA DEX 30 FA BMI *-4 |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
A0 82 LDY #130 ;hides 'NOP #imm' 04 EA NOP $EA ;hides 'NOP' 88 DEY 30 FA BMI *-4 |
Clobbers Y, and Z&N; and requires support for unofficial opcodes |
8 bytes | |
EA NOP 08 PHP 24 00 BIT $00 28 PLP 20 xx xx JSR @rts15 |
Requires @rts15; and writes in stack |
EA ... NOP × 3 A0 04 LDY #4 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
EA ... NOP × 3 A2 04 LDX #4 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
24 00 BIT $00 20 xx xx JSR @rts12× 2 |
Clobbers Z&N, and V; requires @rts12; and writes in stack |
EA ... NOP × 3 08 PHP 28 PLP 20 xx xx JSR @rts14 |
Requires @rts14; and writes in stack |
85 xx STA @zptemp 20 xx xx JSR @rts12× 2 |
Requires @zptemp, and @rts12; and writes in stack |
48 ... PHA × 2 08 PHP 48 PHA \ × 2 68 PLA / 28 PLP |
Clobbers S; and writes in stack |
04 00 NOP $00 20 xx xx JSR @rts12× 2 |
Requires @rts12, and support for unofficial opcodes; and writes in stack |
9 bytes | |
08 PHP 48 PHA A9 6A LDA #$6A ;hides 'ROR A' 38 SEC 10 FC BPL *-2 68 PLA 28 PLP |
Writes in stack |
EA ... NOP × 3 68 PLA \ × 3 48 PHA / |
Clobbers A, and Z&N |
10 bytes | |
C5 00 CMP $00 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / |
Clobbers Z&N, and C |
24 00 BIT $00 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / |
Clobbers Z&N, and V |
E6 xx INC @zptemp 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers Z&N; and requires @zptemp |
04 00 NOP $00 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
11 bytes | |
4C xx xx JMP *+3 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
14 bytes | |
18 ... CLC × 12 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 12 50 00 BVC *+2 |
Clobbers V |
EA ... NOP × 12 85 xx STA @zptemp |
Requires @zptemp |
EA ... NOP × 12 04 00 NOP $00 |
Requires support for unofficial opcodes |
15 bytes | |
EA ... NOP × 12 4C xx xx JMP *+3 |
Not relocatable code |
28 cycles
5 bytes | |
---|---|
EA NOP 00 00... BRK 0 × 2 |
Requires dummy interrupt handler; and writes in stack |
68 PLA A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 |
Clobbers A, S, Z&N, and C |
A9 LDA #1 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
EA NOP A0 05 LDY #5 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
EA NOP A2 05 LDX #5 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 |
Clobbers A, Z&N, and C |
20 xx xx JSR @rts14× 2 |
Requires @rts14; and writes in stack |
7 bytes | |
08 PHP 18 CLC A9 2A LDA #$2A ;hides 'ROL A' 90 FD BCC *-1 28 PLP |
Clobbers A; and writes in stack |
08 PHP A0 04 LDY #4 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 04 LDX #4 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
48 PHA 18 CLC A9 2A LDA #$2A ;hides 'ROL A' 90 FD BCC *-1 68 PLA |
Clobbers Z&N, and C; and writes in stack |
48 ... PHA × 2 08 PHP 28 PLP 20 xx xx JSR @rts15 |
Clobbers S; requires @rts15; and writes in stack |
68 ... PLA × 7 |
Clobbers A, S, and Z&N |
8 bytes | |
08 PHP 28 PLP 08 PHP 48 PHA \ × 2 68 PLA / 28 PLP |
Writes in stack |
68 PLA \ × 4 48 PHA / |
Clobbers A, and Z&N |
10 bytes | |
EA ... NOP × 2 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / |
Clobbers Z&N |
14 bytes | |
EA ... NOP × 14 |
No requirements |
29 cycles
5 bytes | |
---|---|
48 PHA 00 00... BRK 0 × 2 |
Clobbers S; requires dummy interrupt handler; and writes in stack |
A9 LDA #2 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A0 04 LDY #4 EA NOP 88 DEY D0 FA BNE *-4 |
Clobbers Y, and Z&N |
A2 04 LDX #4 EA NOP CA DEX D0 FA BNE *-4 |
Clobbers X, and Z&N |
18 CLC A9 2A LDA #$2A ;hides 'ROL A' EA NOP 90 FC BCC *-2 |
Clobbers A, Z&N, and C |
20 xx xx JSR @rts14 20 xx xx JSR @rts15 |
Requires @rts14, and @rts15; and writes in stack |
A5 00 LDA $00 00 00... BRK 0 × 2 |
Clobbers A, and Z&N; requires dummy interrupt handler; and writes in stack |
C5 00 CMP $00 00 00... BRK 0 × 2 |
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack |
24 00 BIT $00 00 00... BRK 0 × 2 |
Clobbers Z&N, and V; requires dummy interrupt handler; and writes in stack |
EA NOP 00 00 BRK 0 20 xx xx JSR @rts14 |
Requires dummy interrupt handler, and @rts14; and writes in stack |
85 xx STA @zptemp 00 00... BRK 0 × 2 |
Requires @zptemp, and dummy interrupt handler; and writes in stack |
04 00 NOP $00 00 00... BRK 0 × 2 |
Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack |
7 bytes | |
08 PHP \ × 2 28 PLP / 20 xx xx JSR @rts15 |
Requires @rts15; and writes in stack |
EA NOP 08 PHP \ × 2 28 PLP / 00 00 BRK 0 |
Requires dummy interrupt handler; and writes in stack |
48 PHA 20 xx xx JSR @rts12 20 xx xx JSR @rts14 |
Clobbers S; requires @rts12, and @rts14; and writes in stack |
48 PHA 68 ... PLA × 3 20 xx xx JSR @rts14 |
Clobbers A, S, and Z&N; requires @rts14; and writes in stack |
8 bytes | |
08 PHP 18 CLC A9 2A LDA #$2A ;hides 'ROL A' 18 CLC 10 FC BPL *-2 28 PLP |
Clobbers A; and writes in stack |
08 PHP A0 03 LDY #3 EA NOP 88 DEY D0 FA BNE *-4 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 03 LDX #3 EA NOP CA DEX D0 FA BNE *-4 28 PLP |
Clobbers X; and writes in stack |
48 PHA 18 CLC A9 2A LDA #$2A ;hides 'ROL A' 18 CLC 10 FC BPL *-2 68 PLA |
Clobbers Z&N, and C; and writes in stack |
24 00 BIT $00 20 xx xx JSR @rts12 20 xx xx JSR @rts14 |
Clobbers Z&N, and V; requires @rts12, and @rts14; and writes in stack |
E6 xx INC @zptemp 20 xx xx JSR @rts12× 2 |
Clobbers Z&N; requires @zptemp, and @rts12; and writes in stack |
85 xx STA @zptemp 20 xx xx JSR @rts12 20 xx xx JSR @rts14 |
Requires @zptemp, @rts12, and @rts14; and writes in stack |
EA NOP 48 PHA 20 xx xx JSR @rts12× 2 |
Clobbers S; requires @rts12; and writes in stack |
EA NOP 68 ... PLA × 6 48 PHA |
Clobbers A, S, and Z&N |
EA NOP 48 ... PHA × 2 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 × 4 08 PHP 28 PLP 20 xx xx JSR @rts14 |
Requires @rts14; and writes in stack |
48 PHA 08 PHP 28 PLP 08 PHP 36 00 ROL $00,X 76 00 ROR $00,X 28 PLP |
Clobbers S; and writes in stack |
10 bytes | |
08 PHP 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X 76 00 ROR $00,X 28 PLP |
Writes in stack |
68 PLA 48 PHA 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers A, and Z&N |
E6 xx INC @zptemp 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
11 bytes | |
EA NOP C5 00 CMP $00 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / |
Clobbers Z&N, and C |
EA NOP 24 00 BIT $00 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / |
Clobbers Z&N, and V |
EA NOP 04 00 NOP $00 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
12 bytes | |
EA NOP 4C xx xx JMP *+3 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
15 bytes | |
18 ... CLC × 13 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 13 50 00 BVC *+2 |
Clobbers V |
EA ... NOP × 13 85 xx STA @zptemp |
Requires @zptemp |
EA ... NOP × 13 04 00 NOP $00 |
Requires support for unofficial opcodes |
16 bytes | |
EA ... NOP × 13 4C xx xx JMP *+3 |
Not relocatable code |
30 cycles
5 bytes | |
---|---|
68 PLA 00 00... BRK 0 × 2 |
Clobbers A, S, and Z&N; requires dummy interrupt handler; and writes in stack |
A9 LDA #3 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
20 xx xx JSR @rts15× 2 |
Requires @rts15; and writes in stack |
EA ... NOP × 2 00 00... BRK 0 × 2 |
Requires dummy interrupt handler; and writes in stack |
68 PLA A0 05 LDY #5 88 DEY D0 FB BNE *-3 |
Clobbers A, Y, S, and Z&N |
68 PLA A2 05 LDX #5 CA DEX D0 FB BNE *-3 |
Clobbers A, X, S, and Z&N |
EA NOP 68 PLA A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 |
Clobbers A, S, Z&N, and C |
7 bytes | |
EA ... NOP × 2 A0 05 LDY #5 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
EA ... NOP × 2 A2 05 LDX #5 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
18 ... CLC × 3 A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 |
Clobbers A, Z&N, and C |
EA NOP 20 xx xx JSR @rts14× 2 |
Requires @rts14; and writes in stack |
8 bytes | |
08 PHP 18 ... CLC × 2 A9 2A LDA #$2A ;hides 'ROL A' 90 FD BCC *-1 28 PLP |
Clobbers A; and writes in stack |
EA NOP 08 PHP A0 04 LDY #4 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
EA NOP 08 PHP A2 04 LDX #4 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
48 PHA 18 ... CLC × 2 A9 2A LDA #$2A ;hides 'ROL A' 90 FD BCC *-1 68 PLA |
Clobbers Z&N, and C; and writes in stack |
48 ... PHA × 2 20 xx xx JSR @rts12× 2 |
Clobbers S; requires @rts12; and writes in stack |
EA NOP 68 ... PLA × 7 |
Clobbers A, S, and Z&N |
9 bytes | |
08 PHP 48 PHA 18 CLC A9 2A LDA #$2A ;hides 'ROL A' 10 FD BPL *-1 68 PLA 28 PLP |
Writes in stack |
EA NOP 68 PLA \ × 4 48 PHA / |
Clobbers A, and Z&N |
11 bytes | |
EA ... NOP × 3 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / |
Clobbers Z&N |
15 bytes | |
EA ... NOP × 15 |
No requirements |
31 cycles
5 bytes | |
---|---|
A2 06 LDX #6 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A0 06 LDY #6 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 90 FD BCC *-1 |
Clobbers A, Z&N, and C |
6 bytes | |
08 PHP A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 28 PLP |
Clobbers A; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 68 PLA |
Clobbers Z&N, and C; and writes in stack |
E6 xx INC @zptemp 00 00... BRK 0 × 2 |
Clobbers Z&N; requires @zptemp, and dummy interrupt handler; and writes in stack |
EA NOP 48 PHA 00 00... BRK 0 × 2 |
Clobbers S; requires dummy interrupt handler; and writes in stack |
7 bytes | |
EA NOP 20 xx xx JSR @rts14 20 xx xx JSR @rts15 |
Requires @rts14, and @rts15; and writes in stack |
18 CLC 90 00 BCC *+2 00 00... BRK 0 × 2 |
Clobbers C; requires dummy interrupt handler; and writes in stack |
B8 CLV 50 00 BVC *+2 00 00... BRK 0 × 2 |
Clobbers V; requires dummy interrupt handler; and writes in stack |
EA ... NOP × 2 00 00 BRK 0 20 xx xx JSR @rts14 |
Requires dummy interrupt handler, and @rts14; and writes in stack |
EA NOP 85 xx STA @zptemp 00 00... BRK 0 × 2 |
Requires @zptemp, and dummy interrupt handler; and writes in stack |
48 PHA 20 xx xx JSR @rts14× 2 |
Clobbers S; requires @rts14; and writes in stack |
EA NOP 04 00 NOP $00 00 00... BRK 0 × 2 |
Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack |
8 bytes | |
08 PHP 28 PLP 20 xx xx JSR @rts12× 2 |
Requires @rts12; and writes in stack |
EA NOP 08 PHP \ × 2 28 PLP / 20 xx xx JSR @rts15 |
Requires @rts15; and writes in stack |
24 00 BIT $00 20 xx xx JSR @rts14× 2 |
Clobbers Z&N, and V; requires @rts14; and writes in stack |
EA ... NOP × 2 08 PHP \ × 2 28 PLP / 00 00 BRK 0 |
Requires dummy interrupt handler; and writes in stack |
85 xx STA @zptemp 20 xx xx JSR @rts14× 2 |
Requires @zptemp, and @rts14; and writes in stack |
68 ... PLA × 7 48 PHA |
Clobbers A, S, and Z&N |
48 PHA 08 PHP A2 04 LDX #4 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X, and S; and writes in stack |
48 PHA 08 PHP A0 04 LDY #4 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y, and S; and writes in stack |
04 00 NOP $00 20 xx xx JSR @rts14× 2 |
Requires @rts14, and support for unofficial opcodes; and writes in stack |
9 bytes | |
08 PHP A6 00 LDX $00 A2 04 LDX #4 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
08 PHP A4 00 LDY $00 A0 04 LDY #4 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
20 xx xx JSR @rts14 08 PHP 26 00 ROL $00 66 00 ROR $00 28 PLP |
Requires @rts14; and writes in stack |
48 PHA 08 PHP 28 PLP 08 PHP 48 PHA \ × 2 68 PLA / 28 PLP |
Clobbers S; and writes in stack |
10 bytes | |
08 PHP 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / 28 PLP |
Writes in stack |
68 PLA 48 PHA 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / |
Clobbers A, and Z&N |
11 bytes | |
EA NOP E6 xx INC @zptemp 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
12 bytes | |
EA ... NOP × 2 C5 00 CMP $00 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / |
Clobbers Z&N, and C |
EA ... NOP × 2 24 00 BIT $00 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / |
Clobbers Z&N, and V |
EA ... NOP × 2 04 00 NOP $00 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
13 bytes | |
EA ... NOP × 2 4C xx xx JMP *+3 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
16 bytes | |
18 ... CLC × 14 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 14 50 00 BVC *+2 |
Clobbers V |
EA ... NOP × 14 85 xx STA @zptemp |
Requires @zptemp |
EA ... NOP × 14 04 00 NOP $00 |
Requires support for unofficial opcodes |
17 bytes | |
EA ... NOP × 14 4C xx xx JMP *+3 |
Not relocatable code |
32 cycles
5 bytes | |
---|---|
A9 LDA #5 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A0 05 LDY #5 ;hides 'ORA zp' 88 DEY ;first loop only 88 DEY D0 FB BNE *-3 |
Clobbers A, Y, and Z&N |
A2 05 LDX #5 ;hides 'ORA zp' CA DEX ;first loop only CA DEX D0 FB BNE *-3 |
Clobbers A, X, and Z&N |
68 ... PLA × 2 A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 |
Clobbers A, S, Z&N, and C |
48 ... PHA × 2 00 00... BRK 0 × 2 |
Clobbers S; requires dummy interrupt handler; and writes in stack |
7 bytes | |
EA NOP 20 xx xx JSR @rts15× 2 |
Requires @rts15; and writes in stack |
A9 2A LDA #$2A ;hides 'ROL A' EA ... NOP × 2 18 CLC 10 FA BPL *-4 |
Clobbers A, Z&N, and C |
EA ... NOP × 3 00 00... BRK 0 × 2 |
Requires dummy interrupt handler; and writes in stack |
48 PHA A0 04 LDY #4 EA NOP 88 DEY D0 FA BNE *-4 |
Clobbers Y, S, and Z&N; and writes in stack |
48 PHA A2 04 LDX #4 EA NOP CA DEX D0 FA BNE *-4 |
Clobbers X, S, and Z&N; and writes in stack |
68 PLA 20 xx xx JSR @rts14× 2 |
Clobbers A, S, and Z&N; requires @rts14; and writes in stack |
A0 FA LDY #250 ;hides 'NOP' EA NOP C8 ... INY × 2 D0 FA BNE *-4 |
Clobbers Y, and Z&N; and requires support for unofficial opcodes |
A2 FA LDX #250 ;hides 'NOP' EA NOP E8 ... INX × 2 D0 FA BNE *-4 |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
8 bytes | |
A4 00 LDY $00 A0 04 LDY #4 EA NOP 88 DEY D0 FA BNE *-4 |
Clobbers Y, and Z&N |
A6 00 LDX $00 A2 04 LDX #4 EA NOP CA DEX D0 FA BNE *-4 |
Clobbers X, and Z&N |
EA ... NOP × 2 20 xx xx JSR @rts14× 2 |
Requires @rts14; and writes in stack |
68 ... PLA × 8 |
Clobbers A, S, and Z&N |
9 bytes | |
48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only 08 PHP 28 PLP 10 FA BPL *-4 68 PLA |
Clobbers Z&N; and writes in stack |
08 PHP 18 ... CLC × 3 A9 2A LDA #$2A ;hides 'ROL A' 90 FD BCC *-1 28 PLP |
Clobbers A; and writes in stack |
08 PHP A0 03 LDY #3 C5 00 CMP $00 88 DEY D0 F9 BNE *-5 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 03 LDX #3 24 00 BIT $00 CA DEX D0 F9 BNE *-5 28 PLP |
Clobbers X; and writes in stack |
EA NOP 48 ... PHA × 2 20 xx xx JSR @rts12× 2 |
Clobbers S; requires @rts12; and writes in stack |
08 PHP 48 PHA A9 LDA #0 20 xx xx JSR delay_256a_16_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks, and delay_256a_16_clocks; and writes in stack |
10 bytes | |
08 PHP 48 PHA 18 ... CLC × 2 A9 2A LDA #$2A ;hides 'ROL A' 10 FD BPL *-1 68 PLA 28 PLP |
Writes in stack |
EA ... NOP × 2 68 PLA \ × 4 48 PHA / |
Clobbers A, and Z&N |
12 bytes | |
26 00 ROL $00 \ × 2 66 00 ROR $00 / 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers Z&N |
16 bytes | |
EA ... NOP × 16 |
No requirements |
33 cycles
5 bytes | |
---|---|
A9 LDA #6 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
EA NOP A0 06 LDY #6 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
EA NOP A2 06 LDX #6 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' 90 FD BCC *-1 |
Clobbers A, Z&N, and C |
08 PHP 28 PLP 00 00... BRK 0 × 2 |
Requires dummy interrupt handler; and writes in stack |
7 bytes | |
08 PHP 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 28 PLP |
Clobbers A; and writes in stack |
08 PHP A2 05 LDX #5 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 05 LDY #5 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 68 PLA |
Clobbers Z&N, and C; and writes in stack |
48 PHA 20 xx xx JSR @rts15× 2 |
Clobbers S; requires @rts15; and writes in stack |
8 bytes | |
24 00 BIT $00 20 xx xx JSR @rts15× 2 |
Clobbers Z&N, and V; requires @rts15; and writes in stack |
08 PHP 28 PLP 20 xx xx JSR @rts12 20 xx xx JSR @rts14 |
Requires @rts12, and @rts14; and writes in stack |
EA ... NOP × 2 20 xx xx JSR @rts14 20 xx xx JSR @rts15 |
Requires @rts14, and @rts15; and writes in stack |
85 xx STA @zptemp 20 xx xx JSR @rts15× 2 |
Requires @zptemp, and @rts15; and writes in stack |
E6 xx INC @zptemp 20 xx xx JSR @rts14× 2 |
Clobbers Z&N; requires @zptemp, and @rts14; and writes in stack |
EA NOP 48 PHA 20 xx xx JSR @rts14× 2 |
Clobbers S; requires @rts14; and writes in stack |
04 00 NOP $00 20 xx xx JSR @rts15× 2 |
Requires @rts15, and support for unofficial opcodes; and writes in stack |
9 bytes | |
EA NOP 08 PHP 28 PLP 20 xx xx JSR @rts12× 2 |
Requires @rts12; and writes in stack |
EA ... NOP × 2 08 PHP \ × 2 28 PLP / 20 xx xx JSR @rts15 |
Requires @rts15; and writes in stack |
20 xx xx JSR @rts14 08 PHP 36 00 ROL $00,X 76 00 ROR $00,X 28 PLP |
Requires @rts14; and writes in stack |
EA NOP 68 ... PLA × 7 48 PHA |
Clobbers A, S, and Z&N |
10 bytes | |
08 PHP \ × 2 28 PLP / 08 PHP 36 00 ROL $00,X 76 00 ROR $00,X 28 PLP |
Writes in stack |
68 PLA \ × 3 48 PHA / 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers A, and Z&N |
12 bytes | |
EA ... NOP × 2 E6 xx INC @zptemp 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
13 bytes | |
EA ... NOP × 3 C5 00 CMP $00 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / |
Clobbers Z&N, and C |
EA ... NOP × 3 24 00 BIT $00 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / |
Clobbers Z&N, and V |
EA ... NOP × 3 04 00 NOP $00 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
14 bytes | |
EA ... NOP × 3 4C xx xx JMP *+3 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
17 bytes | |
18 ... CLC × 15 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 15 50 00 BVC *+2 |
Clobbers V |
EA ... NOP × 15 85 xx STA @zptemp |
Requires @zptemp |
EA ... NOP × 15 04 00 NOP $00 |
Requires support for unofficial opcodes |
18 bytes | |
EA ... NOP × 15 4C xx xx JMP *+3 |
Not relocatable code |
34 cycles
5 bytes | |
---|---|
A0 88 LDY #136 ;hides 'DEY' 88 DEY 30 FC BMI *-2 |
Clobbers Y, and Z&N |
A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 10 FC BPL *-2 |
Clobbers A, Z&N, and C |
6 bytes | |
48 PHA A2 06 LDX #6 CA DEX D0 FB BNE *-3 |
Clobbers X, S, and Z&N; and writes in stack |
68 ... PLA × 2 00 00... BRK 0 × 2 |
Clobbers A, S, and Z&N; requires dummy interrupt handler; and writes in stack |
7 bytes | |
A6 00 LDX $00 A2 06 LDX #6 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
08 PHP 28 PLP 00 00 BRK 0 20 xx xx JSR @rts14 |
Requires dummy interrupt handler, and @rts14; and writes in stack |
48 PHA 08 PHP A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 28 PLP |
Clobbers A, and S; and writes in stack |
48 ... PHA × 2 A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 68 PLA |
Clobbers S, Z&N, and C; and writes in stack |
EA NOP 48 ... PHA × 2 00 00... BRK 0 × 2 |
Clobbers S; requires dummy interrupt handler; and writes in stack |
08 PHP A9 LDA #0 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #0 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
EA ... NOP × 2 20 xx xx JSR @rts15× 2 |
Requires @rts15; and writes in stack |
08 PHP A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 28 PLP |
Clobbers A; and writes in stack |
C5 00 CMP $00 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 68 PLA |
Clobbers Z&N, and C; and writes in stack |
EA ... NOP × 4 00 00... BRK 0 × 2 |
Requires dummy interrupt handler; and writes in stack |
48 ... PHA × 2 20 xx xx JSR @rts14× 2 |
Clobbers S; requires @rts14; and writes in stack |
9 bytes | |
08 PHP 48 PHA A9 2A LDA #$2A ;hides 'ROL A' 18 CLC 10 FC BPL *-2 68 PLA 28 PLP |
Writes in stack |
EA NOP 68 ... PLA × 8 |
Clobbers A, S, and Z&N |
11 bytes | |
EA ... NOP × 3 68 PLA \ × 4 48 PHA / |
Clobbers A, and Z&N |
12 bytes | |
26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / |
Clobbers Z&N |
17 bytes | |
EA ... NOP × 17 |
No requirements |
35 cycles
5 bytes | |
---|---|
A9 LDA #8 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A0 88 LDY #136 ;hides 'DEY' 88 ... DEY × 2 30 FB BMI *-3 |
Clobbers Y, and Z&N |
A9 2A LDA #$2A ;hides 'ROL A' 08 PHP 28 PLP 10 FB BPL *-3 |
Clobbers A, Z&N, and C; and writes in stack |
A2 F8 LDX #248 ;hides 'SED' E8 ... INX × 2 D0 FB BNE *-3 |
Clobbers X, Z&N, and D |
68 PLA A2 06 LDX #6 CA DEX D0 FB BNE *-3 |
Clobbers A, X, S, and Z&N |
68 PLA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 90 FD BCC *-1 |
Clobbers A, S, Z&N, and C |
7 bytes | |
EA ... NOP × 2 A2 06 LDX #6 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
18 ... CLC × 3 A9 0A LDA #$0A ;hides 'ASL A' 90 FD BCC *-1 |
Clobbers A, Z&N, and C |
EA NOP 08 PHP 28 PLP 00 00... BRK 0 × 2 |
Requires dummy interrupt handler; and writes in stack |
68 PLA 08 PHP A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 28 PLP |
Clobbers A, S, and Z&N; and writes in stack |
08 PHP A9 LDA #1 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #1 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
08 PHP 18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 28 PLP |
Clobbers A; and writes in stack |
EA NOP 08 PHP A0 05 LDY #5 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
EA NOP 08 PHP A2 05 LDX #5 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
48 PHA 18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 68 PLA |
Clobbers Z&N, and C; and writes in stack |
08 PHP 28 PLP 20 xx xx JSR @rts14× 2 |
Requires @rts14; and writes in stack |
E6 xx INC @zptemp 20 xx xx JSR @rts15× 2 |
Clobbers Z&N; requires @zptemp, and @rts15; and writes in stack |
EA NOP 48 PHA 20 xx xx JSR @rts15× 2 |
Clobbers S; requires @rts15; and writes in stack |
9 bytes | |
08 PHP 48 PHA 18 CLC A9 2A LDA #$2A ;hides 'ROL A' 90 FD BCC *-1 68 PLA 28 PLP |
Writes in stack |
68 ... PLA × 8 48 PHA |
Clobbers A, S, and Z&N |
10 bytes | |
68 PLA \ × 5 48 PHA / |
Clobbers A, and Z&N |
13 bytes | |
EA ... NOP × 3 E6 xx INC @zptemp 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
14 bytes | |
C5 00 CMP $00 26 00 ROL $00 \ × 2 66 00 ROR $00 / 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers Z&N, and C |
24 00 BIT $00 26 00 ROL $00 \ × 2 66 00 ROR $00 / 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers Z&N, and V |
04 00 NOP $00 26 00 ROL $00 \ × 2 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 \ × 2 66 00 ROR $00 / 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers Z&N; and not relocatable code |
18 bytes | |
18 ... CLC × 16 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 16 50 00 BVC *+2 |
Clobbers V |
EA ... NOP × 16 85 xx STA @zptemp |
Requires @zptemp |
EA ... NOP × 16 04 00 NOP $00 |
Requires support for unofficial opcodes |
19 bytes | |
EA ... NOP × 16 4C xx xx JMP *+3 |
Not relocatable code |
36 cycles
5 bytes | |
---|---|
A2 07 LDX #7 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A0 07 LDY #7 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A9 E9 LDA #$E9 ;hides 'SBC #$2A' 2A ROL A ;first loop only B0 FC BCS *-2 |
Clobbers A, Z&N, C, and V |
6 bytes | |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 10 FC BPL *-2 |
Clobbers A, Z&N, and C |
7 bytes | |
48 PHA 08 PHP 28 PLP 00 00... BRK 0 × 2 |
Clobbers S; requires dummy interrupt handler; and writes in stack |
08 PHP A9 LDA #2 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #2 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
08 PHP 18 CLC A9 2A LDA #$2A ;hides 'ROL A' EA NOP 90 FC BCC *-2 28 PLP |
Clobbers A; and writes in stack |
08 PHP A0 04 LDY #4 EA NOP 88 DEY D0 FA BNE *-4 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 04 LDX #4 EA NOP CA DEX D0 FA BNE *-4 28 PLP |
Clobbers X; and writes in stack |
48 PHA 18 CLC A9 2A LDA #$2A ;hides 'ROL A' EA NOP 90 FC BCC *-2 68 PLA |
Clobbers Z&N, and C; and writes in stack |
08 PHP 28 PLP 20 xx xx JSR @rts14 20 xx xx JSR @rts15 |
Requires @rts14, and @rts15; and writes in stack |
08 PHP 24 00 BIT $00 28 PLP 00 00... BRK 0 × 2 |
Requires dummy interrupt handler; and writes in stack |
48 ... PHA × 2 20 xx xx JSR @rts15× 2 |
Clobbers S; requires @rts15; and writes in stack |
9 bytes | |
20 xx xx JSR @rts12× 3 |
Requires @rts12; and writes in stack |
EA ... NOP × 3 20 xx xx JSR @rts15× 2 |
Requires @rts15; and writes in stack |
68 ... PLA × 9 |
Clobbers A, S, and Z&N |
EA NOP 48 ... PHA × 2 20 xx xx JSR @rts14× 2 |
Clobbers S; requires @rts14; and writes in stack |
10 bytes | |
08 PHP 48 PHA 18 CLC A9 2A LDA #$2A ;hides 'ROL A' 18 CLC 10 FC BPL *-2 68 PLA 28 PLP |
Writes in stack |
12 bytes | |
36 00 ROL $00,X \ × 3 76 00 ROR $00,X / |
Clobbers Z&N |
18 bytes | |
EA ... NOP × 18 |
No requirements |
37 cycles
5 bytes | |
---|---|
A9 LDA #10 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
00 00 BRK 0 A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 |
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack |
48 PHA A0 88 LDY #136 ;hides 'DEY' 88 DEY 30 FC BMI *-2 |
Clobbers Y, S, and Z&N; and writes in stack |
A0 04 LDY #4 68 PLA 88 DEY D0 FA BNE *-4 |
Clobbers A, Y, S, and Z&N |
A2 04 LDX #4 68 PLA CA DEX D0 FA BNE *-4 |
Clobbers A, X, S, and Z&N |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 10 FC BPL *-2 |
Clobbers A, S, Z&N, and C; and writes in stack |
7 bytes | |
A2 04 LDX #4 EA ... NOP × 2 CA DEX D0 F9 BNE *-5 |
Clobbers X, and Z&N |
A0 04 LDY #4 EA ... NOP × 2 88 DEY D0 F9 BNE *-5 |
Clobbers Y, and Z&N |
A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 10 FC BPL *-2 |
Clobbers A, Z&N, and C |
A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only 00 00 BRK 0 10 FA BPL *-4 |
Clobbers A, and Z&N; requires dummy interrupt handler; and writes in stack |
08 PHP A9 LDA #3 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #3 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
08 PHP 28 PLP 20 xx xx JSR @rts15× 2 |
Requires @rts15; and writes in stack |
EA ... NOP × 2 08 PHP 28 PLP 00 00... BRK 0 × 2 |
Requires dummy interrupt handler; and writes in stack |
48 ... PHA × 2 08 PHP A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 28 PLP |
Clobbers A, and S; and writes in stack |
48 ... PHA × 3 A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 68 PLA |
Clobbers S, Z&N, and C; and writes in stack |
9 bytes | |
08 PHP 18 ... CLC × 3 A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 28 PLP |
Clobbers A; and writes in stack |
EA ... NOP × 2 08 PHP A0 05 LDY #5 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
EA ... NOP × 2 08 PHP A2 05 LDX #5 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
48 PHA 18 ... CLC × 3 A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 68 PLA |
Clobbers Z&N, and C; and writes in stack |
EA NOP 08 PHP 28 PLP 20 xx xx JSR @rts14× 2 |
Requires @rts14; and writes in stack |
10 bytes | |
08 PHP 48 PHA 18 ... CLC × 2 A9 2A LDA #$2A ;hides 'ROL A' 90 FD BCC *-1 68 PLA 28 PLP |
Writes in stack |
EA NOP 68 ... PLA × 8 48 PHA |
Clobbers A, S, and Z&N |
11 bytes | |
EA NOP 68 PLA \ × 5 48 PHA / |
Clobbers A, and Z&N |
14 bytes | |
C5 00 CMP $00 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / |
Clobbers Z&N, and C |
24 00 BIT $00 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / |
Clobbers Z&N, and V |
E6 xx INC @zptemp 26 00 ROL $00 \ × 2 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 \ × 2 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
15 bytes | |
4C xx xx JMP *+3 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
19 bytes | |
18 ... CLC × 17 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 17 50 00 BVC *+2 |
Clobbers V |
EA ... NOP × 17 85 xx STA @zptemp |
Requires @zptemp |
EA ... NOP × 17 04 00 NOP $00 |
Requires support for unofficial opcodes |
20 bytes | |
EA ... NOP × 17 4C xx xx JMP *+3 |
Not relocatable code |
38 cycles
5 bytes | |
---|---|
A9 LDA #11 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
EA NOP A0 07 LDY #7 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
EA NOP A2 07 LDX #7 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
38 SEC A9 69 LDA #$69 ;hides 'ADC #$EA' EA NOP ;first loop only 10 FA BPL *-4 |
Clobbers A, Z&N, C, and V |
68 PLA A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 10 FC BPL *-2 |
Clobbers A, S, Z&N, and C |
7 bytes | |
08 PHP 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 90 FD BCC *-1 28 PLP |
Clobbers A; and writes in stack |
08 PHP A0 06 LDY #6 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 06 LDX #6 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 90 FD BCC *-1 68 PLA |
Clobbers Z&N, and C; and writes in stack |
18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 10 FC BPL *-2 |
Clobbers A, Z&N, and C |
20 xx xx JSR @rts12 00 00... BRK 0 × 2 |
Requires dummy interrupt handler, and @rts12; and writes in stack |
8 bytes | |
08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 68 PLA 28 PLP |
Writes in stack |
10 bytes | |
EA NOP 68 ... PLA × 9 |
Clobbers A, S, and Z&N |
12 bytes | |
68 PLA \ × 2 48 PHA / 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / |
Clobbers A, and Z&N |
13 bytes | |
EA NOP 36 00 ROL $00,X \ × 3 76 00 ROR $00,X / |
Clobbers Z&N |
19 bytes | |
EA ... NOP × 19 |
No requirements |
39 cycles
4 bytes | |
---|---|
A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 |
Clobbers A, Z&N, and C |
6 bytes | |
00 00... BRK 0 × 3 |
Requires dummy interrupt handler; and writes in stack |
48 PHA A0 07 LDY #7 88 DEY D0 FB BNE *-3 |
Clobbers Y, S, and Z&N; and writes in stack |
48 PHA A2 07 LDX #7 CA DEX D0 FB BNE *-3 |
Clobbers X, S, and Z&N; and writes in stack |
7 bytes | |
A4 00 LDY $00 A0 07 LDY #7 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A6 00 LDX $00 A2 07 LDX #7 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
08 PHP A9 LDA #5 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #5 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
08 PHP A2 05 LDX #5 ;hides 'ORA zp' CA DEX ;first loop only CA DEX D0 FB BNE *-3 28 PLP |
Clobbers A, and X; and writes in stack |
08 PHP A0 05 LDY #5 ;hides 'ORA zp' 88 DEY ;first loop only 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers A, and Y; and writes in stack |
A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only 20 xx xx JSR @rts14 10 F9 BPL *-5 |
Clobbers A, and Z&N; requires @rts14; and writes in stack |
68 ... PLA × 2 08 PHP A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 28 PLP |
Clobbers A, S, and Z&N; and writes in stack |
9 bytes | |
EA NOP 08 PHP 28 PLP 20 xx xx JSR @rts15× 2 |
Requires @rts15; and writes in stack |
08 PHP A9 2A LDA #$2A ;hides 'ROL A' EA ... NOP × 2 18 CLC 10 FA BPL *-4 28 PLP |
Clobbers A; and writes in stack |
48 PHA A9 2A LDA #$2A ;hides 'ROL A' EA ... NOP × 2 18 CLC 10 FA BPL *-4 68 PLA |
Clobbers Z&N, and C; and writes in stack |
48 PHA 08 PHP A0 04 LDY #4 EA NOP 88 DEY D0 FA BNE *-4 28 PLP |
Clobbers Y, and S; and writes in stack |
48 PHA 08 PHP A2 04 LDX #4 EA NOP CA DEX D0 FA BNE *-4 28 PLP |
Clobbers X, and S; and writes in stack |
08 PHP A2 FA LDX #250 ;hides 'NOP' EA NOP E8 ... INX × 2 D0 FA BNE *-4 28 PLP |
Clobbers X; requires support for unofficial opcodes; and writes in stack |
08 PHP A0 FA LDY #250 ;hides 'NOP' EA NOP C8 ... INY × 2 D0 FA BNE *-4 28 PLP |
Clobbers Y; requires support for unofficial opcodes; and writes in stack |
10 bytes | |
08 PHP A4 00 LDY $00 A0 04 LDY #4 EA NOP 88 DEY D0 FA BNE *-4 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A6 00 LDX $00 A2 04 LDX #4 EA NOP CA DEX D0 FA BNE *-4 28 PLP |
Clobbers X; and writes in stack |
EA ... NOP × 2 08 PHP 28 PLP 20 xx xx JSR @rts14× 2 |
Requires @rts14; and writes in stack |
48 PHA 20 xx xx JSR @rts12× 3 |
Clobbers S; requires @rts12; and writes in stack |
68 ... PLA × 9 48 PHA |
Clobbers A, S, and Z&N |
11 bytes | |
EA NOP 08 PHP 48 PHA 18 ... CLC × 2 A9 2A LDA #$2A ;hides 'ROL A' 90 FD BCC *-1 68 PLA 28 PLP |
Writes in stack |
12 bytes | |
EA ... NOP × 2 68 PLA \ × 5 48 PHA / |
Clobbers A, and Z&N |
14 bytes | |
C5 00 CMP $00 36 00 ROL $00,X \ × 3 76 00 ROR $00,X / |
Clobbers Z&N, and C |
24 00 BIT $00 36 00 ROL $00,X \ × 3 76 00 ROR $00,X / |
Clobbers Z&N, and V |
E6 xx INC @zptemp 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
04 00 NOP $00 36 00 ROL $00,X \ × 3 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
15 bytes | |
4C xx xx JMP *+3 36 00 ROL $00,X \ × 3 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
20 bytes | |
18 ... CLC × 18 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 18 50 00 BVC *+2 |
Clobbers V |
EA ... NOP × 18 85 xx STA @zptemp |
Requires @zptemp |
EA ... NOP × 18 04 00 NOP $00 |
Requires support for unofficial opcodes |
21 bytes | |
EA ... NOP × 18 4C xx xx JMP *+3 |
Not relocatable code |
40 cycles
5 bytes | |
---|---|
A9 LDA #13 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A0 05 LDY #5 ;hides 'ORA zp' EA NOP 88 DEY D0 FB BNE *-3 |
Clobbers A, Y, and Z&N |
A2 05 LDX #5 ;hides 'ORA zp' EA NOP CA DEX D0 FB BNE *-3 |
Clobbers A, X, and Z&N |
68 PLA A9 E9 LDA #$E9 ;hides 'SBC #$2A' 2A ROL A ;first loop only B0 FC BCS *-2 |
Clobbers A, S, Z&N, C, and V |
7 bytes | |
EA ... NOP × 2 A2 07 LDX #7 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
EA ... NOP × 2 A0 07 LDY #7 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
EA NOP 38 SEC A9 69 LDA #$69 ;hides 'ADC #$EA' EA NOP ;first loop only 10 FA BPL *-4 |
Clobbers A, Z&N, C, and V |
00 00... BRK 0 × 2 20 xx xx JSR @rts14 |
Requires dummy interrupt handler, and @rts14; and writes in stack |
EA NOP 68 PLA A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 10 FC BPL *-2 |
Clobbers A, S, Z&N, and C |
08 PHP A9 LDA #6 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #6 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
08 PHP 18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' 90 FD BCC *-1 28 PLP |
Clobbers A; and writes in stack |
EA NOP 08 PHP A2 06 LDX #6 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
EA NOP 08 PHP A0 06 LDY #6 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
48 PHA 18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' 90 FD BCC *-1 68 PLA |
Clobbers Z&N, and C; and writes in stack |
18 ... CLC × 3 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 10 FC BPL *-2 |
Clobbers A, Z&N, and C |
08 PHP \ × 2 28 PLP / 00 00... BRK 0 × 2 |
Requires dummy interrupt handler; and writes in stack |
9 bytes | |
08 PHP 48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 68 PLA 28 PLP |
Writes in stack |
10 bytes | |
68 ... PLA × 10 |
Clobbers A, S, and Z&N |
12 bytes | |
68 PLA \ × 4 48 PHA / 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers A, and Z&N |
14 bytes | |
EA ... NOP × 2 36 00 ROL $00,X \ × 3 76 00 ROR $00,X / |
Clobbers Z&N |
20 bytes | |
EA ... NOP × 20 |
No requirements |
41 cycles
5 bytes | |
---|---|
A0 08 LDY #8 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A2 08 LDX #8 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 |
Clobbers A, Z&N, and C |
7 bytes | |
08 PHP A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 10 FC BPL *-2 28 PLP |
Clobbers A; and writes in stack |
08 PHP A0 88 LDY #136 ;hides 'DEY' 88 DEY 30 FC BMI *-2 28 PLP |
Clobbers Y; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 10 FC BPL *-2 68 PLA |
Clobbers Z&N, and C; and writes in stack |
EA NOP 00 00... BRK 0 × 3 |
Requires dummy interrupt handler; and writes in stack |
8 bytes | |
48 PHA 08 PHP A2 06 LDX #6 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X, and S; and writes in stack |
9 bytes | |
08 PHP A6 00 LDX $00 A2 06 LDX #6 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
20 xx xx JSR @rts12 20 xx xx JSR @rts14 20 xx xx JSR @rts15 |
Requires @rts12, @rts14, and @rts15; and writes in stack |
48 PHA 08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 68 PLA 28 PLP |
Clobbers S; and writes in stack |
08 PHP 48 PHA A9 LDA #0 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP C5 00 CMP $00 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 68 PLA 28 PLP |
Writes in stack |
11 bytes | |
EA NOP 68 ... PLA × 9 48 PHA |
Clobbers A, S, and Z&N |
13 bytes | |
EA ... NOP × 3 68 PLA \ × 5 48 PHA / |
Clobbers A, and Z&N |
14 bytes | |
E6 xx INC @zptemp 36 00 ROL $00,X \ × 3 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
15 bytes | |
EA NOP C5 00 CMP $00 36 00 ROL $00,X \ × 3 76 00 ROR $00,X / |
Clobbers Z&N, and C |
EA NOP 24 00 BIT $00 36 00 ROL $00,X \ × 3 76 00 ROR $00,X / |
Clobbers Z&N, and V |
EA NOP 04 00 NOP $00 36 00 ROL $00,X \ × 3 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
16 bytes | |
EA NOP 4C xx xx JMP *+3 36 00 ROL $00,X \ × 3 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
21 bytes | |
18 ... CLC × 19 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 19 50 00 BVC *+2 |
Clobbers V |
EA ... NOP × 19 85 xx STA @zptemp |
Requires @zptemp |
EA ... NOP × 19 04 00 NOP $00 |
Requires support for unofficial opcodes |
22 bytes | |
EA ... NOP × 19 4C xx xx JMP *+3 |
Not relocatable code |
42 cycles
5 bytes | |
---|---|
48 PHA A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 |
Clobbers A, S, Z&N, and C; and writes in stack |
A9 LDA #15 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 |
Clobbers A, Z&N, and C |
7 bytes | |
EA NOP A2 05 LDX #5 ;hides 'ORA zp' EA NOP CA DEX D0 FB BNE *-3 |
Clobbers A, X, and Z&N |
EA NOP A0 05 LDY #5 ;hides 'ORA zp' EA NOP 88 DEY D0 FB BNE *-3 |
Clobbers A, Y, and Z&N |
48 ... PHA × 2 A2 07 LDX #7 CA DEX D0 FB BNE *-3 |
Clobbers X, S, and Z&N; and writes in stack |
48 ... PHA × 2 A0 07 LDY #7 88 DEY D0 FB BNE *-3 |
Clobbers Y, S, and Z&N; and writes in stack |
48 PHA 00 00... BRK 0 × 3 |
Clobbers S; requires dummy interrupt handler; and writes in stack |
08 PHP A9 LDA #8 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #8 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
08 PHP A9 2A LDA #$2A ;hides 'ROL A' 08 PHP 28 PLP 10 FB BPL *-3 28 PLP |
Clobbers A; and writes in stack |
08 PHP A2 F8 LDX #248 ;hides 'SED' E8 ... INX × 2 D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 88 LDY #136 ;hides 'DEY' 88 ... DEY × 2 30 FB BMI *-3 28 PLP |
Clobbers Y; and writes in stack |
EA ... NOP × 3 A2 07 LDX #7 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
EA ... NOP × 3 A0 07 LDY #7 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
48 PHA A9 2A LDA #$2A ;hides 'ROL A' 08 PHP 28 PLP 10 FB BPL *-3 68 PLA |
Clobbers Z&N, and C; and writes in stack |
24 00 BIT $00 00 00... BRK 0 × 3 |
Clobbers Z&N, and V; requires dummy interrupt handler; and writes in stack |
EA NOP 00 00... BRK 0 × 2 20 xx xx JSR @rts14 |
Requires dummy interrupt handler, and @rts14; and writes in stack |
85 xx STA @zptemp 00 00... BRK 0 × 3 |
Requires @zptemp, and dummy interrupt handler; and writes in stack |
04 00 NOP $00 00 00... BRK 0 × 3 |
Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack |
9 bytes | |
20 xx xx JSR @rts12 20 xx xx JSR @rts15× 2 |
Requires @rts12, and @rts15; and writes in stack |
20 xx xx JSR @rts14× 3 |
Requires @rts14; and writes in stack |
EA NOP 08 PHP \ × 2 28 PLP / 00 00... BRK 0 × 2 |
Requires dummy interrupt handler; and writes in stack |
08 PHP 48 PHA A9 LDA #1 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP 48 PHA 18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 68 PLA 28 PLP |
Writes in stack |
11 bytes | |
EA NOP 68 ... PLA × 10 |
Clobbers A, S, and Z&N |
12 bytes | |
68 PLA \ × 6 48 PHA / |
Clobbers A, and Z&N |
15 bytes | |
EA ... NOP × 3 36 00 ROL $00,X \ × 3 76 00 ROR $00,X / |
Clobbers Z&N |
21 bytes | |
EA ... NOP × 21 |
No requirements |
43 cycles
5 bytes | |
---|---|
68 PLA A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 |
Clobbers A, S, Z&N, and C |
A9 LDA #16 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A2 06 LDX #6 EA NOP CA DEX D0 FA BNE *-4 |
Clobbers X, and Z&N |
A0 06 LDY #6 EA NOP 88 DEY D0 FA BNE *-4 |
Clobbers Y, and Z&N |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA NOP 90 FC BCC *-2 |
Clobbers A, Z&N, and C |
7 bytes | |
08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$2A' 2A ROL A ;first loop only B0 FC BCS *-2 28 PLP |
Clobbers A; and writes in stack |
08 PHP A2 07 LDX #7 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 07 LDY #7 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$2A' 2A ROL A ;first loop only B0 FC BCS *-2 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
8 bytes | |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 10 FC BPL *-2 68 PLA |
Clobbers Z&N, and C; and writes in stack |
EA ... NOP × 2 00 00... BRK 0 × 3 |
Requires dummy interrupt handler; and writes in stack |
9 bytes | |
20 xx xx JSR @rts14× 2 20 xx xx JSR @rts15 |
Requires @rts14, and @rts15; and writes in stack |
08 PHP 48 PHA A9 LDA #2 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP 48 PHA 18 CLC A9 2A LDA #$2A ;hides 'ROL A' EA NOP 90 FC BCC *-2 68 PLA 28 PLP |
Writes in stack |
11 bytes | |
68 ... PLA × 10 48 PHA |
Clobbers A, S, and Z&N |
13 bytes | |
A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 8 10 F4 BPL *-10 |
Clobbers A, and Z&N |
15 bytes | |
EA NOP E6 xx INC @zptemp 36 00 ROL $00,X \ × 3 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
16 bytes | |
EA ... NOP × 2 C5 00 CMP $00 36 00 ROL $00,X \ × 3 76 00 ROR $00,X / |
Clobbers Z&N, and C |
EA ... NOP × 2 24 00 BIT $00 36 00 ROL $00,X \ × 3 76 00 ROR $00,X / |
Clobbers Z&N, and V |
EA ... NOP × 2 04 00 NOP $00 36 00 ROL $00,X \ × 3 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
17 bytes | |
EA ... NOP × 2 4C xx xx JMP *+3 36 00 ROL $00,X \ × 3 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
22 bytes | |
18 ... CLC × 20 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 20 50 00 BVC *+2 |
Clobbers V |
EA ... NOP × 20 85 xx STA @zptemp |
Requires @zptemp |
EA ... NOP × 20 04 00 NOP $00 |
Requires support for unofficial opcodes |
23 bytes | |
EA ... NOP × 20 4C xx xx JMP *+3 |
Not relocatable code |
44 cycles
5 bytes | |
---|---|
A9 LDA #17 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A0 88 LDY #136 ;hides 'DEY' EA NOP 88 DEY 30 FB BMI *-3 |
Clobbers Y, and Z&N |
A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC 10 FB BPL *-3 |
Clobbers A, Z&N, and C |
48 PHA A2 08 LDX #8 CA DEX D0 FB BNE *-3 |
Clobbers X, S, and Z&N; and writes in stack |
7 bytes | |
A6 00 LDX $00 A2 08 LDX #8 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
08 PHP A9 LDA #10 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #10 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
00 00 BRK 0 08 PHP A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 28 PLP |
Clobbers A; requires dummy interrupt handler; and writes in stack |
00 00 BRK 0 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 68 PLA |
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack |
E6 xx INC @zptemp 00 00... BRK 0 × 3 |
Clobbers Z&N; requires @zptemp, and dummy interrupt handler; and writes in stack |
48 PHA 08 PHP A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 10 FC BPL *-2 28 PLP |
Clobbers A, and S; and writes in stack |
48 PHA 08 PHP A0 88 LDY #136 ;hides 'DEY' 88 DEY 30 FC BMI *-2 28 PLP |
Clobbers Y, and S; and writes in stack |
48 ... PHA × 2 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 10 FC BPL *-2 68 PLA |
Clobbers S, Z&N, and C; and writes in stack |
EA NOP 48 PHA 00 00... BRK 0 × 3 |
Clobbers S; requires dummy interrupt handler; and writes in stack |
9 bytes | |
08 PHP A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 10 FC BPL *-2 28 PLP |
Clobbers A; and writes in stack |
08 PHP A2 04 LDX #4 EA ... NOP × 2 CA DEX D0 F9 BNE *-5 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 04 LDY #4 EA ... NOP × 2 88 DEY D0 F9 BNE *-5 28 PLP |
Clobbers Y; and writes in stack |
C5 00 CMP $00 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 10 FC BPL *-2 68 PLA |
Clobbers Z&N, and C; and writes in stack |
20 xx xx JSR @rts14 20 xx xx JSR @rts15× 2 |
Requires @rts14, and @rts15; and writes in stack |
48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only 00 00 BRK 0 10 FA BPL *-4 68 PLA |
Clobbers Z&N; requires dummy interrupt handler; and writes in stack |
18 CLC 90 00 BCC *+2 00 00... BRK 0 × 3 |
Clobbers C; requires dummy interrupt handler; and writes in stack |
B8 CLV 50 00 BVC *+2 00 00... BRK 0 × 3 |
Clobbers V; requires dummy interrupt handler; and writes in stack |
EA ... NOP × 2 00 00... BRK 0 × 2 20 xx xx JSR @rts14 |
Requires dummy interrupt handler, and @rts14; and writes in stack |
EA NOP 85 xx STA @zptemp 00 00... BRK 0 × 3 |
Requires @zptemp, and dummy interrupt handler; and writes in stack |
EA NOP 04 00 NOP $00 00 00... BRK 0 × 3 |
Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack |
08 PHP 48 PHA A9 LDA #3 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP \ × 2 28 PLP / 20 xx xx JSR @rts15× 2 |
Requires @rts15; and writes in stack |
EA NOP 20 xx xx JSR @rts14× 3 |
Requires @rts14; and writes in stack |
EA ... NOP × 2 08 PHP \ × 2 28 PLP / 00 00... BRK 0 × 2 |
Requires dummy interrupt handler; and writes in stack |
48 ... PHA × 2 08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 68 PLA 28 PLP |
Clobbers S; and writes in stack |
11 bytes | |
08 PHP 48 PHA 18 ... CLC × 3 A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 68 PLA 28 PLP |
Writes in stack |
68 ... PLA × 11 |
Clobbers A, S, and Z&N |
13 bytes | |
EA NOP 68 PLA \ × 6 48 PHA / |
Clobbers A, and Z&N |
16 bytes | |
26 00 ROL $00 \ × 2 66 00 ROR $00 / 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / |
Clobbers Z&N |
22 bytes | |
EA ... NOP × 22 |
No requirements |
45 cycles
5 bytes | |
---|---|
A9 LDA #18 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
68 PLA A0 08 LDY #8 88 DEY D0 FB BNE *-3 |
Clobbers A, Y, S, and Z&N |
68 PLA A2 08 LDX #8 CA DEX D0 FB BNE *-3 |
Clobbers A, X, S, and Z&N |
EA NOP 68 PLA A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 |
Clobbers A, S, Z&N, and C |
7 bytes | |
EA NOP A2 06 LDX #6 EA NOP CA DEX D0 FA BNE *-4 |
Clobbers X, and Z&N |
EA NOP A0 06 LDY #6 EA NOP 88 DEY D0 FA BNE *-4 |
Clobbers Y, and Z&N |
18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 90 FC BCC *-2 |
Clobbers A, Z&N, and C |
08 PHP A9 LDA #11 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #11 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
08 PHP 38 SEC A9 69 LDA #$69 ;hides 'ADC #$EA' EA NOP ;first loop only 10 FA BPL *-4 28 PLP |
Clobbers A; and writes in stack |
EA NOP 08 PHP A2 07 LDX #7 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
EA NOP 08 PHP A0 07 LDY #7 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$EA' EA NOP ;first loop only 10 FA BPL *-4 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
48 ... PHA × 2 00 00... BRK 0 × 3 |
Clobbers S; requires dummy interrupt handler; and writes in stack |
9 bytes | |
08 PHP 48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 90 FD BCC *-1 68 PLA 28 PLP |
Writes in stack |
12 bytes | |
EA NOP 68 ... PLA × 10 48 PHA |
Clobbers A, S, and Z&N |
14 bytes | |
68 PLA \ × 3 48 PHA / 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / |
Clobbers A, and Z&N |
16 bytes | |
EA ... NOP × 2 E6 xx INC @zptemp 36 00 ROL $00,X \ × 3 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
17 bytes | |
EA ... NOP × 3 C5 00 CMP $00 36 00 ROL $00,X \ × 3 76 00 ROR $00,X / |
Clobbers Z&N, and C |
EA ... NOP × 3 24 00 BIT $00 36 00 ROL $00,X \ × 3 76 00 ROR $00,X / |
Clobbers Z&N, and V |
EA ... NOP × 3 04 00 NOP $00 36 00 ROL $00,X \ × 3 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
18 bytes | |
EA ... NOP × 3 4C xx xx JMP *+3 36 00 ROL $00,X \ × 3 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
23 bytes | |
18 ... CLC × 21 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 21 50 00 BVC *+2 |
Clobbers V |
EA ... NOP × 21 85 xx STA @zptemp |
Requires @zptemp |
EA ... NOP × 21 04 00 NOP $00 |
Requires support for unofficial opcodes |
24 bytes | |
EA ... NOP × 21 4C xx xx JMP *+3 |
Not relocatable code |
46 cycles
5 bytes | |
---|---|
A0 09 LDY #9 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A2 09 LDX #9 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A9 LDA #19 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
08 PHP A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 28 PLP |
Clobbers A; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 68 PLA |
Clobbers Z&N, and C; and writes in stack |
68 PLA 48 PHA A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 |
Clobbers A, Z&N, and C |
8 bytes | |
08 PHP 28 PLP 00 00... BRK 0 × 3 |
Requires dummy interrupt handler; and writes in stack |
48 PHA 08 PHP A2 07 LDX #7 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X, and S; and writes in stack |
48 PHA 08 PHP A0 07 LDY #7 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y, and S; and writes in stack |
9 bytes | |
08 PHP A4 00 LDY $00 A0 07 LDY #7 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A6 00 LDX $00 A2 07 LDX #7 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
08 PHP 48 PHA A9 LDA #5 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
EA NOP 20 xx xx JSR @rts14 20 xx xx JSR @rts15× 2 |
Requires @rts14, and @rts15; and writes in stack |
48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only 20 xx xx JSR @rts14 10 F9 BPL *-5 68 PLA |
Clobbers Z&N; requires @rts14; and writes in stack |
11 bytes | |
08 PHP 48 PHA A9 2A LDA #$2A ;hides 'ROL A' EA ... NOP × 2 18 CLC 10 FA BPL *-4 68 PLA 28 PLP |
Writes in stack |
12 bytes | |
EA NOP 68 ... PLA × 11 |
Clobbers A, S, and Z&N |
14 bytes | |
EA ... NOP × 2 68 PLA \ × 6 48 PHA / |
Clobbers A, and Z&N |
16 bytes | |
26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X \ × 3 76 00 ROR $00,X / |
Clobbers Z&N |
23 bytes | |
EA ... NOP × 23 |
No requirements |
47 cycles
5 bytes | |
---|---|
A9 LDA #20 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
68 ... PLA × 2 A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 |
Clobbers A, S, Z&N, and C |
7 bytes | |
BA TSX 68 PLA 9A TXS A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 |
Clobbers A, X, Z&N, and C |
00 00 BRK 0 A0 88 LDY #136 ;hides 'DEY' 88 DEY 30 FC BMI *-2 |
Clobbers Y, and Z&N; requires dummy interrupt handler; and writes in stack |
00 00 BRK 0 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 10 FC BPL *-2 |
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack |
48 ... PHA × 2 A2 08 LDX #8 CA DEX D0 FB BNE *-3 |
Clobbers X, S, and Z&N; and writes in stack |
48 ... PHA × 2 A0 08 LDY #8 88 DEY D0 FB BNE *-3 |
Clobbers Y, S, and Z&N; and writes in stack |
EA NOP 68 PLA A0 08 LDY #8 88 DEY D0 FB BNE *-3 |
Clobbers A, Y, S, and Z&N |
EA NOP 68 PLA A2 08 LDX #8 CA DEX D0 FB BNE *-3 |
Clobbers A, X, S, and Z&N |
08 PHP A9 LDA #13 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #13 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
EA ... NOP × 2 A2 06 LDX #6 EA NOP CA DEX D0 FA BNE *-4 |
Clobbers X, and Z&N |
EA ... NOP × 2 A0 06 LDY #6 EA NOP 88 DEY D0 FA BNE *-4 |
Clobbers Y, and Z&N |
08 PHP A0 05 LDY #5 ;hides 'ORA zp' EA NOP 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers A, and Y; and writes in stack |
08 PHP A2 05 LDX #5 ;hides 'ORA zp' EA NOP CA DEX D0 FB BNE *-3 28 PLP |
Clobbers A, and X; and writes in stack |
A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC 10 FB BPL *-3 |
Clobbers A, Z&N, and C |
68 PLA 08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$2A' 2A ROL A ;first loop only B0 FC BCS *-2 28 PLP |
Clobbers A, S, and Z&N; and writes in stack |
9 bytes | |
EA NOP 08 PHP 38 SEC A9 69 LDA #$69 ;hides 'ADC #$EA' EA NOP ;first loop only 10 FA BPL *-4 28 PLP |
Clobbers A; and writes in stack |
EA ... NOP × 2 08 PHP A0 07 LDY #7 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
EA ... NOP × 2 08 PHP A2 07 LDX #7 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
EA NOP 48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$EA' EA NOP ;first loop only 10 FA BPL *-4 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
08 PHP 28 PLP 00 00... BRK 0 × 2 20 xx xx JSR @rts14 |
Requires dummy interrupt handler, and @rts14; and writes in stack |
48 ... PHA × 3 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 10 FC BPL *-2 68 PLA |
Clobbers S, Z&N, and C; and writes in stack |
EA NOP 48 ... PHA × 2 00 00... BRK 0 × 3 |
Clobbers S; requires dummy interrupt handler; and writes in stack |
08 PHP 48 PHA A9 LDA #6 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP 48 PHA 18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' 90 FD BCC *-1 68 PLA 28 PLP |
Writes in stack |
12 bytes | |
68 ... PLA × 11 48 PHA |
Clobbers A, S, and Z&N |
14 bytes | |
68 PLA \ × 5 48 PHA / 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers A, and Z&N |
17 bytes | |
EA ... NOP × 3 E6 xx INC @zptemp 36 00 ROL $00,X \ × 3 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
18 bytes | |
C5 00 CMP $00 26 00 ROL $00 \ × 2 66 00 ROR $00 / 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / |
Clobbers Z&N, and C |
24 00 BIT $00 26 00 ROL $00 \ × 2 66 00 ROR $00 / 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / |
Clobbers Z&N, and V |
04 00 NOP $00 26 00 ROL $00 \ × 2 66 00 ROR $00 / 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
19 bytes | |
4C xx xx JMP *+3 26 00 ROL $00 \ × 2 66 00 ROR $00 / 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
24 bytes | |
18 ... CLC × 22 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 22 50 00 BVC *+2 |
Clobbers V |
EA ... NOP × 22 85 xx STA @zptemp |
Requires @zptemp |
EA ... NOP × 22 04 00 NOP $00 |
Requires support for unofficial opcodes |
25 bytes | |
EA ... NOP × 22 4C xx xx JMP *+3 |
Not relocatable code |
48 cycles
5 bytes | |
---|---|
A9 LDA #21 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
EA NOP A2 09 LDX #9 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
EA NOP A0 09 LDY #9 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
7 bytes | |
08 PHP 18 CLC A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 28 PLP |
Clobbers A; and writes in stack |
08 PHP A0 08 LDY #8 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 08 LDX #8 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 68 PLA |
Clobbers Z&N, and C; and writes in stack |
EA NOP 68 PLA 48 PHA A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 |
Clobbers A, Z&N, and C |
9 bytes | |
08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 10 FC BPL *-2 68 PLA 28 PLP |
Writes in stack |
12 bytes | |
68 ... PLA × 12 |
Clobbers A, S, and Z&N |
15 bytes | |
EA ... NOP × 3 68 PLA \ × 6 48 PHA / |
Clobbers A, and Z&N |
16 bytes | |
36 00 ROL $00,X \ × 4 76 00 ROR $00,X / |
Clobbers Z&N |
24 bytes | |
EA ... NOP × 24 |
No requirements |
49 cycles
4 bytes | |
---|---|
A0 88 LDY #136 ;hides 'DEY' 30 FD BMI *-1 |
Clobbers Y, and Z&N |
5 bytes | |
A9 LDA #22 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A2 06 LDX #6 48 PHA CA DEX D0 FA BNE *-4 |
Clobbers X, S, and Z&N; and writes in stack |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 48 PHA 90 FC BCC *-2 |
Clobbers A, S, Z&N, and C; and writes in stack |
7 bytes | |
A6 00 LDX $00 A2 09 LDX #9 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
18 CLC A9 2A LDA #$2A ;hides 'ROL A' 08 PHP 28 PLP 90 FB BCC *-3 |
Clobbers A, Z&N, and C; and writes in stack |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 24 00 BIT $00 90 FB BCC *-3 |
Clobbers A, Z&N, C, and V |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp 90 FB BCC *-3 |
Clobbers A, Z&N, and C; and requires @zptemp |
48 PHA 08 PHP A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 28 PLP |
Clobbers A, and S; and writes in stack |
48 ... PHA × 2 A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 68 PLA |
Clobbers S, Z&N, and C; and writes in stack |
EA NOP 68 ... PLA × 2 A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 |
Clobbers A, S, Z&N, and C |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 90 FB BCC *-3 |
Clobbers A, Z&N, and C; and requires support for unofficial opcodes |
08 PHP A9 LDA #15 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #15 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
08 PHP A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 28 PLP |
Clobbers A; and writes in stack |
C5 00 CMP $00 48 PHA A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 68 PLA |
Clobbers Z&N, and C; and writes in stack |
26 00 ROL $00 66 00 ROR $00 A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 |
Clobbers A, Z&N, and C |
9 bytes | |
48 ... PHA × 2 08 PHP A2 07 LDX #7 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X, and S; and writes in stack |
48 ... PHA × 2 08 PHP A0 07 LDY #7 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y, and S; and writes in stack |
48 PHA 08 PHP 28 PLP 00 00... BRK 0 × 3 |
Clobbers S; requires dummy interrupt handler; and writes in stack |
08 PHP 48 PHA A9 LDA #8 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP 48 PHA A9 2A LDA #$2A ;hides 'ROL A' 08 PHP 28 PLP 10 FB BPL *-3 68 PLA 28 PLP |
Writes in stack |
13 bytes | |
EA NOP 68 ... PLA × 11 48 PHA |
Clobbers A, S, and Z&N |
14 bytes | |
68 PLA \ × 7 48 PHA / |
Clobbers A, and Z&N |
18 bytes | |
C5 00 CMP $00 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X \ × 3 76 00 ROR $00,X / |
Clobbers Z&N, and C |
24 00 BIT $00 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X \ × 3 76 00 ROR $00,X / |
Clobbers Z&N, and V |
E6 xx INC @zptemp 26 00 ROL $00 \ × 2 66 00 ROR $00 / 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
04 00 NOP $00 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X \ × 3 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
19 bytes | |
4C xx xx JMP *+3 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X \ × 3 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
25 bytes | |
18 ... CLC × 23 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 23 50 00 BVC *+2 |
Clobbers V |
EA ... NOP × 23 85 xx STA @zptemp |
Requires @zptemp |
EA ... NOP × 23 04 00 NOP $00 |
Requires support for unofficial opcodes |
26 bytes | |
EA ... NOP × 23 4C xx xx JMP *+3 |
Not relocatable code |
50 cycles
5 bytes | |
---|---|
A9 LDA #23 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A2 07 LDX #7 EA NOP CA DEX D0 FA BNE *-4 |
Clobbers X, and Z&N |
A0 07 LDY #7 EA NOP 88 DEY D0 FA BNE *-4 |
Clobbers Y, and Z&N |
A9 E9 LDA #$E9 ;hides 'SBC #$2A' 2A ROL A ;first loop only EA NOP B0 FB BCS *-3 |
Clobbers A, Z&N, C, and V |
7 bytes | |
A9 2A LDA #$2A ;hides 'ROL A' 20 xx xx JSR @rts12 10 FA BPL *-4 |
Clobbers A, Z&N, and C; requires @rts12; and writes in stack |
68 PLA 08 PHP A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 28 PLP |
Clobbers A, S, and Z&N; and writes in stack |
68 ... PLA × 2 48 PHA A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 |
Clobbers A, S, Z&N, and C |
08 PHP A9 LDA #16 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #16 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
08 PHP 18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA NOP 90 FC BCC *-2 28 PLP |
Clobbers A; and writes in stack |
08 PHP A0 06 LDY #6 EA NOP 88 DEY D0 FA BNE *-4 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 06 LDX #6 EA NOP CA DEX D0 FA BNE *-4 28 PLP |
Clobbers X; and writes in stack |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA NOP 90 FC BCC *-2 68 PLA |
Clobbers Z&N, and C; and writes in stack |
EA ... NOP × 2 68 PLA 48 PHA A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 |
Clobbers A, Z&N, and C |
9 bytes | |
08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$2A' 2A ROL A ;first loop only B0 FC BCS *-2 68 PLA 28 PLP |
Writes in stack |
13 bytes | |
EA NOP 68 ... PLA × 12 |
Clobbers A, S, and Z&N |
15 bytes | |
68 PLA 48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 8 10 F4 BPL *-10 |
Clobbers A, and Z&N |
17 bytes | |
EA NOP 36 00 ROL $00,X \ × 4 76 00 ROR $00,X / |
Clobbers Z&N |
25 bytes | |
EA ... NOP × 25 |
No requirements |
51 cycles
5 bytes | |
---|---|
A0 0A LDY #10 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A2 0A LDX #10 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 30 FC BMI *-2 |
Clobbers A, Z&N, C, and V |
7 bytes | |
20 xx xx JSR @rts12 A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 |
Clobbers A, Z&N, and C; requires @rts12; and writes in stack |
68 ... PLA × 3 A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 |
Clobbers A, S, Z&N, and C |
08 PHP A9 LDA #17 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #17 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
08 PHP A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC 10 FB BPL *-3 28 PLP |
Clobbers A; and writes in stack |
08 PHP A0 88 LDY #136 ;hides 'DEY' EA NOP 88 DEY 30 FB BMI *-3 28 PLP |
Clobbers Y; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC 10 FB BPL *-3 68 PLA |
Clobbers Z&N, and C; and writes in stack |
36 00 ROL $00,X 76 00 ROR $00,X A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 |
Clobbers A, Z&N, and C |
48 PHA 08 PHP A2 08 LDX #8 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X, and S; and writes in stack |
9 bytes | |
08 PHP A6 00 LDX $00 A2 08 LDX #8 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
20 xx xx JSR @rts12 00 00... BRK 0 × 3 |
Requires dummy interrupt handler, and @rts12; and writes in stack |
08 PHP 48 PHA A9 LDA #10 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
00 00 BRK 0 08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 68 PLA 28 PLP |
Requires dummy interrupt handler; and writes in stack |
48 PHA 08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 10 FC BPL *-2 68 PLA 28 PLP |
Clobbers S; and writes in stack |
11 bytes | |
08 PHP C5 00 CMP $00 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 10 FC BPL *-2 68 PLA 28 PLP |
Writes in stack |
13 bytes | |
68 ... PLA × 12 48 PHA |
Clobbers A, S, and Z&N |
15 bytes | |
EA NOP 68 PLA \ × 7 48 PHA / |
Clobbers A, and Z&N |
18 bytes | |
C5 00 CMP $00 36 00 ROL $00,X \ × 4 76 00 ROR $00,X / |
Clobbers Z&N, and C |
24 00 BIT $00 36 00 ROL $00,X \ × 4 76 00 ROR $00,X / |
Clobbers Z&N, and V |
E6 xx INC @zptemp 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X \ × 3 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
04 00 NOP $00 36 00 ROL $00,X \ × 4 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
19 bytes | |
4C xx xx JMP *+3 36 00 ROL $00,X \ × 4 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
26 bytes | |
18 ... CLC × 24 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 24 50 00 BVC *+2 |
Clobbers V |
EA ... NOP × 24 85 xx STA @zptemp |
Requires @zptemp |
EA ... NOP × 24 04 00 NOP $00 |
Requires support for unofficial opcodes |
27 bytes | |
EA ... NOP × 24 4C xx xx JMP *+3 |
Not relocatable code |
52 cycles
5 bytes | |
---|---|
48 PHA A0 88 LDY #136 ;hides 'DEY' 30 FD BMI *-1 |
Clobbers Y, S, and Z&N; and writes in stack |
A9 LDA #25 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A4 00 LDY $00 A0 88 LDY #136 ;hides 'DEY' 30 FD BMI *-1 |
Clobbers Y, and Z&N |
00 00 BRK 0 A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 |
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack |
7 bytes | |
EA NOP A2 07 LDX #7 EA NOP CA DEX D0 FA BNE *-4 |
Clobbers X, and Z&N |
38 SEC A9 69 LDA #$69 ;hides 'ADC #$EA' EA NOP ;first loop only EA NOP 10 F9 BPL *-5 |
Clobbers A, Z&N, C, and V |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 48 PHA 90 FC BCC *-2 |
Clobbers A, S, Z&N, and C; and writes in stack |
08 PHP A9 LDA #18 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #18 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
18 CLC A9 2A LDA #$2A ;hides 'ROL A' 20 xx xx JSR @rts12 10 FA BPL *-4 |
Clobbers A, Z&N, and C; requires @rts12; and writes in stack |
00 00... BRK 0 × 4 |
Requires dummy interrupt handler; and writes in stack |
48 ... PHA × 2 08 PHP A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 28 PLP |
Clobbers A, and S; and writes in stack |
48 ... PHA × 3 A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 68 PLA |
Clobbers S, Z&N, and C; and writes in stack |
EA NOP 68 ... PLA × 2 48 PHA A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 |
Clobbers A, S, Z&N, and C |
9 bytes | |
08 PHP 18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 90 FC BCC *-2 28 PLP |
Clobbers A; and writes in stack |
EA NOP 08 PHP A2 06 LDX #6 EA NOP CA DEX D0 FA BNE *-4 28 PLP |
Clobbers X; and writes in stack |
EA NOP 08 PHP A0 06 LDY #6 EA NOP 88 DEY D0 FA BNE *-4 28 PLP |
Clobbers Y; and writes in stack |
48 PHA 18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 90 FC BCC *-2 68 PLA |
Clobbers Z&N, and C; and writes in stack |
18 CLC A9 4A LDA #$4A ;hides 'LSR A' 36 00 ROL $00,X 76 00 ROR $00,X 90 F9 BCC *-5 |
Clobbers A, Z&N, and C |
08 PHP 48 PHA A9 LDA #11 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP 48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$EA' EA NOP ;first loop only 10 FA BPL *-4 68 PLA 28 PLP |
Writes in stack |
13 bytes | |
68 ... PLA × 13 |
Clobbers A, S, and Z&N |
16 bytes | |
68 PLA \ × 4 48 PHA / 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / |
Clobbers A, and Z&N |
18 bytes | |
EA ... NOP × 2 36 00 ROL $00,X \ × 4 76 00 ROR $00,X / |
Clobbers Z&N |
26 bytes | |
EA ... NOP × 26 |
No requirements |
53 cycles
5 bytes | |
---|---|
68 PLA A0 88 LDY #136 ;hides 'DEY' 30 FD BMI *-1 |
Clobbers A, Y, S, and Z&N |
A9 LDA #26 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
EA NOP A2 0A LDX #10 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
EA NOP A0 0A LDY #10 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 30 FA BMI *-4 |
Clobbers A, Z&N, C, and V |
A9 2A LDA #$2A ;hides 'ROL A' 00 00 BRK 0 10 FB BPL *-3 |
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack |
7 bytes | |
08 PHP A2 09 LDX #9 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 09 LDY #9 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
20 xx xx JSR @rts14 A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 |
Clobbers A, Z&N, and C; requires @rts14; and writes in stack |
68 PLA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 48 PHA 90 FC BCC *-2 |
Clobbers A, S, Z&N, and C; and writes in stack |
08 PHP A9 LDA #19 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #19 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 68 PLA 28 PLP |
Writes in stack |
68 PLA \ × 2 48 PHA / A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 |
Clobbers A, Z&N, and C |
14 bytes | |
EA NOP 68 ... PLA × 12 48 PHA |
Clobbers A, S, and Z&N |
16 bytes | |
EA ... NOP × 2 68 PLA \ × 7 48 PHA / |
Clobbers A, and Z&N |
18 bytes | |
E6 xx INC @zptemp 36 00 ROL $00,X \ × 4 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
19 bytes | |
EA NOP C5 00 CMP $00 36 00 ROL $00,X \ × 4 76 00 ROR $00,X / |
Clobbers Z&N, and C |
EA NOP 24 00 BIT $00 36 00 ROL $00,X \ × 4 76 00 ROR $00,X / |
Clobbers Z&N, and V |
EA NOP 04 00 NOP $00 36 00 ROL $00,X \ × 4 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
20 bytes | |
EA NOP 4C xx xx JMP *+3 36 00 ROL $00,X \ × 4 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
27 bytes | |
18 ... CLC × 25 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 25 50 00 BVC *+2 |
Clobbers V |
EA ... NOP × 25 85 xx STA @zptemp |
Requires @zptemp |
EA ... NOP × 25 04 00 NOP $00 |
Requires support for unofficial opcodes |
28 bytes | |
EA ... NOP × 25 4C xx xx JMP *+3 |
Not relocatable code |
54 cycles
5 bytes | |
---|---|
A9 LDA #27 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
E6 xx INC @zptemp A0 88 LDY #136 ;hides 'DEY' 30 FD BMI *-1 |
Clobbers Y, and Z&N; and requires @zptemp |
48 PHA A2 0A LDX #10 CA DEX D0 FB BNE *-3 |
Clobbers X, S, and Z&N; and writes in stack |
48 PHA A0 0A LDY #10 88 DEY D0 FB BNE *-3 |
Clobbers Y, S, and Z&N; and writes in stack |
A0 88 LDY #136 ;hides 'DEY' 68 PLA 88 DEY 30 FB BMI *-3 |
Clobbers A, Y, S, and Z&N |
A9 0A LDA #$0A ;hides 'ASL A' 48 ... PHA × 2 10 FB BPL *-3 |
Clobbers A, S, Z&N, and C; and writes in stack |
7 bytes | |
A6 00 LDX $00 A2 0A LDX #10 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A4 00 LDY $00 A0 0A LDY #10 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 2 18 CLC 10 FA BPL *-4 |
Clobbers A, Z&N, and C |
08 PHP A9 LDA #20 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #20 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
68 ... PLA × 2 08 PHP A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 28 PLP |
Clobbers A, S, and Z&N; and writes in stack |
9 bytes | |
08 PHP BA TSX 68 PLA 9A TXS A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 28 PLP |
Clobbers A, and X; and writes in stack |
EA NOP 00 00... BRK 0 × 4 |
Requires dummy interrupt handler; and writes in stack |
EA NOP 48 ... PHA × 2 08 PHP A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 28 PLP |
Clobbers A, and S; and writes in stack |
48 ... PHA × 2 08 PHP A0 08 LDY #8 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y, and S; and writes in stack |
48 ... PHA × 2 08 PHP A2 08 LDX #8 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X, and S; and writes in stack |
EA NOP 48 ... PHA × 3 A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 68 PLA |
Clobbers S, Z&N, and C; and writes in stack |
08 PHP 48 PHA A9 LDA #13 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC 10 FB BPL *-3 28 PLP |
Clobbers A; and writes in stack |
EA ... NOP × 2 08 PHP A0 06 LDY #6 EA NOP 88 DEY D0 FA BNE *-4 28 PLP |
Clobbers Y; and writes in stack |
EA ... NOP × 2 08 PHP A2 06 LDX #6 EA NOP CA DEX D0 FA BNE *-4 28 PLP |
Clobbers X; and writes in stack |
C5 00 CMP $00 48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC 10 FB BPL *-3 68 PLA |
Clobbers Z&N, and C; and writes in stack |
11 bytes | |
EA NOP 08 PHP 48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$EA' EA NOP ;first loop only 10 FA BPL *-4 68 PLA 28 PLP |
Writes in stack |
14 bytes | |
EA NOP 68 ... PLA × 13 |
Clobbers A, S, and Z&N |
16 bytes | |
68 PLA \ × 6 48 PHA / 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers A, and Z&N |
19 bytes | |
EA ... NOP × 3 36 00 ROL $00,X \ × 4 76 00 ROR $00,X / |
Clobbers Z&N |
27 bytes | |
EA ... NOP × 27 |
No requirements |
55 cycles
5 bytes | |
---|---|
A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 |
Clobbers A, Z&N, and C |
A0 F8 LDY #248 ;hides 'SED' C8 INY D0 FC BNE *-2 |
Clobbers Y, Z&N, and D |
A2 F8 LDX #248 ;hides 'SED' E8 INX D0 FC BNE *-2 |
Clobbers X, Z&N, and D |
6 bytes | |
48 ... PHA × 2 A0 88 LDY #136 ;hides 'DEY' 30 FD BMI *-1 |
Clobbers Y, S, and Z&N; and writes in stack |
A0 06 LDY #6 68 PLA 88 DEY D0 FA BNE *-4 |
Clobbers A, Y, S, and Z&N |
A2 06 LDX #6 68 PLA CA DEX D0 FA BNE *-4 |
Clobbers A, X, S, and Z&N |
7 bytes | |
A0 06 LDY #6 EA ... NOP × 2 88 DEY D0 F9 BNE *-5 |
Clobbers Y, and Z&N |
A2 06 LDX #6 EA ... NOP × 2 CA DEX D0 F9 BNE *-5 |
Clobbers X, and Z&N |
08 PHP A9 LDA #21 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #21 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
EA NOP 08 PHP A0 09 LDY #9 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
EA NOP 08 PHP A2 09 LDX #9 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
9 bytes | |
08 PHP 48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 68 PLA 28 PLP |
Writes in stack |
14 bytes | |
68 ... PLA × 13 48 PHA |
Clobbers A, S, and Z&N |
16 bytes | |
A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 11 10 F1 BPL *-13 |
Clobbers A, and Z&N |
19 bytes | |
EA NOP E6 xx INC @zptemp 36 00 ROL $00,X \ × 4 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
20 bytes | |
EA ... NOP × 2 C5 00 CMP $00 36 00 ROL $00,X \ × 4 76 00 ROR $00,X / |
Clobbers Z&N, and C |
EA ... NOP × 2 24 00 BIT $00 36 00 ROL $00,X \ × 4 76 00 ROR $00,X / |
Clobbers Z&N, and V |
EA ... NOP × 2 04 00 NOP $00 36 00 ROL $00,X \ × 4 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
21 bytes | |
EA ... NOP × 2 4C xx xx JMP *+3 36 00 ROL $00,X \ × 4 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
28 bytes | |
18 ... CLC × 26 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 26 50 00 BVC *+2 |
Clobbers V |
EA ... NOP × 26 85 xx STA @zptemp |
Requires @zptemp |
EA ... NOP × 26 04 00 NOP $00 |
Requires support for unofficial opcodes |
29 bytes | |
EA ... NOP × 26 4C xx xx JMP *+3 |
Not relocatable code |
56 cycles
5 bytes | |
---|---|
A0 0B LDY #11 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A2 0B LDX #11 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A9 LDA #29 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
08 PHP A0 88 LDY #136 ;hides 'DEY' 30 FD BMI *-1 28 PLP |
Clobbers Y; and writes in stack |
7 bytes | |
A9 2A LDA #$2A ;hides 'ROL A' 20 xx xx JSR @rts14 10 FA BPL *-4 |
Clobbers A, Z&N, and C; requires @rts14; and writes in stack |
E6 xx INC @zptemp A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 30 FC BMI *-2 |
Clobbers A, Z&N, C, and V; and requires @zptemp |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 48 ... PHA × 2 10 FB BPL *-3 |
Clobbers A, S, Z&N, and C; and writes in stack |
08 PHP A9 LDA #22 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #22 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 2 18 CLC 10 FA BPL *-4 |
Clobbers A, Z&N, and C |
48 PHA 08 PHP A2 09 LDX #9 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X, and S; and writes in stack |
9 bytes | |
08 PHP 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 24 00 BIT $00 90 FB BCC *-3 28 PLP |
Clobbers A; and writes in stack |
08 PHP A2 06 LDX #6 24 00 BIT $00 CA DEX D0 F9 BNE *-5 28 PLP |
Clobbers X; and writes in stack |
48 PHA 18 CLC A9 2A LDA #$2A ;hides 'ROL A' 08 PHP 28 PLP 90 FB BCC *-3 68 PLA |
Clobbers Z&N, and C; and writes in stack |
48 PHA 08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 68 PLA 28 PLP |
Clobbers S; and writes in stack |
08 PHP 48 PHA A9 LDA #15 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP C5 00 CMP $00 48 PHA A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 68 PLA 28 PLP |
Writes in stack |
14 bytes | |
68 ... PLA × 14 |
Clobbers A, S, and Z&N |
16 bytes | |
68 PLA \ × 8 48 PHA / |
Clobbers A, and Z&N |
20 bytes | |
26 00 ROL $00 \ × 2 66 00 ROR $00 / 36 00 ROL $00,X \ × 3 76 00 ROR $00,X / |
Clobbers Z&N |
28 bytes | |
EA ... NOP × 28 |
No requirements |
57 cycles
5 bytes | |
---|---|
A9 LDA #30 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A0 08 LDY #8 EA NOP 88 DEY D0 FA BNE *-4 |
Clobbers Y, and Z&N |
A2 08 LDX #8 EA NOP CA DEX D0 FA BNE *-4 |
Clobbers X, and Z&N |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 |
Clobbers A, Z&N, and C |
7 bytes | |
08 PHP A9 LDA #23 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #23 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$2A' 2A ROL A ;first loop only EA NOP B0 FB BCS *-3 28 PLP |
Clobbers A; and writes in stack |
08 PHP A0 07 LDY #7 EA NOP 88 DEY D0 FA BNE *-4 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 07 LDX #7 EA NOP CA DEX D0 FA BNE *-4 28 PLP |
Clobbers X; and writes in stack |
48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$2A' 2A ROL A ;first loop only EA NOP B0 FB BCS *-3 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
9 bytes | |
48 PHA A9 2A LDA #$2A ;hides 'ROL A' 20 xx xx JSR @rts12 10 FA BPL *-4 68 PLA |
Clobbers Z&N, and C; requires @rts12; and writes in stack |
08 PHP 48 PHA A9 LDA #16 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP 48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA NOP 90 FC BCC *-2 68 PLA 28 PLP |
Writes in stack |
15 bytes | |
EA NOP 68 ... PLA × 13 48 PHA |
Clobbers A, S, and Z&N |
17 bytes | |
EA NOP A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 11 10 F1 BPL *-13 |
Clobbers A, and Z&N |
20 bytes | |
EA ... NOP × 2 E6 xx INC @zptemp 36 00 ROL $00,X \ × 4 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
21 bytes | |
EA ... NOP × 3 C5 00 CMP $00 36 00 ROL $00,X \ × 4 76 00 ROR $00,X / |
Clobbers Z&N, and C |
EA ... NOP × 3 24 00 BIT $00 36 00 ROL $00,X \ × 4 76 00 ROR $00,X / |
Clobbers Z&N, and V |
EA ... NOP × 3 04 00 NOP $00 36 00 ROL $00,X \ × 4 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
22 bytes | |
EA ... NOP × 3 4C xx xx JMP *+3 36 00 ROL $00,X \ × 4 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
29 bytes | |
18 ... CLC × 27 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 27 50 00 BVC *+2 |
Clobbers V |
EA ... NOP × 27 85 xx STA @zptemp |
Requires @zptemp |
EA ... NOP × 27 04 00 NOP $00 |
Requires support for unofficial opcodes |
30 bytes | |
EA ... NOP × 27 4C xx xx JMP *+3 |
Not relocatable code |
58 cycles
5 bytes | |
---|---|
A9 LDA #31 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
EA NOP A2 0B LDX #11 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
EA NOP A0 0B LDY #11 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 |
Clobbers A, S, Z&N, and C; and writes in stack |
38 SEC A9 EB LDA #$EB ;hides 'SBC #$1A' 1A NOP ;first loop only B0 FA BCS *-4 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
7 bytes | |
08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 30 FC BMI *-2 28 PLP |
Clobbers A; and writes in stack |
08 PHP A2 0A LDX #10 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 0A LDY #10 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 |
Clobbers A, Z&N, and C |
48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 30 FC BMI *-2 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
9 bytes | |
20 xx xx JSR @rts12 48 PHA A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 68 PLA |
Clobbers Z&N, and C; requires @rts12; and writes in stack |
08 PHP 48 PHA A9 LDA #17 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC 10 FB BPL *-3 68 PLA 28 PLP |
Writes in stack |
15 bytes | |
EA NOP 68 ... PLA × 14 |
Clobbers A, S, and Z&N |
17 bytes | |
EA NOP 68 PLA \ × 8 48 PHA / |
Clobbers A, and Z&N |
20 bytes | |
26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X \ × 4 76 00 ROR $00,X / |
Clobbers Z&N |
29 bytes | |
EA ... NOP × 29 |
No requirements |
59 cycles
5 bytes | |
---|---|
A9 LDA #32 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 10 FB BPL *-3 |
Clobbers A, Z&N, and C; and writes in stack |
48 PHA A0 0B LDY #11 88 DEY D0 FB BNE *-3 |
Clobbers Y, S, and Z&N; and writes in stack |
48 PHA A2 0B LDX #11 CA DEX D0 FB BNE *-3 |
Clobbers X, S, and Z&N; and writes in stack |
68 PLA A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 |
Clobbers A, S, Z&N, and C |
68 PLA A0 F8 LDY #248 ;hides 'SED' C8 INY D0 FC BNE *-2 |
Clobbers A, Y, S, Z&N, and D |
68 PLA A2 F8 LDX #248 ;hides 'SED' E8 INX D0 FC BNE *-2 |
Clobbers A, X, S, Z&N, and D |
7 bytes | |
A4 00 LDY $00 A0 0B LDY #11 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A6 00 LDX $00 A2 0B LDX #11 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 |
Clobbers A, Z&N, and C |
48 PHA 08 PHP A0 88 LDY #136 ;hides 'DEY' 30 FD BMI *-1 28 PLP |
Clobbers Y, and S; and writes in stack |
08 PHP A9 LDA #25 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #25 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
08 PHP A4 00 LDY $00 A0 88 LDY #136 ;hides 'DEY' 30 FD BMI *-1 28 PLP |
Clobbers Y; and writes in stack |
00 00 BRK 0 08 PHP A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 28 PLP |
Clobbers A; requires dummy interrupt handler; and writes in stack |
00 00 BRK 0 48 PHA A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 68 PLA |
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack |
9 bytes | |
08 PHP 38 SEC A9 69 LDA #$69 ;hides 'ADC #$EA' EA NOP ;first loop only EA NOP 10 F9 BPL *-5 28 PLP |
Clobbers A; and writes in stack |
EA NOP 08 PHP A2 07 LDX #7 EA NOP CA DEX D0 FA BNE *-4 28 PLP |
Clobbers X; and writes in stack |
48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$EA' EA NOP ;first loop only EA NOP 10 F9 BPL *-5 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
08 PHP 48 PHA A9 LDA #18 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
48 PHA 18 CLC A9 2A LDA #$2A ;hides 'ROL A' 20 xx xx JSR @rts12 10 FA BPL *-4 68 PLA |
Clobbers Z&N, and C; requires @rts12; and writes in stack |
08 PHP 28 PLP 00 00... BRK 0 × 4 |
Requires dummy interrupt handler; and writes in stack |
48 ... PHA × 2 08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 68 PLA 28 PLP |
Clobbers S; and writes in stack |
11 bytes | |
08 PHP 48 PHA 18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 90 FC BCC *-2 68 PLA 28 PLP |
Writes in stack |
15 bytes | |
68 ... PLA × 14 48 PHA |
Clobbers A, S, and Z&N |
17 bytes | |
A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 12 10 F0 BPL *-14 |
Clobbers A, and Z&N |
21 bytes | |
EA ... NOP × 3 E6 xx INC @zptemp 36 00 ROL $00,X \ × 4 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
22 bytes | |
C5 00 CMP $00 26 00 ROL $00 \ × 2 66 00 ROR $00 / 36 00 ROL $00,X \ × 3 76 00 ROR $00,X / |
Clobbers Z&N, and C |
24 00 BIT $00 26 00 ROL $00 \ × 2 66 00 ROR $00 / 36 00 ROL $00,X \ × 3 76 00 ROR $00,X / |
Clobbers Z&N, and V |
04 00 NOP $00 26 00 ROL $00 \ × 2 66 00 ROR $00 / 36 00 ROL $00,X \ × 3 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
23 bytes | |
4C xx xx JMP *+3 26 00 ROL $00 \ × 2 66 00 ROR $00 / 36 00 ROL $00,X \ × 3 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
30 bytes | |
18 ... CLC × 28 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 28 50 00 BVC *+2 |
Clobbers V |
EA ... NOP × 28 85 xx STA @zptemp |
Requires @zptemp |
EA ... NOP × 28 04 00 NOP $00 |
Requires support for unofficial opcodes |
31 bytes | |
EA ... NOP × 28 4C xx xx JMP *+3 |
Not relocatable code |
60 cycles
5 bytes | |
---|---|
A9 LDA #33 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
68 PLA A2 0B LDX #11 CA DEX D0 FB BNE *-3 |
Clobbers A, X, S, and Z&N |
68 PLA A0 0B LDY #11 88 DEY D0 FB BNE *-3 |
Clobbers A, Y, S, and Z&N |
7 bytes | |
EA ... NOP × 2 A2 0B LDX #11 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
EA ... NOP × 2 A0 0B LDY #11 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
E6 xx INC @zptemp A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 |
Clobbers A, Z&N, and C; and requires @zptemp |
EA NOP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 |
Clobbers A, S, Z&N, and C; and writes in stack |
EA NOP 38 SEC A9 EB LDA #$EB ;hides 'SBC #$1A' 1A NOP ;first loop only B0 FA BCS *-4 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
08 PHP A9 LDA #26 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #26 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
08 PHP 18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 30 FA BMI *-4 28 PLP |
Clobbers A; and writes in stack |
EA NOP 08 PHP A0 0A LDY #10 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
EA NOP 08 PHP A2 0A LDX #10 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
EA NOP A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 |
Clobbers A, Z&N, and C |
48 PHA 18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 30 FA BMI *-4 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
48 PHA A9 2A LDA #$2A ;hides 'ROL A' 00 00 BRK 0 10 FB BPL *-3 68 PLA |
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack |
9 bytes | |
20 xx xx JSR @rts14 48 PHA A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 68 PLA |
Clobbers Z&N, and C; requires @rts14; and writes in stack |
08 PHP 48 PHA A9 LDA #19 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP 28 PLP 08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 68 PLA 28 PLP |
Writes in stack |
15 bytes | |
68 ... PLA × 15 |
Clobbers A, S, and Z&N |
18 bytes | |
EA ... NOP × 2 68 PLA \ × 8 48 PHA / |
Clobbers A, and Z&N |
20 bytes | |
36 00 ROL $00,X \ × 5 76 00 ROR $00,X / |
Clobbers Z&N |
30 bytes | |
EA ... NOP × 30 |
No requirements |
61 cycles
5 bytes | |
---|---|
A0 0C LDY #12 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A2 0C LDX #12 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A9 LDA #34 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
7 bytes | |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 10 FB BPL *-3 |
Clobbers A, Z&N, and C; and writes in stack |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' E6 xx INC @zptemp 90 FB BCC *-3 |
Clobbers A, Z&N, and C; and requires @zptemp |
EA NOP 68 PLA A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 |
Clobbers A, S, Z&N, and C |
08 PHP A9 LDA #27 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #27 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
18 ... CLC × 3 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 |
Clobbers A, Z&N, and C |
08 PHP E6 xx INC @zptemp A0 88 LDY #136 ;hides 'DEY' 30 FD BMI *-1 28 PLP |
Clobbers Y; requires @zptemp; and writes in stack |
48 PHA 08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 30 FC BMI *-2 28 PLP |
Clobbers A, and S; and writes in stack |
48 PHA 08 PHP A0 0A LDY #10 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y, and S; and writes in stack |
48 PHA 08 PHP A2 0A LDX #10 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X, and S; and writes in stack |
48 ... PHA × 2 A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 30 FC BMI *-2 68 PLA |
Clobbers S, Z&N, C, and V; and writes in stack |
9 bytes | |
08 PHP A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 2 18 CLC 10 FA BPL *-4 28 PLP |
Clobbers A; and writes in stack |
08 PHP A6 00 LDX $00 A2 0A LDX #10 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
08 PHP A4 00 LDY $00 A0 0A LDY #10 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 2 18 CLC 10 FA BPL *-4 68 PLA |
Clobbers Z&N, and C; and writes in stack |
08 PHP 48 PHA A9 LDA #20 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
11 bytes | |
EA NOP 08 PHP 28 PLP 00 00... BRK 0 × 4 |
Requires dummy interrupt handler; and writes in stack |
EA NOP 48 ... PHA × 2 08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 68 PLA 28 PLP |
Clobbers S; and writes in stack |
12 bytes | |
08 PHP C5 00 CMP $00 48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC 10 FB BPL *-3 68 PLA 28 PLP |
Writes in stack |
16 bytes | |
EA NOP 68 ... PLA × 14 48 PHA |
Clobbers A, S, and Z&N |
18 bytes | |
68 PLA \ × 7 48 PHA / 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers A, and Z&N |
22 bytes | |
C5 00 CMP $00 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X \ × 4 76 00 ROR $00,X / |
Clobbers Z&N, and C |
24 00 BIT $00 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X \ × 4 76 00 ROR $00,X / |
Clobbers Z&N, and V |
E6 xx INC @zptemp 26 00 ROL $00 \ × 2 66 00 ROR $00 / 36 00 ROL $00,X \ × 3 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
04 00 NOP $00 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X \ × 4 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
23 bytes | |
4C xx xx JMP *+3 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X \ × 4 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
31 bytes | |
18 ... CLC × 29 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 29 50 00 BVC *+2 |
Clobbers V |
EA ... NOP × 29 85 xx STA @zptemp |
Requires @zptemp |
EA ... NOP × 29 04 00 NOP $00 |
Requires support for unofficial opcodes |
32 bytes | |
EA ... NOP × 29 4C xx xx JMP *+3 |
Not relocatable code |
62 cycles
5 bytes | |
---|---|
A2 88 LDX #136 ;hides 'DEY' CA DEX 30 FC BMI *-2 |
Clobbers X, Y, and Z&N |
A9 LDA #35 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
00 00 BRK 0 A0 88 LDY #136 ;hides 'DEY' 30 FD BMI *-1 |
Clobbers Y, and Z&N; requires dummy interrupt handler; and writes in stack |
7 bytes | |
08 PHP A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 28 PLP |
Clobbers A; and writes in stack |
08 PHP A2 F8 LDX #248 ;hides 'SED' E8 INX D0 FC BNE *-2 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 F8 LDY #248 ;hides 'SED' C8 INY D0 FC BNE *-2 28 PLP |
Clobbers Y; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 68 PLA |
Clobbers Z&N, and C; and writes in stack |
68 PLA 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 |
Clobbers A, Z&N, and C |
68 PLA 48 PHA A2 F8 LDX #248 ;hides 'SED' E8 INX D0 FC BNE *-2 |
Clobbers A, X, Z&N, and D |
68 PLA 48 PHA A0 F8 LDY #248 ;hides 'SED' C8 INY D0 FC BNE *-2 |
Clobbers A, Y, Z&N, and D |
EA NOP 68 PLA A0 0B LDY #11 88 DEY D0 FB BNE *-3 |
Clobbers A, Y, S, and Z&N |
EA NOP 68 PLA A2 0B LDX #11 CA DEX D0 FB BNE *-3 |
Clobbers A, X, S, and Z&N |
8 bytes | |
EA ... NOP × 3 A2 0B LDX #11 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
EA ... NOP × 3 A0 0B LDY #11 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
9 bytes | |
08 PHP 48 PHA A9 LDA #21 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
11 bytes | |
EA NOP 08 PHP 28 PLP 08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 68 PLA 28 PLP |
Writes in stack |
16 bytes | |
EA NOP 68 ... PLA × 15 |
Clobbers A, S, and Z&N |
18 bytes | |
68 PLA 48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 11 10 F1 BPL *-13 |
Clobbers A, and Z&N |
21 bytes | |
EA NOP 36 00 ROL $00,X \ × 5 76 00 ROR $00,X / |
Clobbers Z&N |
31 bytes | |
EA ... NOP × 31 |
No requirements |
63 cycles
5 bytes | |
---|---|
A9 0A LDA #$0A ;hides 'ASL A' 48 PHA D0 FC BNE *-2 |
Clobbers A, S, Z&N, and C; and writes in stack |
A9 LDA #36 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
EA NOP A0 0C LDY #12 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
EA NOP A2 0C LDX #12 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp D0 FB BNE *-3 |
Clobbers A, Z&N, and C; and requires @zptemp |
A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 D0 FB BNE *-3 |
Clobbers A, Z&N, and C; and requires support for unofficial opcodes |
7 bytes | |
08 PHP A0 0B LDY #11 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 0B LDX #11 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
A9 0A LDA #$0A ;hides 'ASL A' 4C xx xx JMP *+3 D0 FA BNE *-4 |
Clobbers A, Z&N, and C; and not relocatable code |
38 SEC A9 0C LDA #12 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
68 ... PLA × 2 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 |
Clobbers A, S, Z&N, and C |
08 PHP A9 LDA #29 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #29 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 |
Clobbers A, Z&N, and C |
9 bytes | |
08 PHP A9 2A LDA #$2A ;hides 'ROL A' 20 xx xx JSR @rts14 10 FA BPL *-4 28 PLP |
Clobbers A; requires @rts14; and writes in stack |
48 PHA A9 2A LDA #$2A ;hides 'ROL A' 20 xx xx JSR @rts14 10 FA BPL *-4 68 PLA |
Clobbers Z&N, and C; requires @rts14; and writes in stack |
08 PHP E6 xx INC @zptemp A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 30 FC BMI *-2 28 PLP |
Clobbers A; requires @zptemp; and writes in stack |
E6 xx INC @zptemp 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 30 FC BMI *-2 68 PLA |
Clobbers Z&N, C, and V; requires @zptemp; and writes in stack |
A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only 00 00... BRK 0 × 2 10 F8 BPL *-6 |
Clobbers A, and Z&N; requires dummy interrupt handler; and writes in stack |
EA NOP 48 PHA 08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 30 FC BMI *-2 28 PLP |
Clobbers A, and S; and writes in stack |
EA NOP 48 ... PHA × 2 A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 30 FC BMI *-2 68 PLA |
Clobbers S, Z&N, C, and V; and writes in stack |
48 ... PHA × 2 A9 2A LDA #$2A ;hides 'ROL A' 00 00 BRK 0 10 FB BPL *-3 68 PLA |
Clobbers S, Z&N, and C; requires dummy interrupt handler; and writes in stack |
08 PHP 48 PHA A9 LDA #22 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP 18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 2 18 CLC 10 FA BPL *-4 28 PLP |
Clobbers A; and writes in stack |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 2 18 CLC 10 FA BPL *-4 68 PLA |
Clobbers Z&N, and C; and writes in stack |
11 bytes | |
08 PHP 48 PHA 18 CLC A9 2A LDA #$2A ;hides 'ROL A' 08 PHP 28 PLP 90 FB BCC *-3 68 PLA 28 PLP |
Writes in stack |
16 bytes | |
68 ... PLA × 15 48 PHA |
Clobbers A, S, and Z&N |
18 bytes | |
68 PLA \ × 9 48 PHA / |
Clobbers A, and Z&N |
22 bytes | |
C5 00 CMP $00 36 00 ROL $00,X \ × 5 76 00 ROR $00,X / |
Clobbers Z&N, and C |
24 00 BIT $00 36 00 ROL $00,X \ × 5 76 00 ROR $00,X / |
Clobbers Z&N, and V |
E6 xx INC @zptemp 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X \ × 4 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
04 00 NOP $00 36 00 ROL $00,X \ × 5 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
23 bytes | |
4C xx xx JMP *+3 36 00 ROL $00,X \ × 5 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
32 bytes | |
18 ... CLC × 30 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 30 50 00 BVC *+2 |
Clobbers V |
EA ... NOP × 30 85 xx STA @zptemp |
Requires @zptemp |
EA ... NOP × 30 04 00 NOP $00 |
Requires support for unofficial opcodes |
33 bytes | |
EA ... NOP × 30 4C xx xx JMP *+3 |
Not relocatable code |
64 cycles
5 bytes | |
---|---|
A9 LDA #37 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A0 09 LDY #9 EA NOP 88 DEY D0 FA BNE *-4 |
Clobbers Y, and Z&N |
A2 09 LDX #9 EA NOP CA DEX D0 FA BNE *-4 |
Clobbers X, and Z&N |
7 bytes | |
A9 E9 LDA #$E9 ;hides 'SBC #$2A' 2A ROL A ;first loop only EA ... NOP × 2 B0 FA BCS *-4 |
Clobbers A, Z&N, C, and V |
A9 0A LDA #$0A ;hides 'ASL A' 48 ... PHA × 2 18 CLC 10 FA BPL *-4 |
Clobbers A, S, Z&N, and C; and writes in stack |
08 PHP A9 LDA #30 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #30 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
08 PHP 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 28 PLP |
Clobbers A; and writes in stack |
08 PHP A2 08 LDX #8 EA NOP CA DEX D0 FA BNE *-4 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 08 LDY #8 EA NOP 88 DEY D0 FA BNE *-4 28 PLP |
Clobbers Y; and writes in stack |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 68 PLA |
Clobbers Z&N, and C; and writes in stack |
EA NOP 68 PLA 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 |
Clobbers A, Z&N, and C |
9 bytes | |
08 PHP 48 PHA A9 LDA #23 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$2A' 2A ROL A ;first loop only EA NOP B0 FB BCS *-3 68 PLA 28 PLP |
Writes in stack |
16 bytes | |
68 ... PLA × 16 |
Clobbers A, S, and Z&N |
19 bytes | |
EA NOP 68 PLA 48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 11 10 F1 BPL *-13 |
Clobbers A, and Z&N |
22 bytes | |
EA ... NOP × 2 36 00 ROL $00,X \ × 5 76 00 ROR $00,X / |
Clobbers Z&N |
32 bytes | |
EA ... NOP × 32 |
No requirements |
65 cycles
5 bytes | |
---|---|
A9 LDA #38 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A0 08 LDY #8 48 PHA 88 DEY D0 FA BNE *-4 |
Clobbers Y, S, and Z&N; and writes in stack |
A2 08 LDX #8 48 PHA CA DEX D0 FA BNE *-4 |
Clobbers X, S, and Z&N; and writes in stack |
68 PLA A0 0C LDY #12 88 DEY D0 FB BNE *-3 |
Clobbers A, Y, S, and Z&N |
68 PLA A2 0C LDX #12 CA DEX D0 FB BNE *-3 |
Clobbers A, X, S, and Z&N |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 48 PHA D0 FC BNE *-2 |
Clobbers A, S, Z&N, and C; and writes in stack |
7 bytes | |
EA ... NOP × 2 A2 0C LDX #12 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
EA ... NOP × 2 A0 0C LDY #12 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp D0 FB BNE *-3 |
Clobbers A, Z&N, and C; and requires @zptemp |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 D0 FB BNE *-3 |
Clobbers A, Z&N, and C; and requires support for unofficial opcodes |
08 PHP A9 LDA #31 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #31 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
EA NOP 08 PHP A2 0B LDX #11 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
EA NOP 08 PHP A0 0B LDY #11 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 4C xx xx JMP *+3 D0 FA BNE *-4 |
Clobbers A, Z&N, and C; and not relocatable code |
A9 2A LDA #$2A ;hides 'ROL A' 20 xx xx JSR @rts15 18 CLC 10 F9 BPL *-5 |
Clobbers A, Z&N, and C; requires @rts15; and writes in stack |
EA NOP 38 SEC A9 0C LDA #12 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
00 00... BRK 0 × 2 A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 |
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack |
48 PHA 08 PHP A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 28 PLP |
Clobbers A, and S; and writes in stack |
48 ... PHA × 2 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 68 PLA |
Clobbers S, Z&N, and C; and writes in stack |
EA NOP 68 ... PLA × 2 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 |
Clobbers A, S, Z&N, and C |
08 PHP 38 SEC A9 EB LDA #$EB ;hides 'SBC #$1A' 1A NOP ;first loop only B0 FA BCS *-4 28 PLP |
Clobbers A; requires support for unofficial opcodes; and writes in stack |
48 PHA 38 SEC A9 EB LDA #$EB ;hides 'SBC #$1A' 1A NOP ;first loop only B0 FA BCS *-4 68 PLA |
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
9 bytes | |
08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 30 FC BMI *-2 68 PLA 28 PLP |
Writes in stack |
26 00 ROL $00 66 00 ROR $00 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 |
Clobbers A, Z&N, and C |
17 bytes | |
EA NOP 68 ... PLA × 15 48 PHA |
Clobbers A, S, and Z&N |
19 bytes | |
EA NOP 68 PLA \ × 9 48 PHA / |
Clobbers A, and Z&N |
22 bytes | |
E6 xx INC @zptemp 36 00 ROL $00,X \ × 5 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
23 bytes | |
EA NOP C5 00 CMP $00 36 00 ROL $00,X \ × 5 76 00 ROR $00,X / |
Clobbers Z&N, and C |
EA NOP 24 00 BIT $00 36 00 ROL $00,X \ × 5 76 00 ROR $00,X / |
Clobbers Z&N, and V |
EA NOP 04 00 NOP $00 36 00 ROL $00,X \ × 5 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
24 bytes | |
EA NOP 4C xx xx JMP *+3 36 00 ROL $00,X \ × 5 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
33 bytes | |
18 ... CLC × 31 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 31 50 00 BVC *+2 |
Clobbers V |
EA ... NOP × 31 85 xx STA @zptemp |
Requires @zptemp |
EA ... NOP × 31 04 00 NOP $00 |
Requires support for unofficial opcodes |
34 bytes | |
EA ... NOP × 31 4C xx xx JMP *+3 |
Not relocatable code |
66 cycles
5 bytes | |
---|---|
A0 0D LDY #13 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A2 0D LDX #13 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A9 LDA #39 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 48 PHA D0 FC BNE *-2 |
Clobbers A, S, Z&N, and C; and writes in stack |
7 bytes | |
08 PHP A9 LDA #32 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #32 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
08 PHP A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 10 FB BPL *-3 28 PLP |
Clobbers A; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 10 FB BPL *-3 68 PLA |
Clobbers Z&N, and C; and writes in stack |
38 SEC A9 09 LDA #9 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 |
Clobbers A, Z&N, C, and V |
A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp D0 FB BNE *-3 |
Clobbers A, Z&N, and C; and requires @zptemp |
48 PHA 08 PHP A0 0B LDY #11 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y, and S; and writes in stack |
48 PHA 08 PHP A2 0B LDX #11 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X, and S; and writes in stack |
68 ... PLA × 2 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 |
Clobbers A, S, Z&N, and C |
04 00 NOP $00 A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 D0 FB BNE *-3 |
Clobbers A, Z&N, and C; and requires support for unofficial opcodes |
9 bytes | |
08 PHP A4 00 LDY $00 A0 0B LDY #11 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A6 00 LDX $00 A2 0B LDX #11 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
EA ... NOP × 2 68 PLA 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 |
Clobbers A, Z&N, and C |
08 PHP 48 PHA A9 LDA #25 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
00 00 BRK 0 08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 68 PLA 28 PLP |
Requires dummy interrupt handler; and writes in stack |
11 bytes | |
08 PHP 48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$EA' EA NOP ;first loop only EA NOP 10 F9 BPL *-5 68 PLA 28 PLP |
Writes in stack |
17 bytes | |
EA NOP 68 ... PLA × 16 |
Clobbers A, S, and Z&N |
19 bytes | |
68 PLA 48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 12 10 F0 BPL *-14 |
Clobbers A, and Z&N |
23 bytes | |
EA ... NOP × 3 36 00 ROL $00,X \ × 5 76 00 ROR $00,X / |
Clobbers Z&N |
33 bytes | |
EA ... NOP × 33 |
No requirements |
67 cycles
5 bytes | |
---|---|
A9 LDA #40 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
68 PLA A9 0A LDA #$0A ;hides 'ASL A' 48 PHA D0 FC BNE *-2 |
Clobbers A, S, Z&N, and C; and writes in stack |
7 bytes | |
BA TSX A9 0A LDA #$0A ;hides 'ASL A' 48 PHA D0 FC BNE *-2 9A TXS |
Clobbers A, X, Z&N, and C; and writes in stack |
E6 xx INC @zptemp A2 88 LDX #136 ;hides 'DEY' CA DEX 30 FC BMI *-2 |
Clobbers X, Y, and Z&N; and requires @zptemp |
A2 06 LDX #6 48 ... PHA × 2 CA DEX D0 F9 BNE *-5 |
Clobbers X, S, and Z&N; and writes in stack |
A0 06 LDY #6 48 ... PHA × 2 88 DEY D0 F9 BNE *-5 |
Clobbers Y, S, and Z&N; and writes in stack |
A0 06 LDY #6 EA NOP 68 PLA 88 DEY D0 F9 BNE *-5 |
Clobbers A, Y, S, and Z&N |
A2 06 LDX #6 EA NOP 68 PLA CA DEX D0 F9 BNE *-5 |
Clobbers A, X, S, and Z&N |
68 PLA A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp D0 FB BNE *-3 |
Clobbers A, S, Z&N, and C; and requires @zptemp |
68 PLA A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 D0 FB BNE *-3 |
Clobbers A, S, Z&N, and C; and requires support for unofficial opcodes |
08 PHP A9 LDA #33 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #33 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
A4 00 LDY $00 A0 09 LDY #9 EA NOP 88 DEY D0 FA BNE *-4 |
Clobbers Y, and Z&N |
A6 00 LDX $00 A2 09 LDX #9 EA NOP CA DEX D0 FA BNE *-4 |
Clobbers X, and Z&N |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 3 90 FA BCC *-4 |
Clobbers A, Z&N, and C |
9 bytes | |
8C TXA 48 PHA A2 0B LDX #11 CA DEX D0 FB BNE *-3 68 PLA AA TAX |
Clobbers A, and Z&N; and writes in stack |
EA ... NOP × 2 08 PHP A2 0B LDX #11 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
EA ... NOP × 2 08 PHP A0 0B LDY #11 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
08 PHP E6 xx INC @zptemp A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 28 PLP |
Clobbers A; requires @zptemp; and writes in stack |
E6 xx INC @zptemp 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 68 PLA |
Clobbers Z&N, and C; requires @zptemp; and writes in stack |
EA NOP 48 PHA 08 PHP A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 28 PLP |
Clobbers A, and S; and writes in stack |
EA NOP 48 ... PHA × 2 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 68 PLA |
Clobbers S, Z&N, and C; and writes in stack |
EA NOP 08 PHP 38 SEC A9 EB LDA #$EB ;hides 'SBC #$1A' 1A NOP ;first loop only B0 FA BCS *-4 28 PLP |
Clobbers A; requires support for unofficial opcodes; and writes in stack |
EA NOP 48 PHA 38 SEC A9 EB LDA #$EB ;hides 'SBC #$1A' 1A NOP ;first loop only B0 FA BCS *-4 68 PLA |
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
08 PHP 48 PHA A9 LDA #26 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP 48 PHA 18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 30 FA BMI *-4 68 PLA 28 PLP |
Writes in stack |
17 bytes | |
68 ... PLA × 16 48 PHA |
Clobbers A, S, and Z&N |
19 bytes | |
A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 14 10 EE BPL *-16 |
Clobbers A, and Z&N |
23 bytes | |
EA NOP E6 xx INC @zptemp 36 00 ROL $00,X \ × 5 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
24 bytes | |
EA ... NOP × 2 C5 00 CMP $00 36 00 ROL $00,X \ × 5 76 00 ROR $00,X / |
Clobbers Z&N, and C |
EA ... NOP × 2 24 00 BIT $00 36 00 ROL $00,X \ × 5 76 00 ROR $00,X / |
Clobbers Z&N, and V |
EA ... NOP × 2 04 00 NOP $00 36 00 ROL $00,X \ × 5 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
25 bytes | |
EA ... NOP × 2 4C xx xx JMP *+3 36 00 ROL $00,X \ × 5 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
34 bytes | |
18 ... CLC × 32 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 32 50 00 BVC *+2 |
Clobbers V |
EA ... NOP × 32 85 xx STA @zptemp |
Requires @zptemp |
EA ... NOP × 32 04 00 NOP $00 |
Requires support for unofficial opcodes |
35 bytes | |
EA ... NOP × 32 4C xx xx JMP *+3 |
Not relocatable code |
68 cycles
5 bytes | |
---|---|
A9 LDA #41 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
EA NOP A2 0D LDX #13 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
EA NOP A0 0D LDY #13 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
7 bytes | |
08 PHP A2 0C LDX #12 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 0C LDY #12 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
38 SEC A9 0D LDA #13 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
00 00 BRK 0 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 |
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack |
EA NOP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 48 PHA D0 FC BNE *-2 |
Clobbers A, S, Z&N, and C; and writes in stack |
08 PHP A9 LDA #34 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #34 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
E6 xx INC @zptemp A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp D0 FB BNE *-3 |
Clobbers A, Z&N, and C; and requires @zptemp |
9 bytes | |
08 PHP 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 10 FB BPL *-3 28 PLP |
Clobbers A; and writes in stack |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 10 FB BPL *-3 68 PLA |
Clobbers Z&N, and C; and writes in stack |
EA NOP 68 ... PLA × 2 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 |
Clobbers A, S, Z&N, and C |
EA NOP 04 00 NOP $00 A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 D0 FB BNE *-3 |
Clobbers A, Z&N, and C; and requires support for unofficial opcodes |
08 PHP 48 PHA A9 LDA #27 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC 10 FB BPL *-3 |
Clobbers A, Z&N, and C |
48 PHA 08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 30 FC BMI *-2 68 PLA 28 PLP |
Clobbers S; and writes in stack |
11 bytes | |
08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 2 18 CLC 10 FA BPL *-4 68 PLA 28 PLP |
Writes in stack |
17 bytes | |
68 ... PLA × 17 |
Clobbers A, S, and Z&N |
20 bytes | |
68 PLA \ × 8 48 PHA / 36 00 ROL $00,X 76 00 ROR $00,X |
Clobbers A, and Z&N |
24 bytes | |
26 00 ROL $00 \ × 2 66 00 ROR $00 / 36 00 ROL $00,X \ × 4 76 00 ROR $00,X / |
Clobbers Z&N |
34 bytes | |
EA ... NOP × 34 |
No requirements |
69 cycles
5 bytes | |
---|---|
A0 88 LDY #136 ;hides 'DEY' EA NOP 30 FC BMI *-2 |
Clobbers Y, and Z&N |
A2 0A LDX #10 ;hides 'ASL A' CA DEX D0 FC BNE *-2 |
Clobbers A, X, Z&N, and C |
A9 LDA #42 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
48 PHA A2 0D LDX #13 CA DEX D0 FB BNE *-3 |
Clobbers X, S, and Z&N; and writes in stack |
7 bytes | |
A6 00 LDX $00 A2 0D LDX #13 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
08 PHP A2 88 LDX #136 ;hides 'DEY' CA DEX 30 FC BMI *-2 28 PLP |
Clobbers X, and Y; and writes in stack |
A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 18 CLC 10 FA BPL *-4 |
Clobbers A, Z&N, and C; and writes in stack |
08 PHP A9 LDA #35 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #35 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
00 00 BRK 0 08 PHP A0 88 LDY #136 ;hides 'DEY' 30 FD BMI *-1 28 PLP |
Clobbers Y; requires dummy interrupt handler; and writes in stack |
EA NOP 68 PLA A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp D0 FB BNE *-3 |
Clobbers A, S, Z&N, and C; and requires @zptemp |
EA NOP 68 PLA A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 D0 FB BNE *-3 |
Clobbers A, S, Z&N, and C; and requires support for unofficial opcodes |
9 bytes | |
08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 68 PLA 28 PLP |
Writes in stack |
18 CLC A9 2A LDA #$2A ;hides 'ROL A' 36 00 ROL $00,X 76 00 ROR $00,X 90 F9 BCC *-5 |
Clobbers A, Z&N, and C |
18 bytes | |
EA NOP 68 ... PLA × 16 48 PHA |
Clobbers A, S, and Z&N |
20 bytes | |
EA NOP A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 14 10 EE BPL *-16 |
Clobbers A, and Z&N |
24 bytes | |
EA ... NOP × 2 E6 xx INC @zptemp 36 00 ROL $00,X \ × 5 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
25 bytes | |
EA ... NOP × 3 C5 00 CMP $00 36 00 ROL $00,X \ × 5 76 00 ROR $00,X / |
Clobbers Z&N, and C |
EA ... NOP × 3 24 00 BIT $00 36 00 ROL $00,X \ × 5 76 00 ROR $00,X / |
Clobbers Z&N, and V |
EA ... NOP × 3 04 00 NOP $00 36 00 ROL $00,X \ × 5 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
26 bytes | |
EA ... NOP × 3 4C xx xx JMP *+3 36 00 ROL $00,X \ × 5 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
35 bytes | |
18 ... CLC × 33 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 33 50 00 BVC *+2 |
Clobbers V |
EA ... NOP × 33 85 xx STA @zptemp |
Requires @zptemp |
EA ... NOP × 33 04 00 NOP $00 |
Requires support for unofficial opcodes |
36 bytes | |
EA ... NOP × 33 4C xx xx JMP *+3 |
Not relocatable code |
70 cycles
5 bytes | |
---|---|
A9 LDA #43 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
68 PLA A2 0D LDX #13 CA DEX D0 FB BNE *-3 |
Clobbers A, X, S, and Z&N |
68 PLA A0 0D LDY #13 88 DEY D0 FB BNE *-3 |
Clobbers A, Y, S, and Z&N |
7 bytes | |
EA ... NOP × 2 A0 0D LDY #13 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
EA ... NOP × 2 A2 0D LDX #13 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
48 PHA 68 PLA A9 0A LDA #$0A ;hides 'ASL A' 48 PHA D0 FC BNE *-2 |
Clobbers A, S, Z&N, and C; and writes in stack |
08 PHP A9 LDA #36 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #36 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
EA NOP 08 PHP A0 0C LDY #12 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
EA NOP 08 PHP A2 0C LDX #12 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
20 xx xx JSR @rts15 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 |
Clobbers A, Z&N, and C; requires @rts15; and writes in stack |
EA NOP 38 SEC A9 0D LDA #13 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
08 PHP A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp D0 FB BNE *-3 28 PLP |
Clobbers A; requires @zptemp; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp D0 FB BNE *-3 68 PLA |
Clobbers Z&N, and C; requires @zptemp; and writes in stack |
68 PLA 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp D0 FB BNE *-3 |
Clobbers A, Z&N, and C; and requires @zptemp |
EA NOP 00 00 BRK 0 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 |
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack |
08 PHP A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 D0 FB BNE *-3 28 PLP |
Clobbers A; requires support for unofficial opcodes; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 D0 FB BNE *-3 68 PLA |
Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack |
68 PLA 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 D0 FB BNE *-3 |
Clobbers A, Z&N, and C; and requires support for unofficial opcodes |
9 bytes | |
08 PHP 38 SEC A9 0C LDA #12 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 4C xx xx JMP *+3 D0 FA BNE *-4 68 PLA |
Clobbers Z&N, and C; writes in stack; and not relocatable code |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 90 FD BCC *-1 A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 |
Clobbers A, Z&N, and C |
48 PHA 38 SEC A9 0C LDA #12 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
08 PHP 48 PHA A9 LDA #29 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 68 PLA |
Clobbers Z&N, and C; and writes in stack |
11 bytes | |
08 PHP 48 PHA A9 2A LDA #$2A ;hides 'ROL A' 20 xx xx JSR @rts14 10 FA BPL *-4 68 PLA 28 PLP |
Requires @rts14; and writes in stack |
08 PHP E6 xx INC @zptemp 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 30 FC BMI *-2 68 PLA 28 PLP |
Requires @zptemp; and writes in stack |
48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only 00 00... BRK 0 × 2 10 F8 BPL *-6 68 PLA |
Clobbers Z&N; requires dummy interrupt handler; and writes in stack |
EA NOP 48 PHA 08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 30 FC BMI *-2 68 PLA 28 PLP |
Clobbers S; and writes in stack |
12 bytes | |
08 PHP 48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 2 18 CLC 10 FA BPL *-4 68 PLA 28 PLP |
Writes in stack |
18 bytes | |
EA NOP 68 ... PLA × 17 |
Clobbers A, S, and Z&N |
20 bytes | |
68 PLA \ × 10 48 PHA / |
Clobbers A, and Z&N |
24 bytes | |
26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X \ × 5 76 00 ROR $00,X / |
Clobbers Z&N |
35 bytes | |
EA ... NOP × 35 |
No requirements |
71 cycles
5 bytes | |
---|---|
A2 0E LDX #14 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A0 0E LDY #14 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A9 LDA #44 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 |
Clobbers A, Z&N, and C |
7 bytes | |
08 PHP A9 LDA #37 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #37 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
08 PHP A0 09 LDY #9 EA NOP 88 DEY D0 FA BNE *-4 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 09 LDX #9 EA NOP CA DEX D0 FA BNE *-4 28 PLP |
Clobbers X; and writes in stack |
9 bytes | |
08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$2A' 2A ROL A ;first loop only EA ... NOP × 2 B0 FA BCS *-4 28 PLP |
Clobbers A; and writes in stack |
48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$2A' 2A ROL A ;first loop only EA ... NOP × 2 B0 FA BCS *-4 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
08 PHP 48 PHA A9 LDA #30 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP 48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 68 PLA 28 PLP |
Writes in stack |
18 bytes | |
68 ... PLA × 17 48 PHA |
Clobbers A, S, and Z&N |
20 bytes | |
A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 15 10 ED BPL *-17 |
Clobbers A, and Z&N |
25 bytes | |
EA ... NOP × 3 E6 xx INC @zptemp 36 00 ROL $00,X \ × 5 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
26 bytes | |
C5 00 CMP $00 26 00 ROL $00 \ × 2 66 00 ROR $00 / 36 00 ROL $00,X \ × 4 76 00 ROR $00,X / |
Clobbers Z&N, and C |
24 00 BIT $00 26 00 ROL $00 \ × 2 66 00 ROR $00 / 36 00 ROL $00,X \ × 4 76 00 ROR $00,X / |
Clobbers Z&N, and V |
04 00 NOP $00 26 00 ROL $00 \ × 2 66 00 ROR $00 / 36 00 ROL $00,X \ × 4 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
27 bytes | |
4C xx xx JMP *+3 26 00 ROL $00 \ × 2 66 00 ROR $00 / 36 00 ROL $00,X \ × 4 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
36 bytes | |
18 ... CLC × 34 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 34 50 00 BVC *+2 |
Clobbers V |
EA ... NOP × 34 85 xx STA @zptemp |
Requires @zptemp |
EA ... NOP × 34 04 00 NOP $00 |
Requires support for unofficial opcodes |
37 bytes | |
EA ... NOP × 34 4C xx xx JMP *+3 |
Not relocatable code |
72 cycles
5 bytes | |
---|---|
A9 LDA #45 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
48 PHA A0 88 LDY #136 ;hides 'DEY' EA NOP 30 FC BMI *-2 |
Clobbers Y, S, and Z&N; and writes in stack |
48 PHA A2 0A LDX #10 ;hides 'ASL A' CA DEX D0 FC BNE *-2 |
Clobbers A, X, S, Z&N, and C; and writes in stack |
7 bytes | |
A4 00 LDY $00 A0 88 LDY #136 ;hides 'DEY' EA NOP 30 FC BMI *-2 |
Clobbers Y, and Z&N |
A6 00 LDX $00 A2 0A LDX #10 ;hides 'ASL A' CA DEX D0 FC BNE *-2 |
Clobbers A, X, Z&N, and C |
48 ... PHA × 2 A2 0D LDX #13 CA DEX D0 FB BNE *-3 |
Clobbers X, S, and Z&N; and writes in stack |
EA NOP 68 PLA A2 0D LDX #13 CA DEX D0 FB BNE *-3 |
Clobbers A, X, S, and Z&N |
08 PHP A9 LDA #38 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #38 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
EA ... NOP × 3 A2 0D LDX #13 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
00 00 BRK 0 A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 10 FB BPL *-3 |
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack |
48 PHA 08 PHP A2 88 LDX #136 ;hides 'DEY' CA DEX 30 FC BMI *-2 28 PLP |
Clobbers X, Y, and S; and writes in stack |
EA NOP 48 PHA 68 PLA A9 0A LDA #$0A ;hides 'ASL A' 48 PHA D0 FC BNE *-2 |
Clobbers A, S, Z&N, and C; and writes in stack |
68 PLA 38 SEC A9 0D LDA #13 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, S, Z&N, C, and V |
9 bytes | |
98 TYA 48 PHA A0 0C LDY #12 88 DEY D0 FB BNE *-3 68 PLA A8 TAY |
Clobbers A, and Z&N; and writes in stack |
08 PHP A0 08 LDY #8 C5 00 CMP $00 88 DEY D0 F9 BNE *-5 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 08 LDX #8 C5 00 CMP $00 CA DEX D0 F9 BNE *-5 28 PLP |
Clobbers X; and writes in stack |
EA ... NOP × 2 38 SEC A9 0D LDA #13 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
08 PHP 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp D0 FB BNE *-3 28 PLP |
Clobbers A; requires @zptemp; and writes in stack |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp D0 FB BNE *-3 68 PLA |
Clobbers Z&N, and C; requires @zptemp; and writes in stack |
EA NOP 68 PLA 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp D0 FB BNE *-3 |
Clobbers A, Z&N, and C; and requires @zptemp |
08 PHP 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 D0 FB BNE *-3 28 PLP |
Clobbers A; requires support for unofficial opcodes; and writes in stack |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 D0 FB BNE *-3 68 PLA |
Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack |
EA NOP 68 PLA 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 D0 FB BNE *-3 |
Clobbers A, Z&N, and C; and requires support for unofficial opcodes |
08 PHP 48 PHA A9 LDA #31 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
EA NOP 08 PHP 38 SEC A9 0C LDA #12 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 4C xx xx JMP *+3 D0 FA BNE *-4 68 PLA |
Clobbers Z&N, and C; writes in stack; and not relocatable code |
48 PHA A9 2A LDA #$2A ;hides 'ROL A' 20 xx xx JSR @rts15 18 CLC 10 F9 BPL *-5 68 PLA |
Clobbers Z&N, and C; requires @rts15; and writes in stack |
EA NOP 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 90 FD BCC *-1 A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 |
Clobbers A, Z&N, and C |
EA NOP 48 PHA 38 SEC A9 0C LDA #12 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
00 00... BRK 0 × 2 48 PHA A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 68 PLA |
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack |
48 PHA 08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 68 PLA 28 PLP |
Clobbers S; and writes in stack |
08 PHP 48 PHA 38 SEC A9 EB LDA #$EB ;hides 'SBC #$1A' 1A NOP ;first loop only B0 FA BCS *-4 68 PLA 28 PLP |
Requires support for unofficial opcodes; and writes in stack |
11 bytes | |
08 PHP 28 PLP 08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 30 FC BMI *-2 68 PLA 28 PLP |
Writes in stack |
18 bytes | |
68 ... PLA × 18 |
Clobbers A, S, and Z&N |
21 bytes | |
EA NOP 68 PLA \ × 10 48 PHA / |
Clobbers A, and Z&N |
24 bytes | |
36 00 ROL $00,X \ × 6 76 00 ROR $00,X / |
Clobbers Z&N |
36 bytes | |
EA ... NOP × 36 |
No requirements |
73 cycles
5 bytes | |
---|---|
A9 LDA #46 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
EA NOP A0 0E LDY #14 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
EA NOP A2 0E LDX #14 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only D0 FA BNE *-4 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
7 bytes | |
08 PHP A0 0D LDY #13 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 0D LDX #13 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 |
Clobbers A, Z&N, and C |
08 PHP A9 LDA #39 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #39 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
9 bytes | |
48 PHA 08 PHP A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp D0 FB BNE *-3 28 PLP |
Clobbers A, and S; requires @zptemp; and writes in stack |
48 ... PHA × 2 A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp D0 FB BNE *-3 68 PLA |
Clobbers S, Z&N, and C; requires @zptemp; and writes in stack |
48 PHA 08 PHP A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 D0 FB BNE *-3 28 PLP |
Clobbers A, and S; requires support for unofficial opcodes; and writes in stack |
48 ... PHA × 2 A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 D0 FB BNE *-3 68 PLA |
Clobbers S, Z&N, and C; requires support for unofficial opcodes; and writes in stack |
08 PHP 48 PHA A9 LDA #32 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 10 FB BPL *-3 68 PLA 28 PLP |
Writes in stack |
19 bytes | |
EA NOP 68 ... PLA × 17 48 PHA |
Clobbers A, S, and Z&N |
21 bytes | |
EA NOP A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 15 10 ED BPL *-17 |
Clobbers A, and Z&N |
26 bytes | |
C5 00 CMP $00 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X \ × 5 76 00 ROR $00,X / |
Clobbers Z&N, and C |
24 00 BIT $00 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X \ × 5 76 00 ROR $00,X / |
Clobbers Z&N, and V |
E6 xx INC @zptemp 26 00 ROL $00 \ × 2 66 00 ROR $00 / 36 00 ROL $00,X \ × 4 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
04 00 NOP $00 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X \ × 5 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
27 bytes | |
4C xx xx JMP *+3 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X \ × 5 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
37 bytes | |
18 ... CLC × 35 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 35 50 00 BVC *+2 |
Clobbers V |
EA ... NOP × 35 85 xx STA @zptemp |
Requires @zptemp |
EA ... NOP × 35 04 00 NOP $00 |
Requires support for unofficial opcodes |
38 bytes | |
EA ... NOP × 35 4C xx xx JMP *+3 |
Not relocatable code |
74 cycles
5 bytes | |
---|---|
A9 LDA #47 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
48 PHA A2 0E LDX #14 CA DEX D0 FB BNE *-3 |
Clobbers X, S, and Z&N; and writes in stack |
48 PHA A0 0E LDY #14 88 DEY D0 FB BNE *-3 |
Clobbers Y, S, and Z&N; and writes in stack |
7 bytes | |
A6 00 LDX $00 A2 0E LDX #14 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A4 00 LDY $00 A0 0E LDY #14 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 |
Clobbers A, S, Z&N, and C; and writes in stack |
08 PHP A9 LDA #40 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #40 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 |
Clobbers A, Z&N, and C |
9 bytes | |
08 PHP BA TSX A9 0A LDA #$0A ;hides 'ASL A' 48 PHA D0 FC BNE *-2 9A TXS 28 PLP |
Clobbers A, and X; and writes in stack |
08 PHP E6 xx INC @zptemp A2 88 LDX #136 ;hides 'DEY' CA DEX 30 FC BMI *-2 28 PLP |
Clobbers X, and Y; requires @zptemp; and writes in stack |
48 PHA 08 PHP A2 09 LDX #9 EA NOP CA DEX D0 FA BNE *-4 28 PLP |
Clobbers X, and S; and writes in stack |
48 PHA 08 PHP A0 09 LDY #9 EA NOP 88 DEY D0 FA BNE *-4 28 PLP |
Clobbers Y, and S; and writes in stack |
68 PLA 08 PHP A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp D0 FB BNE *-3 28 PLP |
Clobbers A, S, and Z&N; requires @zptemp; and writes in stack |
68 PLA 08 PHP A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 D0 FB BNE *-3 28 PLP |
Clobbers A, S, and Z&N; requires support for unofficial opcodes; and writes in stack |
08 PHP 48 PHA A9 LDA #33 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP 18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 3 90 FA BCC *-4 28 PLP |
Clobbers A; and writes in stack |
EA NOP 08 PHP A2 08 LDX #8 C5 00 CMP $00 CA DEX D0 F9 BNE *-5 28 PLP |
Clobbers X; and writes in stack |
EA NOP 08 PHP A0 08 LDY #8 C5 00 CMP $00 88 DEY D0 F9 BNE *-5 28 PLP |
Clobbers Y; and writes in stack |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 3 90 FA BCC *-4 68 PLA |
Clobbers Z&N, and C; and writes in stack |
11 bytes | |
48 PHA 8C TXA 48 PHA A2 0B LDX #11 CA DEX D0 FB BNE *-3 68 PLA AA TAX 68 PLA |
Clobbers Z&N; and writes in stack |
08 PHP E6 xx INC @zptemp 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 68 PLA 28 PLP |
Requires @zptemp; and writes in stack |
EA NOP 48 PHA 08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 68 PLA 28 PLP |
Clobbers S; and writes in stack |
EA NOP 08 PHP 48 PHA 38 SEC A9 EB LDA #$EB ;hides 'SBC #$1A' 1A NOP ;first loop only B0 FA BCS *-4 68 PLA 28 PLP |
Requires support for unofficial opcodes; and writes in stack |
12 bytes | |
EA NOP 08 PHP 28 PLP 08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 30 FC BMI *-2 68 PLA 28 PLP |
Writes in stack |
19 bytes | |
EA NOP 68 ... PLA × 18 |
Clobbers A, S, and Z&N |
21 bytes | |
68 PLA 48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 14 10 EE BPL *-16 |
Clobbers A, and Z&N |
25 bytes | |
EA NOP 36 00 ROL $00,X \ × 6 76 00 ROR $00,X / |
Clobbers Z&N |
37 bytes | |
EA ... NOP × 37 |
No requirements |
75 cycles
5 bytes | |
---|---|
A9 LDA #48 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
68 PLA A0 0E LDY #14 88 DEY D0 FB BNE *-3 |
Clobbers A, Y, S, and Z&N |
68 PLA A2 0E LDX #14 CA DEX D0 FB BNE *-3 |
Clobbers A, X, S, and Z&N |
7 bytes | |
EA ... NOP × 2 A2 0E LDX #14 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
EA ... NOP × 2 A0 0E LDY #14 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
68 PLA A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 |
Clobbers A, S, Z&N, and C |
EA NOP 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only D0 FA BNE *-4 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
08 PHP A9 LDA #41 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #41 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
EA NOP 08 PHP A2 0D LDX #13 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
EA NOP 08 PHP A0 0D LDY #13 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 |
Clobbers A, Z&N, and C |
9 bytes | |
08 PHP 38 SEC A9 0D LDA #13 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
48 PHA 38 SEC A9 0D LDA #13 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
00 00 BRK 0 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 68 PLA |
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack |
08 PHP 48 PHA A9 LDA #34 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
E6 xx INC @zptemp 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp D0 FB BNE *-3 68 PLA |
Clobbers Z&N, and C; requires @zptemp; and writes in stack |
EA NOP 48 ... PHA × 2 A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 D0 FB BNE *-3 68 PLA |
Clobbers S, Z&N, and C; requires support for unofficial opcodes; and writes in stack |
11 bytes | |
08 PHP 48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 10 FB BPL *-3 68 PLA 28 PLP |
Writes in stack |
19 bytes | |
68 ... PLA × 18 48 PHA |
Clobbers A, S, and Z&N |
21 bytes | |
A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 16 10 EC BPL *-18 |
Clobbers A, and Z&N |
26 bytes | |
C5 00 CMP $00 36 00 ROL $00,X \ × 6 76 00 ROR $00,X / |
Clobbers Z&N, and C |
24 00 BIT $00 36 00 ROL $00,X \ × 6 76 00 ROR $00,X / |
Clobbers Z&N, and V |
E6 xx INC @zptemp 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X \ × 5 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
04 00 NOP $00 36 00 ROL $00,X \ × 6 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
27 bytes | |
4C xx xx JMP *+3 36 00 ROL $00,X \ × 6 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
38 bytes | |
18 ... CLC × 36 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 36 50 00 BVC *+2 |
Clobbers V |
EA ... NOP × 36 85 xx STA @zptemp |
Requires @zptemp |
EA ... NOP × 36 04 00 NOP $00 |
Requires support for unofficial opcodes |
39 bytes | |
EA ... NOP × 36 4C xx xx JMP *+3 |
Not relocatable code |
76 cycles
5 bytes | |
---|---|
A0 0F LDY #15 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A2 0F LDX #15 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A9 E9 LDA #$E9 ;hides 'SBC #$08' 08 PHP ;first loop only 30 FC BMI *-2 |
Clobbers A, S, Z&N, C, and V; and writes in stack |
A9 LDA #49 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
7 bytes | |
08 PHP A0 88 LDY #136 ;hides 'DEY' EA NOP 30 FC BMI *-2 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 0A LDX #10 ;hides 'ASL A' CA DEX D0 FC BNE *-2 28 PLP |
Clobbers A, and X; and writes in stack |
00 00 BRK 0 A9 0A LDA #$0A ;hides 'ASL A' 48 PHA D0 FC BNE *-2 |
Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack |
08 PHP A9 LDA #42 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #42 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
E6 xx INC @zptemp A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 |
Clobbers A, Z&N, and C; and requires @zptemp |
48 PHA 08 PHP A2 0D LDX #13 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X, and S; and writes in stack |
EA NOP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 |
Clobbers A, S, Z&N, and C; and writes in stack |
04 00 NOP $00 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only D0 FA BNE *-4 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
00 00 BRK 0 A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 D0 FB BNE *-3 |
Clobbers A, Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack |
9 bytes | |
08 PHP A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 18 CLC 10 FA BPL *-4 28 PLP |
Clobbers A; and writes in stack |
08 PHP A6 00 LDX $00 A2 0D LDX #13 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 18 CLC 10 FA BPL *-4 68 PLA |
Clobbers Z&N, and C; and writes in stack |
EA NOP A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 |
Clobbers A, Z&N, and C |
08 PHP 48 PHA A9 LDA #35 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
11 bytes | |
08 PHP 28 PLP 08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 68 PLA 28 PLP |
Writes in stack |
19 bytes | |
68 ... PLA × 19 |
Clobbers A, S, and Z&N |
22 bytes | |
EA NOP 68 PLA 48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 14 10 EE BPL *-16 |
Clobbers A, and Z&N |
26 bytes | |
EA ... NOP × 2 36 00 ROL $00,X \ × 6 76 00 ROR $00,X / |
Clobbers Z&N |
38 bytes | |
EA ... NOP × 38 |
No requirements |
77 cycles
5 bytes | |
---|---|
A9 LDA #50 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
7 bytes | |
48 ... PHA × 2 A2 0E LDX #14 CA DEX D0 FB BNE *-3 |
Clobbers X, S, and Z&N; and writes in stack |
48 ... PHA × 2 A0 0E LDY #14 88 DEY D0 FB BNE *-3 |
Clobbers Y, S, and Z&N; and writes in stack |
EA NOP 68 PLA A0 0E LDY #14 88 DEY D0 FB BNE *-3 |
Clobbers A, Y, S, and Z&N |
EA NOP 68 PLA A2 0E LDX #14 CA DEX D0 FB BNE *-3 |
Clobbers A, X, S, and Z&N |
68 PLA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only D0 FA BNE *-4 |
Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes |
08 PHP A9 LDA #43 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #43 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
EA ... NOP × 3 A2 0E LDX #14 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
EA ... NOP × 3 A0 0E LDY #14 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
18 CLC A9 2A LDA #$2A ;hides 'ROL A' 20 xx xx JSR @rts14 90 FA BCC *-4 |
Clobbers A, Z&N, and C; requires @rts14; and writes in stack |
EA NOP 68 PLA A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 |
Clobbers A, S, Z&N, and C |
EA ... NOP × 2 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only D0 FA BNE *-4 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
9 bytes | |
8C TXA 48 PHA A2 0D LDX #13 CA DEX D0 FB BNE *-3 68 PLA AA TAX |
Clobbers A, and Z&N; and writes in stack |
EA ... NOP × 2 08 PHP A2 0D LDX #13 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
EA ... NOP × 2 08 PHP A0 0D LDY #13 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
18 ... CLC × 3 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 |
Clobbers A, Z&N, and C |
08 PHP 48 PHA A9 LDA #36 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
EA NOP 08 PHP 38 SEC A9 0D LDA #13 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
20 xx xx JSR @rts15 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 68 PLA |
Clobbers Z&N, and C; requires @rts15; and writes in stack |
EA NOP 48 PHA 38 SEC A9 0D LDA #13 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp D0 FB BNE *-3 68 PLA 28 PLP |
Requires @zptemp; and writes in stack |
EA NOP 00 00 BRK 0 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 68 PLA |
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack |
08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 D0 FB BNE *-3 68 PLA 28 PLP |
Requires support for unofficial opcodes; and writes in stack |
11 bytes | |
08 PHP 48 PHA 38 SEC A9 0C LDA #12 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
20 bytes | |
EA NOP 68 ... PLA × 18 48 PHA |
Clobbers A, S, and Z&N |
22 bytes | |
68 PLA \ × 11 48 PHA / |
Clobbers A, and Z&N |
26 bytes | |
E6 xx INC @zptemp 36 00 ROL $00,X \ × 6 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
27 bytes | |
EA NOP C5 00 CMP $00 36 00 ROL $00,X \ × 6 76 00 ROR $00,X / |
Clobbers Z&N, and C |
EA NOP 24 00 BIT $00 36 00 ROL $00,X \ × 6 76 00 ROR $00,X / |
Clobbers Z&N, and V |
EA NOP 04 00 NOP $00 36 00 ROL $00,X \ × 6 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
28 bytes | |
EA NOP 4C xx xx JMP *+3 36 00 ROL $00,X \ × 6 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
39 bytes | |
18 ... CLC × 37 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 37 50 00 BVC *+2 |
Clobbers V |
EA ... NOP × 37 85 xx STA @zptemp |
Requires @zptemp |
EA ... NOP × 37 04 00 NOP $00 |
Requires support for unofficial opcodes |
40 bytes | |
EA ... NOP × 37 4C xx xx JMP *+3 |
Not relocatable code |
78 cycles
5 bytes | |
---|---|
A9 LDA #51 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A0 0B LDY #11 EA NOP 88 DEY D0 FA BNE *-4 |
Clobbers Y, and Z&N |
A2 0B LDX #11 EA NOP CA DEX D0 FA BNE *-4 |
Clobbers X, and Z&N |
18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$08' 08 PHP ;first loop only 30 FA BMI *-4 |
Clobbers A, S, Z&N, C, and V; and writes in stack |
7 bytes | |
08 PHP A0 0E LDY #14 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 0E LDX #14 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
38 SEC A9 0F LDA #15 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
08 PHP A9 LDA #44 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #44 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
08 PHP A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 28 PLP |
Clobbers A; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 68 PLA |
Clobbers Z&N, and C; and writes in stack |
A9 0A LDA #$0A ;hides 'ASL A' \ × 2 D0 FD BNE *-1 / |
Clobbers A, Z&N, and C |
9 bytes | |
08 PHP 48 PHA A9 LDA #37 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
11 bytes | |
08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$2A' 2A ROL A ;first loop only EA ... NOP × 2 B0 FA BCS *-4 68 PLA 28 PLP |
Writes in stack |
20 bytes | |
EA NOP 68 ... PLA × 19 |
Clobbers A, S, and Z&N |
22 bytes | |
68 PLA 48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 15 10 ED BPL *-17 |
Clobbers A, and Z&N |
27 bytes | |
EA ... NOP × 3 36 00 ROL $00,X \ × 6 76 00 ROR $00,X / |
Clobbers Z&N |
39 bytes | |
EA ... NOP × 39 |
No requirements |
79 cycles
5 bytes | |
---|---|
A0 88 LDY #136 ;hides 'DEY' 48 PHA 30 FC BMI *-2 |
Clobbers Y, S, and Z&N; and writes in stack |
A9 LDA #52 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A0 88 LDY #136 ;hides 'DEY' A5 00 LDA $00 30 FB BMI *-3 |
Clobbers A, Y, and Z&N |
A0 88 LDY #136 ;hides 'DEY' A6 00 LDX $00 30 FB BMI *-3 |
Clobbers X, Y, and Z&N |
A0 88 LDY #136 ;hides 'DEY' C5 00 CMP $00 30 FB BMI *-3 |
Clobbers Y, Z&N, and C |
A0 88 LDY #136 ;hides 'DEY' 24 00 BIT $00 30 FB BMI *-3 |
Clobbers Y, Z&N, and V |
A0 88 LDY #136 ;hides 'DEY' 85 xx STA @zptemp 30 FB BMI *-3 |
Clobbers Y, and Z&N; and requires @zptemp |
48 PHA A2 0F LDX #15 CA DEX D0 FB BNE *-3 |
Clobbers X, S, and Z&N; and writes in stack |
A9 0A LDA #$0A ;hides 'ASL A' 48 PHA 18 CLC D0 FB BNE *-3 |
Clobbers A, S, Z&N, and C; and writes in stack |
A0 88 LDY #136 ;hides 'DEY' 04 00 NOP $00 30 FB BMI *-3 |
Clobbers Y, and Z&N; and requires support for unofficial opcodes |
7 bytes | |
A6 00 LDX $00 A2 0F LDX #15 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A4 00 LDY $00 A0 0F LDY #15 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A9 0A LDA #$0A ;hides 'ASL A' B8 CLV 50 00 BVC *+2 D0 FA BNE *-4 |
Clobbers A, Z&N, C, and V |
A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp 18 CLC D0 FA BNE *-4 |
Clobbers A, Z&N, and C; and requires @zptemp |
A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 18 CLC D0 FA BNE *-4 |
Clobbers A, Z&N, and C; and requires support for unofficial opcodes |
08 PHP A9 LDA #45 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #45 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' 4C xx xx JMP *+3 18 CLC D0 F9 BNE *-5 |
Clobbers A, Z&N, and C; and not relocatable code |
A9 0A LDA #$0A ;hides 'ASL A' EA NOP 08 PHP 28 PLP 18 CLC 10 F9 BPL *-5 |
Clobbers A, Z&N, and C; and writes in stack |
48 PHA 08 PHP A0 88 LDY #136 ;hides 'DEY' EA NOP 30 FC BMI *-2 28 PLP |
Clobbers Y, and S; and writes in stack |
48 PHA 08 PHP A2 0A LDX #10 ;hides 'ASL A' CA DEX D0 FC BNE *-2 28 PLP |
Clobbers A, X, and S; and writes in stack |
68 ... PLA × 2 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 |
Clobbers A, S, Z&N, and C |
9 bytes | |
08 PHP A4 00 LDY $00 A0 88 LDY #136 ;hides 'DEY' EA NOP 30 FC BMI *-2 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A6 00 LDX $00 A2 0A LDX #10 ;hides 'ASL A' CA DEX D0 FC BNE *-2 28 PLP |
Clobbers A, and X; and writes in stack |
A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 |
Clobbers A, Z&N, and C |
48 ... PHA × 2 08 PHP A2 0D LDX #13 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X, and S; and writes in stack |
08 PHP 48 PHA A9 LDA #38 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
EA NOP 8C TXA 48 PHA A2 0D LDX #13 CA DEX D0 FB BNE *-3 68 PLA AA TAX |
Clobbers A, and Z&N; and writes in stack |
EA ... NOP × 3 08 PHP A2 0D LDX #13 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
00 00 BRK 0 08 PHP A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 10 FB BPL *-3 28 PLP |
Clobbers A; requires dummy interrupt handler; and writes in stack |
00 00 BRK 0 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 10 FB BPL *-3 68 PLA |
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack |
48 PHA 08 PHP A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 18 CLC 10 FA BPL *-4 28 PLP |
Clobbers A, and S; and writes in stack |
48 ... PHA × 2 A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 18 CLC 10 FA BPL *-4 68 PLA |
Clobbers S, Z&N, and C; and writes in stack |
11 bytes | |
48 PHA 98 TYA 48 PHA A0 0C LDY #12 88 DEY D0 FB BNE *-3 68 PLA A8 TAY 68 PLA |
Clobbers Z&N; and writes in stack |
EA ... NOP × 2 08 PHP 38 SEC A9 0D LDA #13 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
08 PHP 48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp D0 FB BNE *-3 68 PLA 28 PLP |
Requires @zptemp; and writes in stack |
08 PHP 48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 D0 FB BNE *-3 68 PLA 28 PLP |
Requires support for unofficial opcodes; and writes in stack |
12 bytes | |
EA NOP 08 PHP 48 PHA 38 SEC A9 0C LDA #12 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
20 bytes | |
68 ... PLA × 19 48 PHA |
Clobbers A, S, and Z&N |
22 bytes | |
A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 17 10 EB BPL *-19 |
Clobbers A, and Z&N |
27 bytes | |
EA NOP E6 xx INC @zptemp 36 00 ROL $00,X \ × 6 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
28 bytes | |
EA ... NOP × 2 C5 00 CMP $00 36 00 ROL $00,X \ × 6 76 00 ROR $00,X / |
Clobbers Z&N, and C |
EA ... NOP × 2 24 00 BIT $00 36 00 ROL $00,X \ × 6 76 00 ROR $00,X / |
Clobbers Z&N, and V |
EA ... NOP × 2 04 00 NOP $00 36 00 ROL $00,X \ × 6 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
29 bytes | |
EA ... NOP × 2 4C xx xx JMP *+3 36 00 ROL $00,X \ × 6 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
40 bytes | |
18 ... CLC × 38 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 38 50 00 BVC *+2 |
Clobbers V |
EA ... NOP × 38 85 xx STA @zptemp |
Requires @zptemp |
EA ... NOP × 38 04 00 NOP $00 |
Requires support for unofficial opcodes |
80 cycles
5 bytes | |
---|---|
A9 LDA #53 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A2 88 LDX #136 ;hides 'DEY' EA NOP CA DEX 30 FB BMI *-3 |
Clobbers X, Y, and Z&N |
68 PLA A2 0F LDX #15 CA DEX D0 FB BNE *-3 |
Clobbers A, X, S, and Z&N |
68 PLA A0 0F LDY #15 88 DEY D0 FB BNE *-3 |
Clobbers A, Y, S, and Z&N |
68 PLA A9 E9 LDA #$E9 ;hides 'SBC #$08' 08 PHP ;first loop only 30 FC BMI *-2 |
Clobbers A, S, Z&N, C, and V; and writes in stack |
7 bytes | |
EA NOP A2 0B LDX #11 EA NOP CA DEX D0 FA BNE *-4 |
Clobbers X, and Z&N |
EA NOP A0 0B LDY #11 EA NOP 88 DEY D0 FA BNE *-4 |
Clobbers Y, and Z&N |
38 SEC A9 EB LDA #$EB ;hides 'SBC #$1A' 1A NOP ;first loop only EA NOP B0 F9 BCS *-5 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
08 PHP A9 LDA #46 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #46 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
EA NOP 08 PHP A0 0E LDY #14 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
EA NOP 08 PHP A2 0E LDX #14 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
38 SEC A9 0B LDA #11 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 |
Clobbers A, Z&N, C, and V |
68 PLA 00 00 BRK 0 A9 0A LDA #$0A ;hides 'ASL A' 48 PHA D0 FC BNE *-2 |
Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack |
08 PHP 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only D0 FA BNE *-4 28 PLP |
Clobbers A; requires support for unofficial opcodes; and writes in stack |
48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only D0 FA BNE *-4 68 PLA |
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
9 bytes | |
08 PHP 18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 28 PLP |
Clobbers A; and writes in stack |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 68 PLA |
Clobbers Z&N, and C; and writes in stack |
EA NOP A9 0A LDA #$0A ;hides 'ASL A' \ × 2 D0 FD BNE *-1 / |
Clobbers A, Z&N, and C |
08 PHP 48 PHA A9 LDA #39 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
11 bytes | |
48 PHA 08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp D0 FB BNE *-3 68 PLA 28 PLP |
Clobbers S; requires @zptemp; and writes in stack |
48 PHA 08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 D0 FB BNE *-3 68 PLA 28 PLP |
Clobbers S; requires support for unofficial opcodes; and writes in stack |
12 bytes | |
08 PHP 28 PLP 08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 10 FB BPL *-3 68 PLA 28 PLP |
Writes in stack |
20 bytes | |
68 ... PLA × 20 |
Clobbers A, S, and Z&N |
23 bytes | |
EA NOP 68 PLA 48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 15 10 ED BPL *-17 |
Clobbers A, and Z&N |
28 bytes | |
26 00 ROL $00 \ × 2 66 00 ROR $00 / 36 00 ROL $00,X \ × 5 76 00 ROR $00,X / |
Clobbers Z&N |
40 bytes | |
EA ... NOP × 40 |
No requirements |
81 cycles
5 bytes | |
---|---|
A0 10 LDY #16 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A2 10 LDX #16 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A9 LDA #54 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 48 PHA 30 FB BMI *-3 |
Clobbers A, S, Z&N, C, and V; and writes in stack |
7 bytes | |
A9 69 LDA #$69 ;hides 'ADC #$18' 18 CLC ;first loop only E6 xx INC @zptemp 90 FA BCC *-4 |
Clobbers A, Z&N, C, and V; and requires @zptemp |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 48 PHA 18 CLC D0 FB BNE *-3 |
Clobbers A, S, Z&N, and C; and writes in stack |
A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 04 00 NOP $00 30 FA BMI *-4 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
08 PHP A9 LDA #47 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #47 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
18 CLC A9 2A LDA #$2A ;hides 'ROL A' 20 xx xx JSR @rts15 90 FA BCC *-4 |
Clobbers A, Z&N, and C; requires @rts15; and writes in stack |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' B8 CLV 50 00 BVC *+2 D0 FA BNE *-4 |
Clobbers A, Z&N, C, and V |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp 18 CLC D0 FA BNE *-4 |
Clobbers A, Z&N, and C; and requires @zptemp |
18 CLC A9 2A LDA #$2A ;hides 'ROL A' EA NOP 00 00 BRK 0 90 FA BCC *-4 |
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack |
48 PHA 08 PHP A0 0E LDY #14 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y, and S; and writes in stack |
48 PHA 08 PHP A2 0E LDX #14 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X, and S; and writes in stack |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 18 CLC D0 FA BNE *-4 |
Clobbers A, Z&N, and C; and requires support for unofficial opcodes |
9 bytes | |
08 PHP A6 00 LDX $00 A2 0E LDX #14 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
08 PHP A4 00 LDY $00 A0 0E LDY #14 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 4C xx xx JMP *+3 18 CLC D0 F9 BNE *-5 |
Clobbers A, Z&N, and C; and not relocatable code |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA NOP 08 PHP 28 PLP 18 CLC 10 F9 BPL *-5 |
Clobbers A, Z&N, and C; and writes in stack |
48 PHA 08 PHP A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 28 PLP |
Clobbers A, and S; and writes in stack |
48 ... PHA × 2 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 68 PLA |
Clobbers S, Z&N, and C; and writes in stack |
EA NOP 68 ... PLA × 2 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 |
Clobbers A, S, Z&N, and C |
08 PHP 48 PHA A9 LDA #40 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 28 PLP |
Clobbers A; and writes in stack |
C5 00 CMP $00 48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 68 PLA |
Clobbers Z&N, and C; and writes in stack |
26 00 ROL $00 66 00 ROR $00 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 |
Clobbers A, Z&N, and C |
12 bytes | |
08 PHP 48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 3 90 FA BCC *-4 68 PLA 28 PLP |
Writes in stack |
21 bytes | |
EA NOP 68 ... PLA × 19 48 PHA |
Clobbers A, S, and Z&N |
23 bytes | |
EA NOP A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 17 10 EB BPL *-19 |
Clobbers A, and Z&N |
28 bytes | |
EA ... NOP × 2 E6 xx INC @zptemp 36 00 ROL $00,X \ × 6 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
29 bytes | |
EA ... NOP × 3 C5 00 CMP $00 36 00 ROL $00,X \ × 6 76 00 ROR $00,X / |
Clobbers Z&N, and C |
EA ... NOP × 3 24 00 BIT $00 36 00 ROL $00,X \ × 6 76 00 ROR $00,X / |
Clobbers Z&N, and V |
EA ... NOP × 3 04 00 NOP $00 36 00 ROL $00,X \ × 6 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
30 bytes | |
EA ... NOP × 3 4C xx xx JMP *+3 36 00 ROL $00,X \ × 6 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
82 cycles
5 bytes | |
---|---|
A9 LDA #55 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
48 PHA A0 88 LDY #136 ;hides 'DEY' 48 PHA 30 FC BMI *-2 |
Clobbers Y, S, and Z&N; and writes in stack |
A2 09 LDX #9 68 PLA CA DEX D0 FA BNE *-4 |
Clobbers A, X, S, and Z&N |
A0 09 LDY #9 68 PLA 88 DEY D0 FA BNE *-4 |
Clobbers A, Y, S, and Z&N |
7 bytes | |
A2 09 LDX #9 EA ... NOP × 2 CA DEX D0 F9 BNE *-5 |
Clobbers X, and Z&N |
A0 09 LDY #9 EA ... NOP × 2 88 DEY D0 F9 BNE *-5 |
Clobbers Y, and Z&N |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 48 PHA 18 CLC D0 FB BNE *-3 |
Clobbers A, S, Z&N, and C; and writes in stack |
08 PHP A9 LDA #48 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #48 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
68 PLA 38 SEC A9 0F LDA #15 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, S, Z&N, C, and V |
EA NOP 38 SEC A9 EB LDA #$EB ;hides 'SBC #$1A' 1A NOP ;first loop only EA NOP B0 F9 BCS *-5 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
9 bytes | |
98 TYA 48 PHA A0 0E LDY #14 88 DEY D0 FB BNE *-3 68 PLA A8 TAY |
Clobbers A, and Z&N; and writes in stack |
EA ... NOP × 2 08 PHP A0 0E LDY #14 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
EA ... NOP × 2 08 PHP A2 0E LDX #14 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
EA NOP 38 SEC A9 0B LDA #11 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 |
Clobbers A, Z&N, C, and V |
A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp 18 CLC D0 FA BNE *-4 |
Clobbers A, Z&N, and C; and requires @zptemp |
68 PLA A9 0A LDA #$0A ;hides 'ASL A' \ × 2 D0 FD BNE *-1 / |
Clobbers A, S, Z&N, and C |
EA NOP 08 PHP 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only D0 FA BNE *-4 28 PLP |
Clobbers A; requires support for unofficial opcodes; and writes in stack |
04 00 NOP $00 A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 18 CLC D0 FA BNE *-4 |
Clobbers A, Z&N, and C; and requires support for unofficial opcodes |
EA NOP 48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only D0 FA BNE *-4 68 PLA |
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
08 PHP 48 PHA A9 LDA #41 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP 18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 28 PLP |
Clobbers A; and writes in stack |
48 PHA 18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 68 PLA |
Clobbers Z&N, and C; and writes in stack |
EA ... NOP × 2 A9 0A LDA #$0A ;hides 'ASL A' \ × 2 D0 FD BNE *-1 / |
Clobbers A, Z&N, and C |
11 bytes | |
08 PHP 48 PHA 38 SEC A9 0D LDA #13 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
21 bytes | |
EA NOP 68 ... PLA × 20 |
Clobbers A, S, and Z&N |
23 bytes | |
68 PLA 48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 16 10 EC BPL *-18 |
Clobbers A, and Z&N |
28 bytes | |
26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X \ × 6 76 00 ROR $00,X / |
Clobbers Z&N |
83 cycles
5 bytes | |
---|---|
A9 LDA #56 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
EA NOP A2 10 LDX #16 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
EA NOP A0 10 LDY #16 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FA BPL *-4 |
Clobbers A, Z&N, C, V, and D |
7 bytes | |
08 PHP A0 0F LDY #15 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 0F LDX #15 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
38 SEC A9 10 LDA #16 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
68 PLA A9 0A LDA #$0A ;hides 'ASL A' 48 PHA 18 CLC D0 FB BNE *-3 |
Clobbers A, S, Z&N, and C; and writes in stack |
08 PHP A9 LDA #49 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #49 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
68 PLA A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp 18 CLC D0 FA BNE *-4 |
Clobbers A, S, Z&N, and C; and requires @zptemp |
68 PLA A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 18 CLC D0 FA BNE *-4 |
Clobbers A, S, Z&N, and C; and requires support for unofficial opcodes |
9 bytes | |
20 xx xx JSR @rts12 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 |
Clobbers A, Z&N, and C; requires @rts12; and writes in stack |
18 ... CLC × 2 A9 2A LDA #$2A ;hides 'ROL A' 20 xx xx JSR @rts15 90 FA BCC *-4 |
Clobbers A, Z&N, and C; requires @rts15; and writes in stack |
18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp 18 CLC D0 FA BNE *-4 |
Clobbers A, Z&N, and C; and requires @zptemp |
18 ... CLC × 2 A9 2A LDA #$2A ;hides 'ROL A' EA NOP 00 00 BRK 0 90 FA BCC *-4 |
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack |
68 ... PLA × 3 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 |
Clobbers A, S, Z&N, and C |
18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 18 CLC D0 FA BNE *-4 |
Clobbers A, Z&N, and C; and requires support for unofficial opcodes |
48 PHA 08 PHP 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only D0 FA BNE *-4 28 PLP |
Clobbers A, and S; requires support for unofficial opcodes; and writes in stack |
48 ... PHA × 2 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only D0 FA BNE *-4 68 PLA |
Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
08 PHP 48 PHA A9 LDA #42 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
36 00 ROL $00,X 76 00 ROR $00,X A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 |
Clobbers A, Z&N, and C |
08 PHP E6 xx INC @zptemp A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 28 PLP |
Clobbers A; requires @zptemp; and writes in stack |
E6 xx INC @zptemp 48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 68 PLA |
Clobbers Z&N, and C; requires @zptemp; and writes in stack |
EA NOP 48 PHA 08 PHP A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 28 PLP |
Clobbers A, and S; and writes in stack |
EA NOP 48 ... PHA × 2 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 68 PLA |
Clobbers S, Z&N, and C; and writes in stack |
04 00 NOP $00 08 PHP 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only D0 FA BNE *-4 28 PLP |
Clobbers A; requires support for unofficial opcodes; and writes in stack |
04 00 NOP $00 48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only D0 FA BNE *-4 68 PLA |
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
00 00 BRK 0 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 D0 FB BNE *-3 68 PLA |
Clobbers Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack |
11 bytes | |
08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 18 CLC 10 FA BPL *-4 68 PLA 28 PLP |
Writes in stack |
21 bytes | |
68 ... PLA × 20 48 PHA |
Clobbers A, S, and Z&N |
23 bytes | |
A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 18 10 EA BPL *-20 |
Clobbers A, and Z&N |
29 bytes | |
EA ... NOP × 3 E6 xx INC @zptemp 36 00 ROL $00,X \ × 6 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
30 bytes | |
C5 00 CMP $00 26 00 ROL $00 \ × 2 66 00 ROR $00 / 36 00 ROL $00,X \ × 5 76 00 ROR $00,X / |
Clobbers Z&N, and C |
24 00 BIT $00 26 00 ROL $00 \ × 2 66 00 ROR $00 / 36 00 ROL $00,X \ × 5 76 00 ROR $00,X / |
Clobbers Z&N, and V |
04 00 NOP $00 26 00 ROL $00 \ × 2 66 00 ROR $00 / 36 00 ROL $00,X \ × 5 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
31 bytes | |
4C xx xx JMP *+3 26 00 ROL $00 \ × 2 66 00 ROR $00 / 36 00 ROL $00,X \ × 5 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
84 cycles
5 bytes | |
---|---|
A9 LDA #57 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
48 PHA A2 10 LDX #16 CA DEX D0 FB BNE *-3 |
Clobbers X, S, and Z&N; and writes in stack |
48 PHA A0 10 LDY #16 88 DEY D0 FB BNE *-3 |
Clobbers Y, S, and Z&N; and writes in stack |
7 bytes | |
A6 00 LDX $00 A2 10 LDX #16 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A4 00 LDY $00 A0 10 LDY #16 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts12 10 FA BPL *-4 |
Clobbers A, Z&N, and C; requires @rts12; and writes in stack |
68 ... PLA × 2 A9 E9 LDA #$E9 ;hides 'SBC #$08' 08 PHP ;first loop only 30 FC BMI *-2 |
Clobbers A, S, Z&N, C, and V; and writes in stack |
08 PHP A9 LDA #50 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #50 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' 08 PHP E6 xx INC @zptemp 28 PLP 10 F9 BPL *-5 |
Clobbers A, Z&N, and C; requires @zptemp; and writes in stack |
00 00 BRK 0 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 |
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack |
EA NOP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 48 PHA 18 CLC D0 FB BNE *-3 |
Clobbers A, S, Z&N, and C; and writes in stack |
68 PLA 38 SEC A9 EB LDA #$EB ;hides 'SBC #$1A' 1A NOP ;first loop only EA NOP B0 F9 BCS *-5 |
Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes |
9 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 24 00 BIT $00 28 PLP 18 CLC 10 F8 BPL *-6 |
Clobbers A, Z&N, and C; and writes in stack |
38 SEC A9 09 LDA #9 EA ... NOP × 2 E9 01 SBC #1 D0 F7 BNE *-7 |
Clobbers A, Z&N, C, and V |
E6 xx INC @zptemp A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp 18 CLC D0 FA BNE *-4 |
Clobbers A, Z&N, and C; and requires @zptemp |
48 ... PHA × 2 08 PHP A0 0E LDY #14 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y, and S; and writes in stack |
48 ... PHA × 2 08 PHP A2 0E LDX #14 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X, and S; and writes in stack |
68 PLA 08 PHP 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only D0 FA BNE *-4 28 PLP |
Clobbers A, S, and Z&N; requires support for unofficial opcodes; and writes in stack |
08 PHP 48 PHA A9 LDA #43 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
EA NOP 98 TYA 48 PHA A0 0E LDY #14 88 DEY D0 FB BNE *-3 68 PLA A8 TAY |
Clobbers A, and Z&N; and writes in stack |
EA ... NOP × 3 08 PHP A2 0E LDX #14 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
EA ... NOP × 3 08 PHP A0 0E LDY #14 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 5 18 CLC 10 F7 BPL *-7 |
Clobbers A, Z&N, and C |
08 PHP 18 CLC A9 2A LDA #$2A ;hides 'ROL A' 20 xx xx JSR @rts14 90 FA BCC *-4 28 PLP |
Clobbers A; requires @rts14; and writes in stack |
48 PHA 18 CLC A9 2A LDA #$2A ;hides 'ROL A' 20 xx xx JSR @rts14 90 FA BCC *-4 68 PLA |
Clobbers Z&N, and C; requires @rts14; and writes in stack |
48 ... PHA × 2 08 PHP A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 28 PLP |
Clobbers A, and S; and writes in stack |
48 ... PHA × 3 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 68 PLA |
Clobbers S, Z&N, and C; and writes in stack |
EA ... NOP × 2 08 PHP 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only D0 FA BNE *-4 28 PLP |
Clobbers A; requires support for unofficial opcodes; and writes in stack |
EA ... NOP × 2 48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only D0 FA BNE *-4 68 PLA |
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
11 bytes | |
48 PHA 8C TXA 48 PHA A2 0D LDX #13 CA DEX D0 FB BNE *-3 68 PLA AA TAX 68 PLA |
Clobbers Z&N; and writes in stack |
08 PHP 8C TXA 48 PHA A2 0D LDX #13 CA DEX D0 FB BNE *-3 68 PLA AA TAX 28 PLP |
Clobbers A; and writes in stack |
12 bytes | |
EA NOP 08 PHP 48 PHA 38 SEC A9 0D LDA #13 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
21 bytes | |
68 ... PLA × 21 |
Clobbers A, S, and Z&N |
24 bytes | |
68 PLA \ × 12 48 PHA / |
Clobbers A, and Z&N |
28 bytes | |
36 00 ROL $00,X \ × 7 76 00 ROR $00,X / |
Clobbers Z&N |
85 cycles
5 bytes | |
---|---|
A9 LDA #58 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A0 0C LDY #12 EA NOP 88 DEY D0 FA BNE *-4 |
Clobbers Y, and Z&N |
A2 0C LDX #12 EA NOP CA DEX D0 FA BNE *-4 |
Clobbers X, and Z&N |
7 bytes | |
A9 E9 LDA #$E9 ;hides 'SBC #$2A' 2A ROL A ;first loop only 08 PHP 28 PLP B0 FA BCS *-4 |
Clobbers A, Z&N, C, and V; and writes in stack |
EA NOP 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FA BPL *-4 |
Clobbers A, Z&N, C, V, and D |
08 PHP A9 LDA #51 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #51 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
08 PHP A2 0B LDX #11 EA NOP CA DEX D0 FA BNE *-4 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 0B LDY #11 EA NOP 88 DEY D0 FA BNE *-4 28 PLP |
Clobbers Y; and writes in stack |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA NOP 08 PHP 28 PLP 90 FA BCC *-4 |
Clobbers A, Z&N, and C; and writes in stack |
EA NOP 38 SEC A9 10 LDA #16 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
9 bytes | |
08 PHP 38 SEC A9 0F LDA #15 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
48 PHA 38 SEC A9 0F LDA #15 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 2 E6 xx INC @zptemp 90 F9 BCC *-5 |
Clobbers A, Z&N, and C; and requires @zptemp |
EA NOP 68 PLA A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 18 CLC D0 FA BNE *-4 |
Clobbers A, S, Z&N, and C; and requires support for unofficial opcodes |
08 PHP 48 PHA A9 LDA #44 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 68 PLA 28 PLP |
Writes in stack |
68 PLA 48 PHA A9 0A LDA #$0A ;hides 'ASL A' \ × 2 D0 FD BNE *-1 / |
Clobbers A, Z&N, and C |
22 bytes | |
EA NOP 68 ... PLA × 20 48 PHA |
Clobbers A, S, and Z&N |
24 bytes | |
EA NOP A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 18 10 EA BPL *-20 |
Clobbers A, and Z&N |
30 bytes | |
C5 00 CMP $00 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X \ × 6 76 00 ROR $00,X / |
Clobbers Z&N, and C |
24 00 BIT $00 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X \ × 6 76 00 ROR $00,X / |
Clobbers Z&N, and V |
E6 xx INC @zptemp 26 00 ROL $00 \ × 2 66 00 ROR $00 / 36 00 ROL $00,X \ × 5 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
04 00 NOP $00 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X \ × 6 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
31 bytes | |
4C xx xx JMP *+3 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X \ × 6 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
86 cycles
5 bytes | |
---|---|
A0 11 LDY #17 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A2 11 LDX #17 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A9 LDA #59 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
7 bytes | |
48 PHA 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FA BPL *-4 |
Clobbers A, S, Z&N, C, V, and D; and writes in stack |
08 PHP A9 LDA #52 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #52 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
08 PHP A0 88 LDY #136 ;hides 'DEY' C5 00 CMP $00 30 FB BMI *-3 28 PLP |
Clobbers Y; and writes in stack |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts12 10 FA BPL *-4 |
Clobbers A, Z&N, and C; requires @rts12; and writes in stack |
A5 00 LDA $00 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FA BPL *-4 |
Clobbers A, Z&N, C, V, and D |
48 PHA 08 PHP A2 0F LDX #15 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X, and S; and writes in stack |
48 PHA 68 PLA A9 0A LDA #$0A ;hides 'ASL A' 48 PHA 18 CLC D0 FB BNE *-3 |
Clobbers A, S, Z&N, and C; and writes in stack |
00 00 BRK 0 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only D0 FA BNE *-4 |
Clobbers A, Z&N, C, and V; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack |
9 bytes | |
08 PHP A9 0A LDA #$0A ;hides 'ASL A' B8 CLV 50 00 BVC *+2 D0 FA BNE *-4 28 PLP |
Clobbers A; and writes in stack |
08 PHP A6 00 LDX $00 A2 0F LDX #15 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' B8 CLV 50 00 BVC *+2 D0 FA BNE *-4 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
A5 00 LDA $00 38 SEC A9 10 LDA #16 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp 18 CLC D0 FA BNE *-4 68 PLA |
Clobbers Z&N, and C; requires @zptemp; and writes in stack |
68 PLA 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp 18 CLC D0 FA BNE *-4 |
Clobbers A, Z&N, and C; and requires @zptemp |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 18 CLC D0 FA BNE *-4 68 PLA |
Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack |
68 PLA 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 18 CLC D0 FA BNE *-4 |
Clobbers A, Z&N, and C; and requires support for unofficial opcodes |
08 PHP 48 PHA A9 LDA #45 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA NOP 08 PHP 28 PLP 18 CLC 10 F9 BPL *-5 68 PLA |
Clobbers Z&N, and C; and writes in stack |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 90 FD BCC *-1 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 |
Clobbers A, Z&N, and C |
12 bytes | |
EA NOP 48 PHA 8C TXA 48 PHA A2 0D LDX #13 CA DEX D0 FB BNE *-3 68 PLA AA TAX 68 PLA |
Clobbers Z&N; and writes in stack |
00 00 BRK 0 08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 10 FB BPL *-3 68 PLA 28 PLP |
Requires dummy interrupt handler; and writes in stack |
48 PHA 08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 18 CLC 10 FA BPL *-4 68 PLA 28 PLP |
Clobbers S; and writes in stack |
13 bytes | |
EA ... NOP × 2 08 PHP 48 PHA 38 SEC A9 0D LDA #13 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
22 bytes | |
EA NOP 68 ... PLA × 21 |
Clobbers A, S, and Z&N |
24 bytes | |
68 PLA 48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 17 10 EB BPL *-19 |
Clobbers A, and Z&N |
29 bytes | |
EA NOP 36 00 ROL $00,X \ × 7 76 00 ROR $00,X / |
Clobbers Z&N |
87 cycles
5 bytes | |
---|---|
A9 LDA #60 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' 48 ... PHA × 2 D0 FB BNE *-3 |
Clobbers A, S, Z&N, and C; and writes in stack |
A0 F8 LDY #248 ;hides 'SED' 68 PLA C8 INY D0 FB BNE *-3 |
Clobbers A, Y, S, Z&N, and D |
A2 F8 LDX #248 ;hides 'SED' 68 PLA E8 INX D0 FB BNE *-3 |
Clobbers A, X, S, Z&N, and D |
7 bytes | |
EA NOP A2 0C LDX #12 EA NOP CA DEX D0 FA BNE *-4 |
Clobbers X, and Z&N |
EA NOP A0 0C LDY #12 EA NOP 88 DEY D0 FA BNE *-4 |
Clobbers Y, and Z&N |
A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 2 18 CLC D0 FA BNE *-4 |
Clobbers A, Z&N, and C |
08 PHP A9 LDA #53 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #53 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
08 PHP A2 88 LDX #136 ;hides 'DEY' EA NOP CA DEX 30 FB BMI *-3 28 PLP |
Clobbers X, and Y; and writes in stack |
9 bytes | |
98 TYA 48 PHA A0 0F LDY #15 88 DEY D0 FB BNE *-3 68 PLA A8 TAY |
Clobbers A, and Z&N; and writes in stack |
EA NOP 08 PHP A0 0B LDY #11 EA NOP 88 DEY D0 FA BNE *-4 28 PLP |
Clobbers Y; and writes in stack |
EA NOP 08 PHP A2 0B LDX #11 EA NOP CA DEX D0 FA BNE *-4 28 PLP |
Clobbers X; and writes in stack |
08 PHP 38 SEC A9 EB LDA #$EB ;hides 'SBC #$1A' 1A NOP ;first loop only EA NOP B0 F9 BCS *-5 28 PLP |
Clobbers A; requires support for unofficial opcodes; and writes in stack |
48 PHA 38 SEC A9 EB LDA #$EB ;hides 'SBC #$1A' 1A NOP ;first loop only EA NOP B0 F9 BCS *-5 68 PLA |
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
08 PHP 48 PHA A9 LDA #46 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP 38 SEC A9 0B LDA #11 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 28 PLP |
Clobbers A; and writes in stack |
48 PHA 38 SEC A9 0B LDA #11 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
08 PHP 48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only D0 FA BNE *-4 68 PLA 28 PLP |
Requires support for unofficial opcodes; and writes in stack |
11 bytes | |
08 PHP 48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 68 PLA 28 PLP |
Writes in stack |
22 bytes | |
68 ... PLA × 21 48 PHA |
Clobbers A, S, and Z&N |
24 bytes | |
A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 19 10 E9 BPL *-21 |
Clobbers A, and Z&N |
30 bytes | |
C5 00 CMP $00 36 00 ROL $00,X \ × 7 76 00 ROR $00,X / |
Clobbers Z&N, and C |
24 00 BIT $00 36 00 ROL $00,X \ × 7 76 00 ROR $00,X / |
Clobbers Z&N, and V |
E6 xx INC @zptemp 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X \ × 6 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
04 00 NOP $00 36 00 ROL $00,X \ × 7 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
31 bytes | |
4C xx xx JMP *+3 36 00 ROL $00,X \ × 7 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
88 cycles
5 bytes | |
---|---|
A9 LDA #61 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
EA NOP A2 11 LDX #17 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
EA NOP A0 11 LDY #17 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FA BPL *-4 |
Clobbers A, Z&N, C, V, and D |
7 bytes | |
08 PHP A0 10 LDY #16 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 10 LDX #16 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
38 SEC A9 11 LDA #17 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
08 PHP A9 LDA #54 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #54 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
68 PLA A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts12 10 FA BPL *-4 |
Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack |
9 bytes | |
18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts12 10 FA BPL *-4 |
Clobbers A, Z&N, and C; requires @rts12; and writes in stack |
08 PHP A9 69 LDA #$69 ;hides 'ADC #$18' 18 CLC ;first loop only E6 xx INC @zptemp 90 FA BCC *-4 28 PLP |
Clobbers A; requires @zptemp; and writes in stack |
48 PHA A9 69 LDA #$69 ;hides 'ADC #$18' 18 CLC ;first loop only E6 xx INC @zptemp 90 FA BCC *-4 68 PLA |
Clobbers Z&N, C, and V; requires @zptemp; and writes in stack |
EA NOP 48 PHA 68 PLA A9 0A LDA #$0A ;hides 'ASL A' 48 PHA 18 CLC D0 FB BNE *-3 |
Clobbers A, S, Z&N, and C; and writes in stack |
08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 04 00 NOP $00 30 FA BMI *-4 28 PLP |
Clobbers A; requires support for unofficial opcodes; and writes in stack |
48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 04 00 NOP $00 30 FA BMI *-4 68 PLA |
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
08 PHP 48 PHA A9 LDA #47 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP 18 CLC A9 0A LDA #$0A ;hides 'ASL A' B8 CLV 50 00 BVC *+2 D0 FA BNE *-4 28 PLP |
Clobbers A; and writes in stack |
48 PHA 18 CLC A9 2A LDA #$2A ;hides 'ROL A' 20 xx xx JSR @rts15 90 FA BCC *-4 68 PLA |
Clobbers Z&N, and C; requires @rts15; and writes in stack |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' B8 CLV 50 00 BVC *+2 D0 FA BNE *-4 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp 18 CLC D0 FA BNE *-4 68 PLA |
Clobbers Z&N, and C; requires @zptemp; and writes in stack |
EA NOP 68 PLA 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp 18 CLC D0 FA BNE *-4 |
Clobbers A, Z&N, and C; and requires @zptemp |
48 PHA 18 CLC A9 2A LDA #$2A ;hides 'ROL A' EA NOP 00 00 BRK 0 90 FA BCC *-4 68 PLA |
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 18 CLC D0 FA BNE *-4 68 PLA |
Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack |
EA NOP 68 PLA 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 18 CLC D0 FA BNE *-4 |
Clobbers A, Z&N, and C; and requires support for unofficial opcodes |
11 bytes | |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA NOP 08 PHP 28 PLP 18 CLC 10 F9 BPL *-5 68 PLA |
Clobbers Z&N, and C; and writes in stack |
EA NOP 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 90 FD BCC *-1 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 |
Clobbers A, Z&N, and C |
48 PHA 08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 68 PLA 28 PLP |
Clobbers S; and writes in stack |
12 bytes | |
08 PHP C5 00 CMP $00 48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 68 PLA 28 PLP |
Writes in stack |
22 bytes | |
68 ... PLA × 22 |
Clobbers A, S, and Z&N |
25 bytes | |
EA NOP 68 PLA 48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 17 10 EB BPL *-19 |
Clobbers A, and Z&N |
30 bytes | |
EA ... NOP × 2 36 00 ROL $00,X \ × 7 76 00 ROR $00,X / |
Clobbers Z&N |
89 cycles
5 bytes | |
---|---|
A0 88 LDY #136 ;hides 'DEY' 68 PLA 30 FC BMI *-2 |
Clobbers A, Y, S, and Z&N |
A9 LDA #62 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A0 88 LDY #136 ;hides 'DEY' EA ... NOP × 2 30 FB BMI *-3 |
Clobbers Y, and Z&N |
A2 0A LDX #10 ;hides 'ASL A' EA NOP CA DEX D0 FB BNE *-3 |
Clobbers A, X, Z&N, and C |
A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 10 FB BPL *-3 |
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack |
A2 0B LDX #11 48 PHA CA DEX D0 FA BNE *-4 |
Clobbers X, S, and Z&N; and writes in stack |
7 bytes | |
A6 00 LDX $00 A2 11 LDX #17 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 48 ... PHA × 2 D0 FB BNE *-3 |
Clobbers A, S, Z&N, and C; and writes in stack |
08 PHP A9 LDA #55 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #55 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 2 18 CLC D0 FA BNE *-4 |
Clobbers A, Z&N, and C |
9 bytes | |
08 PHP A0 09 LDY #9 EA ... NOP × 2 88 DEY D0 F9 BNE *-5 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 09 LDX #9 EA ... NOP × 2 CA DEX D0 F9 BNE *-5 28 PLP |
Clobbers X; and writes in stack |
08 PHP 48 PHA A9 LDA #48 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
8C TXA 48 PHA A2 0B LDX #11 EA NOP CA DEX D0 FA BNE *-4 68 PLA AA TAX |
Clobbers A, and Z&N; and writes in stack |
48 PHA 08 PHP A9 0A LDA #$0A ;hides 'ASL A' B8 CLV 50 00 BVC *+2 D0 FA BNE *-4 28 PLP |
Clobbers A, and S; and writes in stack |
48 ... PHA × 2 A9 0A LDA #$0A ;hides 'ASL A' B8 CLV 50 00 BVC *+2 D0 FA BNE *-4 68 PLA |
Clobbers S, Z&N, C, and V; and writes in stack |
48 ... PHA × 2 A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp 18 CLC D0 FA BNE *-4 68 PLA |
Clobbers S, Z&N, and C; requires @zptemp; and writes in stack |
EA NOP 08 PHP 38 SEC A9 EB LDA #$EB ;hides 'SBC #$1A' 1A NOP ;first loop only EA NOP B0 F9 BCS *-5 28 PLP |
Clobbers A; requires support for unofficial opcodes; and writes in stack |
EA NOP 48 PHA 38 SEC A9 EB LDA #$EB ;hides 'SBC #$1A' 1A NOP ;first loop only EA NOP B0 F9 BCS *-5 68 PLA |
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
48 ... PHA × 2 A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 18 CLC D0 FA BNE *-4 68 PLA |
Clobbers S, Z&N, and C; requires support for unofficial opcodes; and writes in stack |
11 bytes | |
48 PHA 98 TYA 48 PHA A0 0E LDY #14 88 DEY D0 FB BNE *-3 68 PLA A8 TAY 68 PLA |
Clobbers Z&N; and writes in stack |
EA NOP 08 PHP 38 SEC A9 0B LDA #11 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 28 PLP |
Clobbers A; and writes in stack |
EA NOP 08 PHP 48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only D0 FA BNE *-4 68 PLA 28 PLP |
Requires support for unofficial opcodes; and writes in stack |
12 bytes | |
08 PHP 48 PHA 18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 68 PLA 28 PLP |
Writes in stack |
23 bytes | |
EA NOP 68 ... PLA × 21 48 PHA |
Clobbers A, S, and Z&N |
25 bytes | |
EA NOP A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 19 10 E9 BPL *-21 |
Clobbers A, and Z&N |
30 bytes | |
E6 xx INC @zptemp 36 00 ROL $00,X \ × 7 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
31 bytes | |
EA NOP C5 00 CMP $00 36 00 ROL $00,X \ × 7 76 00 ROR $00,X / |
Clobbers Z&N, and C |
EA NOP 24 00 BIT $00 36 00 ROL $00,X \ × 7 76 00 ROR $00,X / |
Clobbers Z&N, and V |
EA NOP 04 00 NOP $00 36 00 ROL $00,X \ × 7 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
32 bytes | |
EA NOP 4C xx xx JMP *+3 36 00 ROL $00,X \ × 7 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
90 cycles
5 bytes | |
---|---|
A9 LDA #63 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
68 PLA A0 11 LDY #17 88 DEY D0 FB BNE *-3 |
Clobbers A, Y, S, and Z&N |
68 PLA A2 11 LDX #17 CA DEX D0 FB BNE *-3 |
Clobbers A, X, S, and Z&N |
7 bytes | |
EA ... NOP × 2 A0 11 LDY #17 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
EA ... NOP × 2 A2 11 LDX #17 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
EA NOP 38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FA BPL *-4 |
Clobbers A, Z&N, C, V, and D |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 48 ... PHA × 2 D0 FB BNE *-3 |
Clobbers A, S, Z&N, and C; and writes in stack |
08 PHP A9 LDA #56 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #56 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
08 PHP 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FA BPL *-4 28 PLP |
Clobbers A; and writes in stack |
EA NOP 08 PHP A2 10 LDX #16 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
EA NOP 08 PHP A0 10 LDY #16 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
EA NOP 38 SEC A9 11 LDA #17 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
48 PHA 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FA BPL *-4 68 PLA |
Clobbers Z&N, C, V, and D; and writes in stack |
9 bytes | |
A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 2 18 CLC D0 FA BNE *-4 |
Clobbers A, Z&N, and C |
48 PHA 38 SEC A9 10 LDA #16 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
08 PHP 48 PHA A9 LDA #49 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
11 bytes | |
20 xx xx JSR @rts12 48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 68 PLA |
Clobbers Z&N, and C; requires @rts12; and writes in stack |
48 PHA 18 ... CLC × 2 A9 2A LDA #$2A ;hides 'ROL A' 20 xx xx JSR @rts15 90 FA BCC *-4 68 PLA |
Clobbers Z&N, and C; requires @rts15; and writes in stack |
48 PHA 18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp 18 CLC D0 FA BNE *-4 68 PLA |
Clobbers Z&N, and C; requires @zptemp; and writes in stack |
48 PHA 18 ... CLC × 2 A9 2A LDA #$2A ;hides 'ROL A' EA NOP 00 00 BRK 0 90 FA BCC *-4 68 PLA |
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack |
48 PHA 18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 18 CLC D0 FA BNE *-4 68 PLA |
Clobbers Z&N, and C; requires support for unofficial opcodes; and writes in stack |
48 PHA 08 PHP 48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only D0 FA BNE *-4 68 PLA 28 PLP |
Clobbers S; requires support for unofficial opcodes; and writes in stack |
12 bytes | |
36 00 ROL $00,X 76 00 ROR $00,X 48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 68 PLA |
Clobbers Z&N, and C; and writes in stack |
08 PHP E6 xx INC @zptemp 48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 68 PLA 28 PLP |
Requires @zptemp; and writes in stack |
EA NOP 48 PHA 08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 68 PLA 28 PLP |
Clobbers S; and writes in stack |
04 00 NOP $00 08 PHP 48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only D0 FA BNE *-4 68 PLA 28 PLP |
Requires support for unofficial opcodes; and writes in stack |
13 bytes | |
EA NOP 08 PHP C5 00 CMP $00 48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 68 PLA 28 PLP |
Writes in stack |
23 bytes | |
EA NOP 68 ... PLA × 22 |
Clobbers A, S, and Z&N |
25 bytes | |
68 PLA 48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 18 10 EA BPL *-20 |
Clobbers A, and Z&N |
31 bytes | |
EA ... NOP × 3 36 00 ROL $00,X \ × 7 76 00 ROR $00,X / |
Clobbers Z&N |
91 cycles
5 bytes | |
---|---|
A0 12 LDY #18 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A2 12 LDX #18 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A9 LDA #64 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
7 bytes | |
A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA ... NOP × 2 30 FA BMI *-4 |
Clobbers A, Z&N, C, and V |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 10 FB BPL *-3 |
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack |
68 PLA A9 0A LDA #$0A ;hides 'ASL A' 48 ... PHA × 2 D0 FB BNE *-3 |
Clobbers A, S, Z&N, and C; and writes in stack |
08 PHP A9 LDA #57 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #57 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
48 PHA 08 PHP A2 10 LDX #16 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X, and S; and writes in stack |
48 PHA 08 PHP A0 10 LDY #16 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y, and S; and writes in stack |
68 PLA A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 2 18 CLC D0 FA BNE *-4 |
Clobbers A, S, Z&N, and C |
9 bytes | |
08 PHP A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts12 10 FA BPL *-4 28 PLP |
Clobbers A; requires @rts12; and writes in stack |
08 PHP A6 00 LDX $00 A2 10 LDX #16 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
08 PHP A4 00 LDY $00 A0 10 LDY #16 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts12 10 FA BPL *-4 68 PLA |
Clobbers Z&N, and C; requires @rts12; and writes in stack |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 26 00 ROL $00 66 00 ROR $00 90 F9 BCC *-5 |
Clobbers A, Z&N, and C |
08 PHP 48 PHA A9 LDA #50 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP A9 0A LDA #$0A ;hides 'ASL A' 08 PHP E6 xx INC @zptemp 28 PLP 10 F9 BPL *-5 28 PLP |
Clobbers A; requires @zptemp; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP E6 xx INC @zptemp 28 PLP 10 F9 BPL *-5 68 PLA |
Clobbers Z&N, and C; requires @zptemp; and writes in stack |
00 00 BRK 0 08 PHP A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 28 PLP |
Clobbers A; requires dummy interrupt handler; and writes in stack |
00 00 BRK 0 48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 68 PLA |
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack |
68 PLA 98 TYA 48 PHA A0 0F LDY #15 88 DEY D0 FB BNE *-3 68 PLA A8 TAY |
Clobbers A, S, and Z&N; and writes in stack |
48 PHA 08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 04 00 NOP $00 30 FA BMI *-4 28 PLP |
Clobbers A, and S; requires support for unofficial opcodes; and writes in stack |
48 ... PHA × 2 A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 04 00 NOP $00 30 FA BMI *-4 68 PLA |
Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
11 bytes | |
08 PHP 38 SEC A9 09 LDA #9 EA ... NOP × 2 E9 01 SBC #1 D0 F7 BNE *-7 28 PLP |
Clobbers A; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 24 00 BIT $00 28 PLP 18 CLC 10 F8 BPL *-6 68 PLA |
Clobbers Z&N, and C; and writes in stack |
12 bytes | |
EA NOP 48 PHA 98 TYA 48 PHA A0 0E LDY #14 88 DEY D0 FB BNE *-3 68 PLA A8 TAY 68 PLA |
Clobbers Z&N; and writes in stack |
08 PHP 48 PHA 18 CLC A9 2A LDA #$2A ;hides 'ROL A' 20 xx xx JSR @rts14 90 FA BCC *-4 68 PLA 28 PLP |
Requires @rts14; and writes in stack |
48 ... PHA × 2 08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 68 PLA 28 PLP |
Clobbers S; and writes in stack |
EA ... NOP × 2 08 PHP 48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only D0 FA BNE *-4 68 PLA 28 PLP |
Requires support for unofficial opcodes; and writes in stack |
13 bytes | |
08 PHP 48 PHA 8C TXA 48 PHA A2 0D LDX #13 CA DEX D0 FB BNE *-3 68 PLA AA TAX 68 PLA 28 PLP |
Writes in stack |
23 bytes | |
68 ... PLA × 22 48 PHA |
Clobbers A, S, and Z&N |
25 bytes | |
A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 20 10 E8 BPL *-22 |
Clobbers A, and Z&N |
31 bytes | |
EA NOP E6 xx INC @zptemp 36 00 ROL $00,X \ × 7 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
32 bytes | |
EA ... NOP × 2 C5 00 CMP $00 36 00 ROL $00,X \ × 7 76 00 ROR $00,X / |
Clobbers Z&N, and C |
EA ... NOP × 2 24 00 BIT $00 36 00 ROL $00,X \ × 7 76 00 ROR $00,X / |
Clobbers Z&N, and V |
EA ... NOP × 2 04 00 NOP $00 36 00 ROL $00,X \ × 7 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
33 bytes | |
EA ... NOP × 2 4C xx xx JMP *+3 36 00 ROL $00,X \ × 7 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
92 cycles
5 bytes | |
---|---|
A9 LDA #65 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A0 0D LDY #13 EA NOP 88 DEY D0 FA BNE *-4 |
Clobbers Y, and Z&N |
A2 0D LDX #13 EA NOP CA DEX D0 FA BNE *-4 |
Clobbers X, and Z&N |
7 bytes | |
68 PLA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FA BPL *-4 |
Clobbers A, S, Z&N, C, V, and D |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 10 FB BPL *-3 |
Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack |
08 PHP A9 LDA #58 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #58 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
08 PHP A2 0C LDX #12 EA NOP CA DEX D0 FA BNE *-4 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 0C LDY #12 EA NOP 88 DEY D0 FA BNE *-4 28 PLP |
Clobbers Y; and writes in stack |
EA ... NOP × 2 38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FA BPL *-4 |
Clobbers A, Z&N, C, V, and D |
A9 2A LDA #$2A ;hides 'ROL A' 00 00... BRK 0 × 2 10 F9 BPL *-5 |
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack |
EA NOP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 48 ... PHA × 2 D0 FB BNE *-3 |
Clobbers A, S, Z&N, and C; and writes in stack |
68 PLA 38 SEC A9 11 LDA #17 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, S, Z&N, C, and V |
9 bytes | |
EA NOP 08 PHP 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FA BPL *-4 28 PLP |
Clobbers A; and writes in stack |
48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$2A' 2A ROL A ;first loop only 08 PHP 28 PLP B0 FA BCS *-4 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
EA ... NOP × 2 38 SEC A9 11 LDA #17 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
E6 xx INC @zptemp A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 2 18 CLC D0 FA BNE *-4 |
Clobbers A, Z&N, and C; and requires @zptemp |
08 PHP 48 PHA A9 LDA #51 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA NOP 08 PHP 28 PLP 90 FA BCC *-4 68 PLA |
Clobbers Z&N, and C; and writes in stack |
EA NOP A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 2 18 CLC D0 FA BNE *-4 |
Clobbers A, Z&N, and C |
11 bytes | |
08 PHP 48 PHA 38 SEC A9 0F LDA #15 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
23 bytes | |
68 ... PLA × 23 |
Clobbers A, S, and Z&N |
26 bytes | |
EA NOP 68 PLA 48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 18 10 EA BPL *-20 |
Clobbers A, and Z&N |
32 bytes | |
26 00 ROL $00 \ × 2 66 00 ROR $00 / 36 00 ROL $00,X \ × 6 76 00 ROR $00,X / |
Clobbers Z&N |
93 cycles
5 bytes | |
---|---|
A9 LDA #66 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
EA NOP A2 12 LDX #18 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
EA NOP A0 12 LDY #18 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
7 bytes | |
08 PHP A0 11 LDY #17 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 11 LDX #17 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
38 SEC A9 12 LDA #18 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
68 PLA A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 10 FB BPL *-3 |
Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack |
08 PHP A9 LDA #59 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #59 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 10 FB BPL *-3 |
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack |
EA NOP 68 PLA A9 0A LDA #$0A ;hides 'ASL A' 48 ... PHA × 2 D0 FB BNE *-3 |
Clobbers A, S, Z&N, and C; and writes in stack |
9 bytes | |
48 PHA 08 PHP 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FA BPL *-4 28 PLP |
Clobbers A, and S; and writes in stack |
EA NOP 68 PLA A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 2 18 CLC D0 FA BNE *-4 |
Clobbers A, S, Z&N, and C |
48 ... PHA × 2 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FA BPL *-4 68 PLA |
Clobbers S, Z&N, C, V, and D; and writes in stack |
08 PHP 48 PHA A9 LDA #52 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP A5 00 LDA $00 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FA BPL *-4 28 PLP |
Clobbers A; and writes in stack |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts12 10 FA BPL *-4 68 PLA |
Clobbers Z&N, and C; requires @rts12; and writes in stack |
18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' 26 00 ROL $00 66 00 ROR $00 90 F9 BCC *-5 |
Clobbers A, Z&N, and C |
24 00 BIT $00 48 PHA 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FA BPL *-4 68 PLA |
Clobbers Z&N, C, V, and D; and writes in stack |
48 ... PHA × 2 38 SEC A9 10 LDA #16 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers S, Z&N, C, and V; and writes in stack |
00 00 BRK 0 48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only D0 FA BNE *-4 68 PLA |
Clobbers Z&N, C, and V; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack |
11 bytes | |
08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' B8 CLV 50 00 BVC *+2 D0 FA BNE *-4 68 PLA 28 PLP |
Writes in stack |
24 bytes | |
EA NOP 68 ... PLA × 22 48 PHA |
Clobbers A, S, and Z&N |
26 bytes | |
EA NOP A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 20 10 E8 BPL *-22 |
Clobbers A, and Z&N |
32 bytes | |
EA ... NOP × 2 E6 xx INC @zptemp 36 00 ROL $00,X \ × 7 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
33 bytes | |
EA ... NOP × 3 C5 00 CMP $00 36 00 ROL $00,X \ × 7 76 00 ROR $00,X / |
Clobbers Z&N, and C |
EA ... NOP × 3 24 00 BIT $00 36 00 ROL $00,X \ × 7 76 00 ROR $00,X / |
Clobbers Z&N, and V |
EA ... NOP × 3 04 00 NOP $00 36 00 ROL $00,X \ × 7 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
34 bytes | |
EA ... NOP × 3 4C xx xx JMP *+3 36 00 ROL $00,X \ × 7 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
94 cycles
5 bytes | |
---|---|
A9 LDA #67 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
48 PHA A0 12 LDY #18 88 DEY D0 FB BNE *-3 |
Clobbers Y, S, and Z&N; and writes in stack |
48 PHA A2 12 LDX #18 CA DEX D0 FB BNE *-3 |
Clobbers X, S, and Z&N; and writes in stack |
7 bytes | |
A6 00 LDX $00 A2 12 LDX #18 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A4 00 LDY $00 A0 12 LDY #18 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts14 10 FA BPL *-4 |
Clobbers A, Z&N, and C; requires @rts14; and writes in stack |
08 PHP A9 LDA #60 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #60 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' 08 PHP \ × 2 28 PLP / 10 F9 BPL *-5 |
Clobbers A, Z&N, and C; and writes in stack |
38 SEC A9 0D LDA #13 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 |
Clobbers A, Z&N, C, and V |
9 bytes | |
08 PHP A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 2 18 CLC D0 FA BNE *-4 28 PLP |
Clobbers A; and writes in stack |
EA NOP 08 PHP A2 0C LDX #12 EA NOP CA DEX D0 FA BNE *-4 28 PLP |
Clobbers X; and writes in stack |
EA NOP 08 PHP A0 0C LDY #12 EA NOP 88 DEY D0 FA BNE *-4 28 PLP |
Clobbers Y; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 2 18 CLC D0 FA BNE *-4 68 PLA |
Clobbers Z&N, and C; and writes in stack |
A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 |
Clobbers A, Z&N, and C |
08 PHP 48 PHA A9 LDA #53 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
11 bytes | |
48 PHA 98 TYA 48 PHA A0 0F LDY #15 88 DEY D0 FB BNE *-3 68 PLA A8 TAY 68 PLA |
Clobbers Z&N; and writes in stack |
08 PHP 48 PHA 38 SEC A9 EB LDA #$EB ;hides 'SBC #$1A' 1A NOP ;first loop only EA NOP B0 F9 BCS *-5 68 PLA 28 PLP |
Requires support for unofficial opcodes; and writes in stack |
12 bytes | |
08 PHP 48 PHA 38 SEC A9 0B LDA #11 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 68 PLA 28 PLP |
Writes in stack |
24 bytes | |
EA NOP 68 ... PLA × 23 |
Clobbers A, S, and Z&N |
26 bytes | |
68 PLA 48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 19 10 E9 BPL *-21 |
Clobbers A, and Z&N |
32 bytes | |
26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X \ × 7 76 00 ROR $00,X / |
Clobbers Z&N |
95 cycles
5 bytes | |
---|---|
A9 LDA #68 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 |
Clobbers A, Z&N, and C; and writes in stack |
68 PLA A2 12 LDX #18 CA DEX D0 FB BNE *-3 |
Clobbers A, X, S, and Z&N |
68 PLA A0 12 LDY #18 88 DEY D0 FB BNE *-3 |
Clobbers A, Y, S, and Z&N |
7 bytes | |
EA ... NOP × 2 A0 12 LDY #18 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
EA ... NOP × 2 A2 12 LDX #18 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
08 PHP A9 LDA #61 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #61 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
08 PHP 38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FA BPL *-4 28 PLP |
Clobbers A; and writes in stack |
EA NOP 08 PHP A2 11 LDX #17 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
EA NOP 08 PHP A0 11 LDY #17 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 90 00 BCC *+2 18 CLC D0 F9 BNE *-5 |
Clobbers A, Z&N, and C |
48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FA BPL *-4 68 PLA |
Clobbers Z&N, C, V, and D; and writes in stack |
9 bytes | |
48 PHA 38 SEC A9 11 LDA #17 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
08 PHP 48 PHA A9 LDA #54 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
11 bytes | |
48 PHA 18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts12 10 FA BPL *-4 68 PLA |
Clobbers Z&N, and C; requires @rts12; and writes in stack |
08 PHP 48 PHA A9 69 LDA #$69 ;hides 'ADC #$18' 18 CLC ;first loop only E6 xx INC @zptemp 90 FA BCC *-4 68 PLA 28 PLP |
Requires @zptemp; and writes in stack |
48 ... PHA × 2 18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA NOP 08 PHP 28 PLP 90 FA BCC *-4 68 PLA |
Clobbers S, Z&N, and C; and writes in stack |
08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 04 00 NOP $00 30 FA BMI *-4 68 PLA 28 PLP |
Requires support for unofficial opcodes; and writes in stack |
12 bytes | |
08 PHP 48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' B8 CLV 50 00 BVC *+2 D0 FA BNE *-4 68 PLA 28 PLP |
Writes in stack |
24 bytes | |
68 ... PLA × 23 48 PHA |
Clobbers A, S, and Z&N |
26 bytes | |
A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 21 10 E7 BPL *-23 |
Clobbers A, and Z&N |
33 bytes | |
EA ... NOP × 3 E6 xx INC @zptemp 36 00 ROL $00,X \ × 7 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
34 bytes | |
C5 00 CMP $00 26 00 ROL $00 \ × 2 66 00 ROR $00 / 36 00 ROL $00,X \ × 6 76 00 ROR $00,X / |
Clobbers Z&N, and C |
24 00 BIT $00 26 00 ROL $00 \ × 2 66 00 ROR $00 / 36 00 ROL $00,X \ × 6 76 00 ROR $00,X / |
Clobbers Z&N, and V |
04 00 NOP $00 26 00 ROL $00 \ × 2 66 00 ROR $00 / 36 00 ROL $00,X \ × 6 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
35 bytes | |
4C xx xx JMP *+3 26 00 ROL $00 \ × 2 66 00 ROR $00 / 36 00 ROL $00,X \ × 6 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
96 cycles
5 bytes | |
---|---|
A0 13 LDY #19 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A2 13 LDX #19 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A9 LDA #69 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
7 bytes | |
08 PHP A9 LDA #62 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #62 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
08 PHP A0 88 LDY #136 ;hides 'DEY' EA ... NOP × 2 30 FB BMI *-3 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 0A LDX #10 ;hides 'ASL A' EA NOP CA DEX D0 FB BNE *-3 28 PLP |
Clobbers A, and X; and writes in stack |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts14 10 FA BPL *-4 |
Clobbers A, Z&N, and C; requires @rts14; and writes in stack |
08 PHP A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 10 FB BPL *-3 28 PLP |
Clobbers A; requires dummy interrupt handler; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 10 FB BPL *-3 68 PLA |
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack |
48 PHA 08 PHP A2 11 LDX #17 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X, and S; and writes in stack |
48 PHA 38 SEC A9 12 LDA #18 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, S, Z&N, C, and V; and writes in stack |
68 ... PLA × 2 38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FA BPL *-4 |
Clobbers A, S, Z&N, C, V, and D |
9 bytes | |
08 PHP A2 0B LDX #11 C5 00 CMP $00 CA DEX D0 F9 BNE *-5 28 PLP |
Clobbers X; and writes in stack |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 08 PHP \ × 2 28 PLP / 10 F9 BPL *-5 |
Clobbers A, Z&N, and C; and writes in stack |
A5 00 LDA $00 38 SEC A9 12 LDA #18 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
08 PHP 48 PHA A9 LDA #55 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP 18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 2 18 CLC D0 FA BNE *-4 28 PLP |
Clobbers A; and writes in stack |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 2 18 CLC D0 FA BNE *-4 68 PLA |
Clobbers Z&N, and C; and writes in stack |
EA NOP A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 |
Clobbers A, Z&N, and C |
12 bytes | |
48 PHA 8C TXA 48 PHA A2 0B LDX #11 EA NOP CA DEX D0 FA BNE *-4 68 PLA AA TAX 68 PLA |
Clobbers Z&N; and writes in stack |
48 PHA 08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' B8 CLV 50 00 BVC *+2 D0 FA BNE *-4 68 PLA 28 PLP |
Clobbers S; and writes in stack |
EA NOP 08 PHP 48 PHA 38 SEC A9 EB LDA #$EB ;hides 'SBC #$1A' 1A NOP ;first loop only EA NOP B0 F9 BCS *-5 68 PLA 28 PLP |
Requires support for unofficial opcodes; and writes in stack |
13 bytes | |
EA NOP 08 PHP 48 PHA 38 SEC A9 0B LDA #11 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 68 PLA 28 PLP |
Writes in stack |
24 bytes | |
68 ... PLA × 24 |
Clobbers A, S, and Z&N |
27 bytes | |
EA NOP 68 PLA 48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 19 10 E9 BPL *-21 |
Clobbers A, and Z&N |
32 bytes | |
36 00 ROL $00,X \ × 8 76 00 ROR $00,X / |
Clobbers Z&N |
97 cycles
5 bytes | |
---|---|
A9 LDA #70 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A2 0C LDX #12 48 PHA CA DEX D0 FA BNE *-4 |
Clobbers X, S, and Z&N; and writes in stack |
A0 0C LDY #12 48 PHA 88 DEY D0 FA BNE *-4 |
Clobbers Y, S, and Z&N; and writes in stack |
7 bytes | |
A2 08 LDX #8 08 PHP 28 PLP CA DEX D0 F9 BNE *-5 |
Clobbers X, and Z&N; and writes in stack |
A0 08 LDY #8 08 PHP 28 PLP 88 DEY D0 F9 BNE *-5 |
Clobbers Y, and Z&N; and writes in stack |
A0 0C LDY #12 A5 00 LDA $00 88 DEY D0 F9 BNE *-5 |
Clobbers A, Y, and Z&N |
A2 0C LDX #12 A5 00 LDA $00 CA DEX D0 F9 BNE *-5 |
Clobbers A, X, and Z&N |
A2 0C LDX #12 A4 00 LDY $00 CA DEX D0 F9 BNE *-5 |
Clobbers X, Y, and Z&N |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 |
Clobbers A, Z&N, and C; and writes in stack |
A2 0C LDX #12 C5 00 CMP $00 CA DEX D0 F9 BNE *-5 |
Clobbers X, Z&N, and C |
A0 0C LDY #12 C5 00 CMP $00 88 DEY D0 F9 BNE *-5 |
Clobbers Y, Z&N, and C |
A2 0C LDX #12 24 00 BIT $00 CA DEX D0 F9 BNE *-5 |
Clobbers X, Z&N, and V |
A0 0C LDY #12 24 00 BIT $00 88 DEY D0 F9 BNE *-5 |
Clobbers Y, Z&N, and V |
A0 0C LDY #12 85 xx STA @zptemp 88 DEY D0 F9 BNE *-5 |
Clobbers Y, and Z&N; and requires @zptemp |
A2 0C LDX #12 85 xx STA @zptemp CA DEX D0 F9 BNE *-5 |
Clobbers X, and Z&N; and requires @zptemp |
A0 0C LDY #12 04 00 NOP $00 88 DEY D0 F9 BNE *-5 |
Clobbers Y, and Z&N; and requires support for unofficial opcodes |
A2 0C LDX #12 04 00 NOP $00 CA DEX D0 F9 BNE *-5 |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
08 PHP A9 LDA #63 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #63 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
EA ... NOP × 3 A2 12 LDX #18 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
EA ... NOP × 3 A0 12 LDY #18 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A9 69 LDA #$69 ;hides 'ADC #$18' 18 CLC ;first loop only EA NOP E6 xx INC @zptemp 90 F9 BCC *-5 |
Clobbers A, Z&N, C, and V; and requires @zptemp |
68 PLA 38 SEC A9 12 LDA #18 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, S, Z&N, C, and V |
9 bytes | |
EA NOP 08 PHP 38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FA BPL *-4 28 PLP |
Clobbers A; and writes in stack |
EA ... NOP × 2 08 PHP A2 11 LDX #17 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
EA ... NOP × 2 08 PHP A0 11 LDY #17 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 90 00 BCC *+2 18 CLC D0 F9 BNE *-5 |
Clobbers A, Z&N, and C |
EA NOP 48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FA BPL *-4 68 PLA |
Clobbers Z&N, C, V, and D; and writes in stack |
08 PHP 48 PHA A9 LDA #56 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP 48 PHA 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FA BPL *-4 68 PLA 28 PLP |
Writes in stack |
25 bytes | |
EA NOP 68 ... PLA × 23 48 PHA |
Clobbers A, S, and Z&N |
27 bytes | |
EA NOP A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 21 10 E7 BPL *-23 |
Clobbers A, and Z&N |
34 bytes | |
C5 00 CMP $00 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X \ × 7 76 00 ROR $00,X / |
Clobbers Z&N, and C |
24 00 BIT $00 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X \ × 7 76 00 ROR $00,X / |
Clobbers Z&N, and V |
E6 xx INC @zptemp 26 00 ROL $00 \ × 2 66 00 ROR $00 / 36 00 ROL $00,X \ × 6 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
04 00 NOP $00 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X \ × 7 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
35 bytes | |
4C xx xx JMP *+3 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X \ × 7 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
98 cycles
5 bytes | |
---|---|
A9 LDA #71 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
EA NOP A2 13 LDX #19 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
EA NOP A0 13 LDY #19 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
7 bytes | |
08 PHP A2 12 LDX #18 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 12 LDY #18 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
38 SEC A9 13 LDA #19 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 |
Clobbers A, S, Z&N, and C; and writes in stack |
08 PHP A9 LDA #64 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #64 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 |
Clobbers A, Z&N, and C; and writes in stack |
9 bytes | |
08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA ... NOP × 2 30 FA BMI *-4 28 PLP |
Clobbers A; and writes in stack |
48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA ... NOP × 2 30 FA BMI *-4 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 10 FB BPL *-3 68 PLA |
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack |
08 PHP 48 PHA A9 LDA #57 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 90 00 BCC *+2 18 CLC D0 F9 BNE *-5 |
Clobbers A, Z&N, and C |
11 bytes | |
08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts12 10 FA BPL *-4 68 PLA 28 PLP |
Requires @rts12; and writes in stack |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 26 00 ROL $00 66 00 ROR $00 90 F9 BCC *-5 68 PLA |
Clobbers Z&N, and C; and writes in stack |
12 bytes | |
08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP E6 xx INC @zptemp 28 PLP 10 F9 BPL *-5 68 PLA 28 PLP |
Requires @zptemp; and writes in stack |
00 00 BRK 0 08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 68 PLA 28 PLP |
Requires dummy interrupt handler; and writes in stack |
48 PHA 08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 04 00 NOP $00 30 FA BMI *-4 68 PLA 28 PLP |
Clobbers S; requires support for unofficial opcodes; and writes in stack |
13 bytes | |
08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 24 00 BIT $00 28 PLP 18 CLC 10 F8 BPL *-6 68 PLA 28 PLP |
Writes in stack |
25 bytes | |
EA NOP 68 ... PLA × 24 |
Clobbers A, S, and Z&N |
27 bytes | |
68 PLA 48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 20 10 E8 BPL *-22 |
Clobbers A, and Z&N |
33 bytes | |
EA NOP 36 00 ROL $00,X \ × 8 76 00 ROR $00,X / |
Clobbers Z&N |
99 cycles
5 bytes | |
---|---|
A9 LDA #72 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A0 0E LDY #14 EA NOP 88 DEY D0 FA BNE *-4 |
Clobbers Y, and Z&N |
A2 0E LDX #14 EA NOP CA DEX D0 FA BNE *-4 |
Clobbers X, and Z&N |
7 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts15 10 FA BPL *-4 |
Clobbers A, Z&N, and C; requires @rts15; and writes in stack |
A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 18 CLC 10 FA BPL *-4 |
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack |
68 PLA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 |
Clobbers A, S, Z&N, and C; and writes in stack |
08 PHP A9 LDA #65 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #65 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
08 PHP A0 0D LDY #13 EA NOP 88 DEY D0 FA BNE *-4 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 0D LDX #13 EA NOP CA DEX D0 FA BNE *-4 28 PLP |
Clobbers X; and writes in stack |
18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 |
Clobbers A, Z&N, and C; and writes in stack |
9 bytes | |
38 SEC A9 0C LDA #12 24 00 BIT $00 E9 01 SBC #1 D0 F7 BNE *-7 |
Clobbers A, Z&N, C, and V |
68 PLA 08 PHP 38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FA BPL *-4 28 PLP |
Clobbers A, S, and Z&N; and writes in stack |
68 PLA A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 90 00 BCC *+2 18 CLC D0 F9 BNE *-5 |
Clobbers A, S, Z&N, and C |
48 PHA 08 PHP A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 10 FB BPL *-3 28 PLP |
Clobbers A, and S; requires dummy interrupt handler; and writes in stack |
48 ... PHA × 2 A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 10 FB BPL *-3 68 PLA |
Clobbers S, Z&N, and C; requires dummy interrupt handler; and writes in stack |
08 PHP 48 PHA A9 LDA #58 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
EA ... NOP × 2 08 PHP 38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FA BPL *-4 28 PLP |
Clobbers A; and writes in stack |
18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 90 00 BCC *+2 18 CLC D0 F9 BNE *-5 |
Clobbers A, Z&N, and C |
EA ... NOP × 2 48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FA BPL *-4 68 PLA |
Clobbers Z&N, C, V, and D; and writes in stack |
48 PHA A9 2A LDA #$2A ;hides 'ROL A' 00 00... BRK 0 × 2 10 F9 BPL *-5 68 PLA |
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack |
11 bytes | |
EA NOP 08 PHP 48 PHA 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FA BPL *-4 68 PLA 28 PLP |
Writes in stack |
25 bytes | |
68 ... PLA × 24 48 PHA |
Clobbers A, S, and Z&N |
27 bytes | |
A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 22 10 E6 BPL *-24 |
Clobbers A, and Z&N |
34 bytes | |
C5 00 CMP $00 36 00 ROL $00,X \ × 8 76 00 ROR $00,X / |
Clobbers Z&N, and C |
24 00 BIT $00 36 00 ROL $00,X \ × 8 76 00 ROR $00,X / |
Clobbers Z&N, and V |
E6 xx INC @zptemp 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X \ × 7 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
04 00 NOP $00 36 00 ROL $00,X \ × 8 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
35 bytes | |
4C xx xx JMP *+3 36 00 ROL $00,X \ × 8 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
100 cycles
5 bytes | |
---|---|
A9 LDA #73 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A0 0B LDY #11 68 PLA 88 DEY D0 FA BNE *-4 |
Clobbers A, Y, S, and Z&N |
A2 0B LDX #11 68 PLA CA DEX D0 FA BNE *-4 |
Clobbers A, X, S, and Z&N |
7 bytes | |
A0 0B LDY #11 EA ... NOP × 2 88 DEY D0 F9 BNE *-5 |
Clobbers Y, and Z&N |
A2 0B LDX #11 EA ... NOP × 2 CA DEX D0 F9 BNE *-5 |
Clobbers X, and Z&N |
08 PHP A9 LDA #66 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #66 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
EA NOP 08 PHP A0 12 LDY #18 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
EA NOP 08 PHP A2 12 LDX #18 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
EA NOP 38 SEC A9 13 LDA #19 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
E6 xx INC @zptemp A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 |
Clobbers A, Z&N, and C; requires @zptemp; and writes in stack |
EA NOP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 |
Clobbers A, S, Z&N, and C; and writes in stack |
9 bytes | |
08 PHP 38 SEC A9 12 LDA #18 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
48 PHA 38 SEC A9 12 LDA #18 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
08 PHP 48 PHA A9 LDA #59 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
E6 xx INC @zptemp A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 90 00 BCC *+2 18 CLC D0 F9 BNE *-5 |
Clobbers A, Z&N, and C; and requires @zptemp |
48 PHA 18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 10 FB BPL *-3 68 PLA |
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack |
11 bytes | |
EA NOP A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 90 00 BCC *+2 18 CLC D0 F9 BNE *-5 |
Clobbers A, Z&N, and C |
48 PHA 08 PHP 48 PHA 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FA BPL *-4 68 PLA 28 PLP |
Clobbers S; and writes in stack |
12 bytes | |
08 PHP 24 00 BIT $00 48 PHA 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FA BPL *-4 68 PLA 28 PLP |
Writes in stack |
25 bytes | |
68 ... PLA × 25 |
Clobbers A, S, and Z&N |
28 bytes | |
EA NOP 68 PLA 48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 20 10 E8 BPL *-22 |
Clobbers A, and Z&N |
34 bytes | |
EA ... NOP × 2 36 00 ROL $00,X \ × 8 76 00 ROR $00,X / |
Clobbers Z&N |
101 cycles
5 bytes | |
---|---|
A0 14 LDY #20 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A2 14 LDX #20 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A9 LDA #74 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
7 bytes | |
A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA NOP 48 PHA 30 FA BMI *-4 |
Clobbers A, S, Z&N, C, and V; and writes in stack |
38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only EA NOP D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
08 PHP A9 LDA #67 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #67 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts15 10 FA BPL *-4 |
Clobbers A, Z&N, and C; requires @rts15; and writes in stack |
38 SEC A9 0E LDA #14 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 |
Clobbers A, Z&N, C, and V |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 18 CLC 10 FA BPL *-4 |
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack |
48 PHA 08 PHP A2 12 LDX #18 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X, and S; and writes in stack |
48 PHA 08 PHP A0 12 LDY #18 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y, and S; and writes in stack |
EA NOP 68 PLA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 |
Clobbers A, S, Z&N, and C; and writes in stack |
9 bytes | |
08 PHP A6 00 LDX $00 A2 12 LDX #18 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
08 PHP A4 00 LDY $00 A0 12 LDY #18 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
18 ... CLC × 3 A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 |
Clobbers A, Z&N, and C; and writes in stack |
08 PHP A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts14 10 FA BPL *-4 28 PLP |
Clobbers A; requires @rts14; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts14 10 FA BPL *-4 68 PLA |
Clobbers Z&N, and C; requires @rts14; and writes in stack |
08 PHP 48 PHA A9 LDA #60 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP 38 SEC A9 0D LDA #13 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 28 PLP |
Clobbers A; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP \ × 2 28 PLP / 10 F9 BPL *-5 68 PLA |
Clobbers Z&N, and C; and writes in stack |
EA NOP 68 PLA A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 90 00 BCC *+2 18 CLC D0 F9 BNE *-5 |
Clobbers A, S, Z&N, and C |
11 bytes | |
08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 2 18 CLC D0 FA BNE *-4 68 PLA 28 PLP |
Writes in stack |
18 ... CLC × 3 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 90 00 BCC *+2 18 CLC D0 F9 BNE *-5 |
Clobbers A, Z&N, and C |
26 bytes | |
EA NOP 68 ... PLA × 24 48 PHA |
Clobbers A, S, and Z&N |
28 bytes | |
EA NOP A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 22 10 E6 BPL *-24 |
Clobbers A, and Z&N |
34 bytes | |
E6 xx INC @zptemp 36 00 ROL $00,X \ × 8 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
35 bytes | |
EA NOP C5 00 CMP $00 36 00 ROL $00,X \ × 8 76 00 ROR $00,X / |
Clobbers Z&N, and C |
EA NOP 24 00 BIT $00 36 00 ROL $00,X \ × 8 76 00 ROR $00,X / |
Clobbers Z&N, and V |
EA NOP 04 00 NOP $00 36 00 ROL $00,X \ × 8 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
36 bytes | |
EA NOP 4C xx xx JMP *+3 36 00 ROL $00,X \ × 8 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
102 cycles
5 bytes | |
---|---|
A9 LDA #75 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
7 bytes | |
48 PHA A2 0E LDX #14 EA NOP CA DEX D0 FA BNE *-4 |
Clobbers X, S, and Z&N; and writes in stack |
48 PHA A0 0E LDY #14 EA NOP 88 DEY D0 FA BNE *-4 |
Clobbers Y, S, and Z&N; and writes in stack |
EA NOP A2 0B LDX #11 68 PLA CA DEX D0 FA BNE *-4 |
Clobbers A, X, S, and Z&N |
EA NOP A0 0B LDY #11 68 PLA 88 DEY D0 FA BNE *-4 |
Clobbers A, Y, S, and Z&N |
08 PHP A9 LDA #68 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #68 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
08 PHP A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 28 PLP |
Clobbers A; and writes in stack |
A6 00 LDX $00 A2 0E LDX #14 EA NOP CA DEX D0 FA BNE *-4 |
Clobbers X, and Z&N |
A4 00 LDY $00 A0 0E LDY #14 EA NOP 88 DEY D0 FA BNE *-4 |
Clobbers Y, and Z&N |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 68 PLA |
Clobbers Z&N, and C; and writes in stack |
68 PLA 38 SEC A9 13 LDA #19 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, S, Z&N, C, and V |
38 SEC A9 EB LDA #$EB ;hides 'SBC #$1A' 1A NOP ;first loop only EA ... NOP × 2 B0 F8 BCS *-6 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
9 bytes | |
EA ... NOP × 2 08 PHP A0 12 LDY #18 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
EA ... NOP × 2 08 PHP A2 12 LDX #18 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
38 SEC A9 0B LDA #11 EA ... NOP × 2 E9 01 SBC #1 D0 F7 BNE *-7 |
Clobbers A, Z&N, C, and V |
08 PHP 48 PHA A9 LDA #61 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP 48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FA BPL *-4 68 PLA 28 PLP |
Writes in stack |
68 PLA 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 90 00 BCC *+2 18 CLC D0 F9 BNE *-5 |
Clobbers A, Z&N, and C |
26 bytes | |
EA NOP 68 ... PLA × 25 |
Clobbers A, S, and Z&N |
28 bytes | |
68 PLA 48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 21 10 E7 BPL *-23 |
Clobbers A, and Z&N |
35 bytes | |
EA ... NOP × 3 36 00 ROL $00,X \ × 8 76 00 ROR $00,X / |
Clobbers Z&N |
103 cycles
5 bytes | |
---|---|
A9 LDA #76 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
EA NOP A0 14 LDY #20 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
EA NOP A2 14 LDX #20 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
18 CLC A9 69 LDA #$69 ;hides 'ADC #$08' 08 PHP ;first loop only 90 FA BCC *-4 |
Clobbers A, S, Z&N, C, and V; and writes in stack |
7 bytes | |
08 PHP A2 13 LDX #19 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 13 LDY #19 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
38 SEC A9 14 LDA #20 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
A9 0A LDA #$0A ;hides 'ASL A' 48 ... PHA × 2 18 CLC D0 FA BNE *-4 |
Clobbers A, S, Z&N, and C; and writes in stack |
08 PHP A9 LDA #69 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #69 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 3 18 CLC D0 F9 BNE *-5 |
Clobbers A, Z&N, and C |
9 bytes | |
08 PHP 48 PHA A9 LDA #62 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
8C TXA 48 PHA A2 0D LDX #13 EA NOP CA DEX D0 FA BNE *-4 68 PLA AA TAX |
Clobbers A, and Z&N; and writes in stack |
08 PHP 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts14 10 FA BPL *-4 28 PLP |
Clobbers A; requires @rts14; and writes in stack |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts14 10 FA BPL *-4 68 PLA |
Clobbers Z&N, and C; requires @rts14; and writes in stack |
08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 10 FB BPL *-3 68 PLA 28 PLP |
Requires dummy interrupt handler; and writes in stack |
48 PHA 08 PHP 38 SEC A9 12 LDA #18 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A, and S; and writes in stack |
48 ... PHA × 2 38 SEC A9 12 LDA #18 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers S, Z&N, C, and V; and writes in stack |
11 bytes | |
08 PHP A5 00 LDA $00 38 SEC A9 12 LDA #18 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 08 PHP \ × 2 28 PLP / 10 F9 BPL *-5 68 PLA |
Clobbers Z&N, and C; and writes in stack |
12 bytes | |
08 PHP 48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 2 18 CLC D0 FA BNE *-4 68 PLA 28 PLP |
Writes in stack |
26 bytes | |
68 ... PLA × 25 48 PHA |
Clobbers A, S, and Z&N |
28 bytes | |
A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 23 10 E5 BPL *-25 |
Clobbers A, and Z&N |
35 bytes | |
EA NOP E6 xx INC @zptemp 36 00 ROL $00,X \ × 8 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
36 bytes | |
EA ... NOP × 2 C5 00 CMP $00 36 00 ROL $00,X \ × 8 76 00 ROR $00,X / |
Clobbers Z&N, and C |
EA ... NOP × 2 24 00 BIT $00 36 00 ROL $00,X \ × 8 76 00 ROR $00,X / |
Clobbers Z&N, and V |
EA ... NOP × 2 04 00 NOP $00 36 00 ROL $00,X \ × 8 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
37 bytes | |
EA ... NOP × 2 4C xx xx JMP *+3 36 00 ROL $00,X \ × 8 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
104 cycles
5 bytes | |
---|---|
A9 LDA #77 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
48 PHA A0 14 LDY #20 88 DEY D0 FB BNE *-3 |
Clobbers Y, S, and Z&N; and writes in stack |
48 PHA A2 14 LDX #20 CA DEX D0 FB BNE *-3 |
Clobbers X, S, and Z&N; and writes in stack |
7 bytes | |
A6 00 LDX $00 A2 14 LDX #20 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A4 00 LDY $00 A0 14 LDY #20 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A9 0A LDA #$0A ;hides 'ASL A' 48 PHA 00 00 BRK 0 10 FA BPL *-4 |
Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack |
08 PHP A9 LDA #70 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #70 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts14 18 CLC 10 F9 BPL *-5 |
Clobbers A, Z&N, and C; requires @rts14; and writes in stack |
A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp 00 00 BRK 0 10 F9 BPL *-5 |
Clobbers A, Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack |
48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA NOP 48 PHA 30 FA BMI *-4 |
Clobbers A, S, Z&N, C, and V; and writes in stack |
A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 00 00 BRK 0 10 F9 BPL *-5 |
Clobbers A, Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack |
9 bytes | |
08 PHP 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 28 PLP |
Clobbers A; and writes in stack |
08 PHP A0 0C LDY #12 C5 00 CMP $00 88 DEY D0 F9 BNE *-5 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 0C LDX #12 C5 00 CMP $00 CA DEX D0 F9 BNE *-5 28 PLP |
Clobbers X; and writes in stack |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 68 PLA |
Clobbers Z&N, and C; and writes in stack |
EA NOP 68 PLA 38 SEC A9 13 LDA #19 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, S, Z&N, C, and V |
04 00 NOP $00 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only EA NOP D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
08 PHP 48 PHA A9 LDA #63 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
A5 00 LDA $00 38 SEC A9 0E LDA #14 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 |
Clobbers A, Z&N, C, and V |
11 bytes | |
EA NOP 08 PHP 48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FA BPL *-4 68 PLA 28 PLP |
Writes in stack |
EA NOP 68 PLA 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 90 00 BCC *+2 18 CLC D0 F9 BNE *-5 |
Clobbers A, Z&N, and C |
26 bytes | |
68 ... PLA × 26 |
Clobbers A, S, and Z&N |
29 bytes | |
EA NOP 68 PLA 48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 21 10 E7 BPL *-23 |
Clobbers A, and Z&N |
36 bytes | |
26 00 ROL $00 \ × 2 66 00 ROR $00 / 36 00 ROL $00,X \ × 7 76 00 ROR $00,X / |
Clobbers Z&N |
105 cycles
5 bytes | |
---|---|
A9 LDA #78 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A0 0D LDY #13 48 PHA 88 DEY D0 FA BNE *-4 |
Clobbers Y, S, and Z&N; and writes in stack |
A2 0D LDX #13 48 PHA CA DEX D0 FA BNE *-4 |
Clobbers X, S, and Z&N; and writes in stack |
68 PLA A2 14 LDX #20 CA DEX D0 FB BNE *-3 |
Clobbers A, X, S, and Z&N |
68 PLA A0 14 LDY #20 88 DEY D0 FB BNE *-3 |
Clobbers A, Y, S, and Z&N |
7 bytes | |
EA ... NOP × 2 A2 14 LDX #20 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
EA ... NOP × 2 A0 14 LDY #20 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
EA NOP 18 CLC A9 69 LDA #$69 ;hides 'ADC #$08' 08 PHP ;first loop only 90 FA BCC *-4 |
Clobbers A, S, Z&N, C, and V; and writes in stack |
08 PHP A9 LDA #71 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #71 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
EA NOP 08 PHP A2 13 LDX #19 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
EA NOP 08 PHP A0 13 LDY #19 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
EA NOP 38 SEC A9 14 LDA #20 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 48 ... PHA × 2 18 CLC D0 FA BNE *-4 |
Clobbers A, S, Z&N, and C; and writes in stack |
9 bytes | |
08 PHP 38 SEC A9 13 LDA #19 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 3 18 CLC D0 F9 BNE *-5 |
Clobbers A, Z&N, and C |
48 PHA 38 SEC A9 13 LDA #19 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
48 ... PHA × 2 A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 68 PLA |
Clobbers S, Z&N, and C; and writes in stack |
08 PHP 48 PHA A9 LDA #64 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
C5 00 CMP $00 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 68 PLA |
Clobbers Z&N, and C; and writes in stack |
11 bytes | |
08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA ... NOP × 2 30 FA BMI *-4 68 PLA 28 PLP |
Writes in stack |
27 bytes | |
EA NOP 68 ... PLA × 25 48 PHA |
Clobbers A, S, and Z&N |
29 bytes | |
EA NOP A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 23 10 E5 BPL *-25 |
Clobbers A, and Z&N |
36 bytes | |
EA ... NOP × 2 E6 xx INC @zptemp 36 00 ROL $00,X \ × 8 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
37 bytes | |
EA ... NOP × 3 C5 00 CMP $00 36 00 ROL $00,X \ × 8 76 00 ROR $00,X / |
Clobbers Z&N, and C |
EA ... NOP × 3 24 00 BIT $00 36 00 ROL $00,X \ × 8 76 00 ROR $00,X / |
Clobbers Z&N, and V |
EA ... NOP × 3 04 00 NOP $00 36 00 ROL $00,X \ × 8 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
38 bytes | |
EA ... NOP × 3 4C xx xx JMP *+3 36 00 ROL $00,X \ × 8 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
106 cycles
5 bytes | |
---|---|
A0 15 LDY #21 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A2 15 LDX #21 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A9 LDA #79 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A9 E9 LDA #$E9 ;hides 'SBC #$08' 08 PHP ;first loop only EA NOP 30 FB BMI *-3 |
Clobbers A, S, Z&N, C, and V; and writes in stack |
7 bytes | |
08 PHP A9 LDA #72 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #72 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
08 PHP A2 0E LDX #14 EA NOP CA DEX D0 FA BNE *-4 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 0E LDY #14 EA NOP 88 DEY D0 FA BNE *-4 28 PLP |
Clobbers Y; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 48 ... PHA × 2 18 CLC D0 FA BNE *-4 |
Clobbers A, S, Z&N, and C; and writes in stack |
9 bytes | |
08 PHP A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts15 10 FA BPL *-4 28 PLP |
Clobbers A; requires @rts15; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts15 10 FA BPL *-4 68 PLA |
Clobbers Z&N, and C; requires @rts15; and writes in stack |
A5 00 LDA $00 38 SEC A9 14 LDA #20 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts14 18 CLC 10 F9 BPL *-5 |
Clobbers A, Z&N, and C; requires @rts14; and writes in stack |
08 PHP A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 18 CLC 10 FA BPL *-4 28 PLP |
Clobbers A; requires dummy interrupt handler; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 18 CLC 10 FA BPL *-4 68 PLA |
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack |
68 PLA 08 PHP A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 28 PLP |
Clobbers A, S, and Z&N; and writes in stack |
08 PHP 48 PHA A9 LDA #65 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP 18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 28 PLP |
Clobbers A; and writes in stack |
48 PHA 18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 68 PLA |
Clobbers Z&N, and C; and writes in stack |
A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 3 18 CLC D0 F9 BNE *-5 |
Clobbers A, Z&N, and C |
11 bytes | |
48 PHA 08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 10 FB BPL *-3 68 PLA 28 PLP |
Clobbers S; requires dummy interrupt handler; and writes in stack |
12 bytes | |
EA ... NOP × 2 08 PHP 48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FA BPL *-4 68 PLA 28 PLP |
Writes in stack |
27 bytes | |
EA NOP 68 ... PLA × 26 |
Clobbers A, S, and Z&N |
29 bytes | |
68 PLA 48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 22 10 E6 BPL *-24 |
Clobbers A, and Z&N |
36 bytes | |
26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X \ × 8 76 00 ROR $00,X / |
Clobbers Z&N |
107 cycles
5 bytes | |
---|---|
A9 LDA #80 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A2 18 LDX #24 ;hides 'CLC' CA ... DEX × 2 D0 FB BNE *-3 |
Clobbers X, and Z&N |
A0 18 LDY #24 ;hides 'CLC' 88 ... DEY × 2 D0 FB BNE *-3 |
Clobbers Y, and Z&N |
7 bytes | |
68 PLA 18 CLC A9 69 LDA #$69 ;hides 'ADC #$08' 08 PHP ;first loop only 90 FA BCC *-4 |
Clobbers A, S, Z&N, C, and V; and writes in stack |
08 PHP A9 LDA #73 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #73 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
68 PLA A9 0A LDA #$0A ;hides 'ASL A' 48 ... PHA × 2 18 CLC D0 FA BNE *-4 |
Clobbers A, S, Z&N, and C; and writes in stack |
68 PLA 38 SEC A9 14 LDA #20 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, S, Z&N, C, and V |
9 bytes | |
98 TYA 48 PHA A0 13 LDY #19 88 DEY D0 FB BNE *-3 68 PLA A8 TAY |
Clobbers A, and Z&N; and writes in stack |
08 PHP A2 0B LDX #11 EA ... NOP × 2 CA DEX D0 F9 BNE *-5 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 0B LDY #11 EA ... NOP × 2 88 DEY D0 F9 BNE *-5 28 PLP |
Clobbers Y; and writes in stack |
38 SEC A9 0D LDA #13 24 00 BIT $00 E9 01 SBC #1 D0 F7 BNE *-7 |
Clobbers A, Z&N, C, and V |
68 PLA A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 3 18 CLC D0 F9 BNE *-5 |
Clobbers A, S, Z&N, and C |
08 PHP 48 PHA A9 LDA #66 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
EA NOP 08 PHP 38 SEC A9 13 LDA #19 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 3 18 CLC D0 F9 BNE *-5 |
Clobbers A, Z&N, and C |
EA NOP 48 PHA 38 SEC A9 13 LDA #19 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
E6 xx INC @zptemp 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 68 PLA |
Clobbers Z&N, and C; requires @zptemp; and writes in stack |
EA NOP 48 ... PHA × 2 A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 68 PLA |
Clobbers S, Z&N, and C; and writes in stack |
11 bytes | |
08 PHP 48 PHA 38 SEC A9 12 LDA #18 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
27 bytes | |
68 ... PLA × 26 48 PHA |
Clobbers A, S, and Z&N |
29 bytes | |
A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 24 10 E4 BPL *-26 |
Clobbers A, and Z&N |
37 bytes | |
EA ... NOP × 3 E6 xx INC @zptemp 36 00 ROL $00,X \ × 8 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
38 bytes | |
C5 00 CMP $00 26 00 ROL $00 \ × 2 66 00 ROR $00 / 36 00 ROL $00,X \ × 7 76 00 ROR $00,X / |
Clobbers Z&N, and C |
24 00 BIT $00 26 00 ROL $00 \ × 2 66 00 ROR $00 / 36 00 ROL $00,X \ × 7 76 00 ROR $00,X / |
Clobbers Z&N, and V |
04 00 NOP $00 26 00 ROL $00 \ × 2 66 00 ROR $00 / 36 00 ROL $00,X \ × 7 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
39 bytes | |
4C xx xx JMP *+3 26 00 ROL $00 \ × 2 66 00 ROR $00 / 36 00 ROL $00,X \ × 7 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
108 cycles
5 bytes | |
---|---|
A9 LDA #81 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
EA NOP A2 15 LDX #21 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
EA NOP A0 15 LDY #21 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
7 bytes | |
08 PHP A0 14 LDY #20 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 14 LDX #20 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
38 SEC A9 15 LDA #21 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
08 PHP A9 LDA #74 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #74 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
00 00 BRK 0 A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 |
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack |
9 bytes | |
EA NOP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 48 ... PHA × 2 18 CLC D0 FA BNE *-4 |
Clobbers A, S, Z&N, and C; and writes in stack |
08 PHP 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only EA NOP D0 F9 BNE *-5 28 PLP |
Clobbers A; requires support for unofficial opcodes; and writes in stack |
48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only EA NOP D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
08 PHP 48 PHA A9 LDA #67 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP 38 SEC A9 0E LDA #14 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 28 PLP |
Clobbers A; and writes in stack |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts15 10 FA BPL *-4 68 PLA |
Clobbers Z&N, and C; requires @rts15; and writes in stack |
48 PHA 38 SEC A9 0E LDA #14 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
E6 xx INC @zptemp A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 3 18 CLC D0 F9 BNE *-5 |
Clobbers A, Z&N, and C; and requires @zptemp |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 18 CLC 10 FA BPL *-4 68 PLA |
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack |
48 ... PHA × 3 A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 68 PLA |
Clobbers S, Z&N, and C; and writes in stack |
11 bytes | |
48 PHA 18 ... CLC × 3 A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 68 PLA |
Clobbers Z&N, and C; and writes in stack |
EA NOP A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 3 18 CLC D0 F9 BNE *-5 |
Clobbers A, Z&N, and C |
08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts14 10 FA BPL *-4 68 PLA 28 PLP |
Requires @rts14; and writes in stack |
12 bytes | |
08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP \ × 2 28 PLP / 10 F9 BPL *-5 68 PLA 28 PLP |
Writes in stack |
27 bytes | |
68 ... PLA × 27 |
Clobbers A, S, and Z&N |
30 bytes | |
EA NOP 68 PLA 48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 22 10 E6 BPL *-24 |
Clobbers A, and Z&N |
36 bytes | |
36 00 ROL $00,X \ × 9 76 00 ROR $00,X / |
Clobbers Z&N |
109 cycles
5 bytes | |
---|---|
A9 LDA #82 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
48 PHA A2 15 LDX #21 CA DEX D0 FB BNE *-3 |
Clobbers X, S, and Z&N; and writes in stack |
48 PHA A0 15 LDY #21 88 DEY D0 FB BNE *-3 |
Clobbers Y, S, and Z&N; and writes in stack |
A0 0C LDY #12 68 PLA 88 DEY D0 FA BNE *-4 |
Clobbers A, Y, S, and Z&N |
A2 0C LDX #12 68 PLA CA DEX D0 FA BNE *-4 |
Clobbers A, X, S, and Z&N |
7 bytes | |
A6 00 LDX $00 A2 15 LDX #21 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A4 00 LDY $00 A0 15 LDY #21 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 90 FB BCC *-3 |
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack |
48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$08' 08 PHP ;first loop only EA NOP 30 FB BMI *-3 |
Clobbers A, S, Z&N, C, and V; and writes in stack |
08 PHP A9 LDA #75 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #75 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts15 18 CLC 10 F9 BPL *-5 |
Clobbers A, Z&N, and C; requires @rts15; and writes in stack |
A9 0A LDA #$0A ;hides 'ASL A' 48 PHA 20 xx xx JSR @rts14 10 F9 BPL *-5 |
Clobbers A, S, Z&N, and C; requires @rts14; and writes in stack |
18 CLC A9 F4 LDA #244 ;hides 'NOP zp,X' EA NOP 69 01 ADC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
9 bytes | |
20 xx xx JSR @rts14 A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 |
Clobbers A, Z&N, and C; requires @rts14; and writes in stack |
48 PHA 08 PHP A0 0E LDY #14 EA NOP 88 DEY D0 FA BNE *-4 28 PLP |
Clobbers Y, and S; and writes in stack |
48 PHA 08 PHP A2 0E LDX #14 EA NOP CA DEX D0 FA BNE *-4 28 PLP |
Clobbers X, and S; and writes in stack |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 48 ... PHA × 2 08 PHP 28 PLP 90 F9 BCC *-5 |
Clobbers A, S, Z&N, and C; and writes in stack |
EA NOP 68 PLA 38 SEC A9 14 LDA #20 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, S, Z&N, C, and V |
08 PHP 48 PHA A9 LDA #68 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 68 PLA 28 PLP |
Writes in stack |
EA NOP 38 SEC A9 0D LDA #13 24 00 BIT $00 E9 01 SBC #1 D0 F7 BNE *-7 |
Clobbers A, Z&N, C, and V |
EA NOP 68 PLA A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 3 18 CLC D0 F9 BNE *-5 |
Clobbers A, S, Z&N, and C |
11 bytes | |
18 ... CLC × 3 A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 3 18 CLC D0 F9 BNE *-5 |
Clobbers A, Z&N, and C |
28 bytes | |
EA NOP 68 ... PLA × 26 48 PHA |
Clobbers A, S, and Z&N |
30 bytes | |
EA NOP A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 24 10 E4 BPL *-26 |
Clobbers A, and Z&N |
38 bytes | |
C5 00 CMP $00 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X \ × 8 76 00 ROR $00,X / |
Clobbers Z&N, and C |
24 00 BIT $00 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X \ × 8 76 00 ROR $00,X / |
Clobbers Z&N, and V |
E6 xx INC @zptemp 26 00 ROL $00 \ × 2 66 00 ROR $00 / 36 00 ROL $00,X \ × 7 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
04 00 NOP $00 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X \ × 8 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
39 bytes | |
4C xx xx JMP *+3 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X \ × 8 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
110 cycles
5 bytes | |
---|---|
A9 LDA #83 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
68 PLA A0 15 LDY #21 88 DEY D0 FB BNE *-3 |
Clobbers A, Y, S, and Z&N |
68 PLA A2 15 LDX #21 CA DEX D0 FB BNE *-3 |
Clobbers A, X, S, and Z&N |
7 bytes | |
EA ... NOP × 2 A0 15 LDY #21 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
EA ... NOP × 2 A2 15 LDX #21 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
68 PLA A9 E9 LDA #$E9 ;hides 'SBC #$08' 08 PHP ;first loop only EA NOP 30 FB BMI *-3 |
Clobbers A, S, Z&N, C, and V; and writes in stack |
08 PHP A9 LDA #76 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #76 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
EA NOP 08 PHP A0 14 LDY #20 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
EA NOP 08 PHP A2 14 LDX #20 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
EA NOP 38 SEC A9 15 LDA #21 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
9 bytes | |
08 PHP 38 SEC A9 14 LDA #20 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
48 PHA 38 SEC A9 14 LDA #20 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
08 PHP 48 PHA A9 LDA #69 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 3 18 CLC D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, and C; and writes in stack |
A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 |
Clobbers A, Z&N, and C |
12 bytes | |
48 PHA 8C TXA 48 PHA A2 0D LDX #13 EA NOP CA DEX D0 FA BNE *-4 68 PLA AA TAX 68 PLA |
Clobbers Z&N; and writes in stack |
08 PHP 48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts14 10 FA BPL *-4 68 PLA 28 PLP |
Requires @rts14; and writes in stack |
08 PHP 28 PLP 08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 10 FB BPL *-3 68 PLA 28 PLP |
Requires dummy interrupt handler; and writes in stack |
48 PHA 08 PHP 48 PHA 38 SEC A9 12 LDA #18 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Clobbers S; and writes in stack |
13 bytes | |
08 PHP 48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 08 PHP \ × 2 28 PLP / 10 F9 BPL *-5 68 PLA 28 PLP |
Writes in stack |
28 bytes | |
EA NOP 68 ... PLA × 27 |
Clobbers A, S, and Z&N |
30 bytes | |
68 PLA 48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 23 10 E5 BPL *-25 |
Clobbers A, and Z&N |
37 bytes | |
EA NOP 36 00 ROL $00,X \ × 9 76 00 ROR $00,X / |
Clobbers Z&N |
111 cycles
5 bytes | |
---|---|
A2 16 LDX #22 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A0 16 LDY #22 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FC BNE *-2 |
Clobbers A, Z&N, C, and V |
7 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 18 CLC D0 FA BNE *-4 |
Clobbers A, Z&N, and C; and writes in stack |
08 PHP A9 LDA #77 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #77 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
48 PHA 08 PHP A2 14 LDX #20 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X, and S; and writes in stack |
48 PHA 08 PHP A0 14 LDY #20 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y, and S; and writes in stack |
9 bytes | |
08 PHP A6 00 LDX $00 A2 14 LDX #20 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
08 PHP A4 00 LDY $00 A0 14 LDY #20 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
A9 0A LDA #$0A ;hides 'ASL A' 18 ... CLC × 2 90 00 BCC *+2 18 CLC D0 F8 BNE *-6 |
Clobbers A, Z&N, and C |
08 PHP 48 PHA A9 LDA #70 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts14 18 CLC 10 F9 BPL *-5 28 PLP |
Clobbers A; requires @rts14; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts14 18 CLC 10 F9 BPL *-5 68 PLA |
Clobbers Z&N, and C; requires @rts14; and writes in stack |
08 PHP A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp 00 00 BRK 0 10 F9 BPL *-5 28 PLP |
Clobbers A; requires @zptemp, and dummy interrupt handler; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp 00 00 BRK 0 10 F9 BPL *-5 68 PLA |
Clobbers Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack |
68 PLA 98 TYA 48 PHA A0 13 LDY #19 88 DEY D0 FB BNE *-3 68 PLA A8 TAY |
Clobbers A, S, and Z&N; and writes in stack |
08 PHP A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 00 00 BRK 0 10 F9 BPL *-5 28 PLP |
Clobbers A; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 00 00 BRK 0 10 F9 BPL *-5 68 PLA |
Clobbers Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack |
48 PHA 08 PHP 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only EA NOP D0 F9 BNE *-5 28 PLP |
Clobbers A, and S; requires support for unofficial opcodes; and writes in stack |
48 ... PHA × 2 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only EA NOP D0 F9 BNE *-5 68 PLA |
Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
11 bytes | |
08 PHP 48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 68 PLA 28 PLP |
Writes in stack |
28 bytes | |
68 ... PLA × 27 48 PHA |
Clobbers A, S, and Z&N |
30 bytes | |
A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 25 10 E3 BPL *-27 |
Clobbers A, and Z&N |
38 bytes | |
C5 00 CMP $00 36 00 ROL $00,X \ × 9 76 00 ROR $00,X / |
Clobbers Z&N, and C |
24 00 BIT $00 36 00 ROL $00,X \ × 9 76 00 ROR $00,X / |
Clobbers Z&N, and V |
E6 xx INC @zptemp 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X \ × 8 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
04 00 NOP $00 36 00 ROL $00,X \ × 9 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
39 bytes | |
4C xx xx JMP *+3 36 00 ROL $00,X \ × 9 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
112 cycles
5 bytes | |
---|---|
A9 LDA #85 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
7 bytes | |
48 ... PHA × 2 A2 15 LDX #21 CA DEX D0 FB BNE *-3 |
Clobbers X, S, and Z&N; and writes in stack |
48 ... PHA × 2 A0 15 LDY #21 88 DEY D0 FB BNE *-3 |
Clobbers Y, S, and Z&N; and writes in stack |
EA NOP 68 PLA A2 15 LDX #21 CA DEX D0 FB BNE *-3 |
Clobbers A, X, S, and Z&N |
EA NOP 68 PLA A0 15 LDY #21 88 DEY D0 FB BNE *-3 |
Clobbers A, Y, S, and Z&N |
08 PHP A9 LDA #78 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #78 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
EA ... NOP × 3 A2 15 LDX #21 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
EA ... NOP × 3 A0 15 LDY #21 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
68 PLA 38 SEC A9 15 LDA #21 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, S, Z&N, C, and V |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 90 FB BCC *-3 |
Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack |
9 bytes | |
8C TXA 48 PHA A2 14 LDX #20 CA DEX D0 FB BNE *-3 68 PLA AA TAX |
Clobbers A, and Z&N; and writes in stack |
08 PHP A0 0D LDY #13 C5 00 CMP $00 88 DEY D0 F9 BNE *-5 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 0D LDX #13 C5 00 CMP $00 CA DEX D0 F9 BNE *-5 28 PLP |
Clobbers X; and writes in stack |
EA ... NOP × 2 38 SEC A9 15 LDA #21 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
08 PHP 48 PHA A9 LDA #71 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
EA NOP 08 PHP 38 SEC A9 14 LDA #20 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
EA NOP 48 PHA 38 SEC A9 14 LDA #20 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
11 bytes | |
08 PHP 48 PHA 38 SEC A9 13 LDA #19 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
EA NOP A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 |
Clobbers A, Z&N, and C |
28 bytes | |
68 ... PLA × 28 |
Clobbers A, S, and Z&N |
31 bytes | |
EA NOP 68 PLA 48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 23 10 E5 BPL *-25 |
Clobbers A, and Z&N |
38 bytes | |
EA ... NOP × 2 36 00 ROL $00,X \ × 9 76 00 ROR $00,X / |
Clobbers Z&N |
113 cycles
5 bytes | |
---|---|
A9 LDA #86 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A2 10 LDX #16 EA NOP CA DEX D0 FA BNE *-4 |
Clobbers X, and Z&N |
A0 10 LDY #16 EA NOP 88 DEY D0 FA BNE *-4 |
Clobbers Y, and Z&N |
18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FA BNE *-4 |
Clobbers A, Z&N, C, and V |
7 bytes | |
08 PHP A0 15 LDY #21 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 15 LDX #21 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
08 PHP A9 LDA #79 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #79 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 18 CLC D0 FA BNE *-4 |
Clobbers A, Z&N, and C; and writes in stack |
9 bytes | |
08 PHP 48 PHA A9 LDA #72 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 18 ... CLC × 2 90 00 BCC *+2 18 CLC D0 F8 BNE *-6 |
Clobbers A, Z&N, and C |
48 PHA 08 PHP 38 SEC A9 14 LDA #20 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A, and S; and writes in stack |
48 ... PHA × 2 38 SEC A9 14 LDA #20 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers S, Z&N, C, and V; and writes in stack |
11 bytes | |
08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts15 10 FA BPL *-4 68 PLA 28 PLP |
Requires @rts15; and writes in stack |
08 PHP A5 00 LDA $00 38 SEC A9 14 LDA #20 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
24 00 BIT $00 48 PHA 38 SEC A9 14 LDA #20 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts14 18 CLC 10 F9 BPL *-5 68 PLA |
Clobbers Z&N, and C; requires @rts14; and writes in stack |
08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 18 CLC 10 FA BPL *-4 68 PLA 28 PLP |
Requires dummy interrupt handler; and writes in stack |
48 ... PHA × 2 A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 3 18 CLC D0 F9 BNE *-5 68 PLA |
Clobbers S, Z&N, and C; and writes in stack |
12 bytes | |
08 PHP 48 PHA 18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 68 PLA 28 PLP |
Writes in stack |
29 bytes | |
EA NOP 68 ... PLA × 27 48 PHA |
Clobbers A, S, and Z&N |
31 bytes | |
EA NOP A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 25 10 E3 BPL *-27 |
Clobbers A, and Z&N |
38 bytes | |
E6 xx INC @zptemp 36 00 ROL $00,X \ × 9 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
39 bytes | |
EA NOP C5 00 CMP $00 36 00 ROL $00,X \ × 9 76 00 ROR $00,X / |
Clobbers Z&N, and C |
EA NOP 24 00 BIT $00 36 00 ROL $00,X \ × 9 76 00 ROR $00,X / |
Clobbers Z&N, and V |
EA NOP 04 00 NOP $00 36 00 ROL $00,X \ × 9 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
40 bytes | |
EA NOP 4C xx xx JMP *+3 36 00 ROL $00,X \ × 9 76 00 ROR $00,X / |
Clobbers Z&N; and not relocatable code |
114 cycles
5 bytes | |
---|---|
A9 LDA #87 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
48 PHA A2 16 LDX #22 CA DEX D0 FB BNE *-3 |
Clobbers X, S, and Z&N; and writes in stack |
48 PHA A0 16 LDY #22 88 DEY D0 FB BNE *-3 |
Clobbers Y, S, and Z&N; and writes in stack |
48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FC BNE *-2 |
Clobbers A, S, Z&N, C, and V; and writes in stack |
7 bytes | |
A6 00 LDX $00 A2 16 LDX #22 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A4 00 LDY $00 A0 16 LDY #22 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A5 00 LDA $00 A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FC BNE *-2 |
Clobbers A, Z&N, C, and V |
08 PHP A9 LDA #80 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #80 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
08 PHP A0 18 LDY #24 ;hides 'CLC' 88 ... DEY × 2 D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 18 LDX #24 ;hides 'CLC' CA ... DEX × 2 D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 18 CLC D0 FA BNE *-4 |
Clobbers A, S, Z&N, and C; and writes in stack |
9 bytes | |
A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 18 CLC D0 FA BNE *-4 |
Clobbers A, Z&N, and C; and writes in stack |
08 PHP 48 PHA A9 LDA #73 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
EA NOP 8C TXA 48 PHA A2 14 LDX #20 CA DEX D0 FB BNE *-3 68 PLA AA TAX |
Clobbers A, and Z&N; and writes in stack |
11 bytes | |
48 PHA 98 TYA 48 PHA A0 13 LDY #19 88 DEY D0 FB BNE *-3 68 PLA A8 TAY 68 PLA |
Clobbers Z&N; and writes in stack |
08 PHP 38 SEC A9 0D LDA #13 24 00 BIT $00 E9 01 SBC #1 D0 F7 BNE *-7 28 PLP |
Clobbers A; and writes in stack |
A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' 18 ... CLC × 2 90 00 BCC *+2 18 CLC D0 F8 BNE *-6 |
Clobbers A, Z&N, and C |
12 bytes | |
EA NOP 08 PHP 48 PHA 38 SEC A9 13 LDA #19 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
29 bytes | |
EA NOP 68 ... PLA × 28 |
Clobbers A, S, and Z&N |
31 bytes | |
68 PLA 48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 24 10 E4 BPL *-26 |
Clobbers A, and Z&N |
39 bytes | |
EA ... NOP × 3 36 00 ROL $00,X \ × 9 76 00 ROR $00,X / |
Clobbers Z&N |
115 cycles
5 bytes | |
---|---|
A9 LDA #88 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
68 PLA A0 16 LDY #22 88 DEY D0 FB BNE *-3 |
Clobbers A, Y, S, and Z&N |
68 PLA A2 16 LDX #22 CA DEX D0 FB BNE *-3 |
Clobbers A, X, S, and Z&N |
68 PLA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FC BNE *-2 |
Clobbers A, S, Z&N, C, and V |
7 bytes | |
EA NOP A0 10 LDY #16 EA NOP 88 DEY D0 FA BNE *-4 |
Clobbers Y, and Z&N |
EA NOP A2 10 LDX #16 EA NOP CA DEX D0 FA BNE *-4 |
Clobbers X, and Z&N |
EA NOP 18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FA BNE *-4 |
Clobbers A, Z&N, C, and V |
08 PHP A9 LDA #81 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #81 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
EA NOP 08 PHP A2 15 LDX #21 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
EA NOP 08 PHP A0 15 LDY #21 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts14 90 FA BCC *-4 |
Clobbers A, Z&N, and C; requires @rts14; and writes in stack |
68 PLA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 18 CLC D0 FA BNE *-4 |
Clobbers A, S, Z&N, and C; and writes in stack |
9 bytes | |
08 PHP 38 SEC A9 15 LDA #21 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
48 PHA 38 SEC A9 15 LDA #21 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
08 PHP 48 PHA A9 LDA #74 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA NOP 36 00 ROL $00,X 76 00 ROR $00,X 90 F8 BCC *-6 |
Clobbers A, Z&N, and C |
00 00 BRK 0 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 68 PLA |
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack |
11 bytes | |
08 PHP 48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only EA NOP D0 F9 BNE *-5 68 PLA 28 PLP |
Requires support for unofficial opcodes; and writes in stack |
12 bytes | |
08 PHP 48 PHA 38 SEC A9 0E LDA #14 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 68 PLA 28 PLP |
Writes in stack |
29 bytes | |
68 ... PLA × 28 48 PHA |
Clobbers A, S, and Z&N |
31 bytes | |
A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 26 10 E2 BPL *-28 |
Clobbers A, and Z&N |
39 bytes | |
EA NOP E6 xx INC @zptemp 36 00 ROL $00,X \ × 9 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
40 bytes | |
EA ... NOP × 2 C5 00 CMP $00 36 00 ROL $00,X \ × 9 76 00 ROR $00,X / |
Clobbers Z&N, and C |
EA ... NOP × 2 24 00 BIT $00 36 00 ROL $00,X \ × 9 76 00 ROR $00,X / |
Clobbers Z&N, and V |
EA ... NOP × 2 04 00 NOP $00 36 00 ROL $00,X \ × 9 76 00 ROR $00,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
116 cycles
5 bytes | |
---|---|
A2 17 LDX #23 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A0 17 LDY #23 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 |
Clobbers A, Z&N, C, and V |
7 bytes | |
08 PHP A9 LDA #82 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #82 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
48 PHA 08 PHP A2 15 LDX #21 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X, and S; and writes in stack |
48 PHA 08 PHP A0 15 LDY #21 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y, and S; and writes in stack |
9 bytes | |
08 PHP A4 00 LDY $00 A0 15 LDY #21 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A6 00 LDX $00 A2 15 LDX #21 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
E6 xx INC @zptemp A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 18 CLC D0 FA BNE *-4 |
Clobbers A, Z&N, and C; requires @zptemp; and writes in stack |
08 PHP 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 90 FB BCC *-3 28 PLP |
Clobbers A; requires dummy interrupt handler; and writes in stack |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 90 FB BCC *-3 68 PLA |
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack |
EA NOP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 18 CLC D0 FA BNE *-4 |
Clobbers A, S, Z&N, and C; and writes in stack |
08 PHP 48 PHA A9 LDA #75 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts15 18 CLC 10 F9 BPL *-5 28 PLP |
Clobbers A; requires @rts15; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts15 18 CLC 10 F9 BPL *-5 68 PLA |
Clobbers Z&N, and C; requires @rts15; and writes in stack |
EA NOP A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 18 CLC D0 FA BNE *-4 |
Clobbers A, Z&N, and C; and writes in stack |
68 PLA 8C TXA 48 PHA A2 14 LDX #20 CA DEX D0 FB BNE *-3 68 PLA AA TAX |
Clobbers A, S, and Z&N; and writes in stack |
08 PHP 18 CLC A9 F4 LDA #244 ;hides 'NOP zp,X' EA NOP 69 01 ADC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; requires support for unofficial opcodes; and writes in stack |
48 PHA 18 CLC A9 F4 LDA #244 ;hides 'NOP zp,X' EA NOP 69 01 ADC #1 D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
11 bytes | |
98 TYA 48 PHA A0 0D LDY #13 A5 00 LDA $00 88 DEY D0 F9 BNE *-5 68 PLA A8 TAY |
Clobbers A, and Z&N; and writes in stack |
20 xx xx JSR @rts14 08 PHP A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 28 PLP |
Clobbers A; requires @rts14; and writes in stack |
20 xx xx JSR @rts14 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 68 PLA |
Clobbers Z&N, and C; requires @rts14; and writes in stack |
E6 xx INC @zptemp A9 0A LDA #$0A ;hides 'ASL A' 18 ... CLC × 2 90 00 BCC *+2 18 CLC D0 F8 BNE *-6 |
Clobbers A, Z&N, and C; and requires @zptemp |
48 ... PHA × 2 08 PHP 38 SEC A9 14 LDA #20 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A, and S; and writes in stack |
48 ... PHA × 3 38 SEC A9 14 LDA #20 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers S, Z&N, C, and V; and writes in stack |
12 bytes | |
08 PHP 28 PLP 08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 68 PLA 28 PLP |
Writes in stack |
EA NOP A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' 18 ... CLC × 2 90 00 BCC *+2 18 CLC D0 F8 BNE *-6 |
Clobbers A, Z&N, and C |
29 bytes | |
68 ... PLA × 29 |
Clobbers A, S, and Z&N |
32 bytes | |
EA NOP 68 PLA 48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 24 10 E4 BPL *-26 |
Clobbers A, and Z&N |
40 bytes | |
26 00 ROL $00 \ × 2 66 00 ROR $00 / 36 00 ROL $00,X \ × 8 76 00 ROR $00,X / |
Clobbers Z&N |
117 cycles
5 bytes | |
---|---|
A9 LDA #90 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
7 bytes | |
A2 0D LDX #13 ;hides 'ORA abs' A5 00 LDA $0 CA DEX D0 FA BNE *-4 |
Clobbers A, X, and Z&N |
A0 0D LDY #13 ;hides 'ORA abs' A5 00 LDA $0 88 DEY D0 FA BNE *-4 |
Clobbers A, Y, and Z&N |
48 ... PHA × 2 A2 16 LDX #22 CA DEX D0 FB BNE *-3 |
Clobbers X, S, and Z&N; and writes in stack |
48 ... PHA × 2 A0 16 LDY #22 88 DEY D0 FB BNE *-3 |
Clobbers Y, S, and Z&N; and writes in stack |
EA NOP 68 PLA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FC BNE *-2 |
Clobbers A, S, Z&N, C, and V |
08 PHP A9 LDA #83 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #83 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
EA ... NOP × 2 A0 10 LDY #16 EA NOP 88 DEY D0 FA BNE *-4 |
Clobbers Y, and Z&N |
EA ... NOP × 2 A2 10 LDX #16 EA NOP CA DEX D0 FA BNE *-4 |
Clobbers X, and Z&N |
EA ... NOP × 2 18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FA BNE *-4 |
Clobbers A, Z&N, C, and V |
9 bytes | |
8C TXA 48 PHA A2 15 LDX #21 CA DEX D0 FB BNE *-3 68 PLA AA TAX |
Clobbers A, and Z&N; and writes in stack |
EA ... NOP × 2 08 PHP A0 15 LDY #21 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
EA ... NOP × 2 08 PHP A2 15 LDX #21 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
08 PHP 48 PHA A9 LDA #76 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
EA NOP 08 PHP 38 SEC A9 15 LDA #21 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
EA NOP 48 PHA 38 SEC A9 15 LDA #21 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
11 bytes | |
08 PHP 48 PHA 38 SEC A9 14 LDA #20 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 36 00 ROL $00,X 76 00 ROR $00,X 90 F8 BCC *-6 |
Clobbers A, Z&N, and C |
30 bytes | |
EA NOP 68 ... PLA × 28 48 PHA |
Clobbers A, S, and Z&N |
32 bytes | |
EA NOP A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 26 10 E2 BPL *-28 |
Clobbers A, and Z&N |
40 bytes | |
EA ... NOP × 2 E6 xx INC @zptemp 36 00 ROL $00,X \ × 9 76 00 ROR $00,X / |
Clobbers Z&N; and requires @zptemp |
118 cycles
5 bytes | |
---|---|
A9 LDA #91 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
EA NOP A2 17 LDX #23 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
EA NOP A0 17 LDY #23 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FA BCS *-4 |
Clobbers A, Z&N, C, and V |
7 bytes | |
08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FC BNE *-2 28 PLP |
Clobbers A; and writes in stack |
08 PHP A0 16 LDY #22 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 16 LDX #22 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FC BNE *-2 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
9 bytes | |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 18 CLC D0 FA BNE *-4 68 PLA |
Clobbers Z&N, and C; and writes in stack |
08 PHP 48 PHA A9 LDA #77 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
11 bytes | |
68 PLA 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 18 ... CLC × 2 90 00 BCC *+2 18 CLC D0 F8 BNE *-6 |
Clobbers A, Z&N, and C |
12 bytes | |
08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts14 18 CLC 10 F9 BPL *-5 68 PLA 28 PLP |
Requires @rts14; and writes in stack |
08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp 00 00 BRK 0 10 F9 BPL *-5 68 PLA 28 PLP |
Requires @zptemp, and dummy interrupt handler; and writes in stack |
08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 00 00 BRK 0 10 F9 BPL *-5 68 PLA 28 PLP |
Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack |
48 PHA 08 PHP 48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only EA NOP D0 F9 BNE *-5 68 PLA 28 PLP |
Clobbers S; requires support for unofficial opcodes; and writes in stack |
13 bytes | |
EA NOP 08 PHP 28 PLP 08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 68 PLA 28 PLP |
Writes in stack |
30 bytes | |
EA NOP 68 ... PLA × 29 |
Clobbers A, S, and Z&N |
32 bytes | |
68 PLA 48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 25 10 E3 BPL *-27 |
Clobbers A, and Z&N |
40 bytes | |
26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X \ × 9 76 00 ROR $00,X / |
Clobbers Z&N |
119 cycles
5 bytes | |
---|---|
A9 LDA #92 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A0 88 LDY #136 ;hides 'DEY' 08 PHP 28 PLP 30 FB BMI *-3 |
Clobbers Y, and Z&N; and writes in stack |
A0 88 LDY #136 ;hides 'DEY' 68 PLA 48 PHA 30 FB BMI *-3 |
Clobbers A, Y, and Z&N |
48 PHA A2 17 LDX #23 CA DEX D0 FB BNE *-3 |
Clobbers X, S, and Z&N; and writes in stack |
48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 |
Clobbers A, S, Z&N, C, and V; and writes in stack |
7 bytes | |
A4 00 LDY $00 A0 17 LDY #23 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A6 00 LDX $00 A2 17 LDX #23 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A5 00 LDA $00 A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 |
Clobbers A, Z&N, C, and V |
A9 0A LDA #$0A ;hides 'ASL A' 48 PHA 08 PHP 28 PLP D0 FA BNE *-4 |
Clobbers A, S, Z&N, and C; and writes in stack |
08 PHP A9 LDA #85 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #85 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 24 00 BIT $00 28 PLP D0 F9 BNE *-5 |
Clobbers A, Z&N, and C; and writes in stack |
9 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 4 18 CLC D0 F8 BNE *-6 |
Clobbers A, Z&N, and C |
48 ... PHA × 2 08 PHP A2 15 LDX #21 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X, and S; and writes in stack |
48 ... PHA × 2 08 PHP A0 15 LDY #21 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y, and S; and writes in stack |
08 PHP 48 PHA A9 LDA #78 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
EA NOP 8C TXA 48 PHA A2 15 LDX #21 CA DEX D0 FB BNE *-3 68 PLA AA TAX |
Clobbers A, and Z&N; and writes in stack |
EA ... NOP × 3 08 PHP A2 15 LDX #21 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
EA ... NOP × 3 08 PHP A0 15 LDY #21 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
48 PHA 08 PHP 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 90 FB BCC *-3 28 PLP |
Clobbers A, and S; requires dummy interrupt handler; and writes in stack |
48 ... PHA × 2 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 90 FB BCC *-3 68 PLA |
Clobbers S, Z&N, and C; requires dummy interrupt handler; and writes in stack |
11 bytes | |
48 PHA 8C TXA 48 PHA A2 14 LDX #20 CA DEX D0 FB BNE *-3 68 PLA AA TAX 68 PLA |
Clobbers Z&N; and writes in stack |
EA ... NOP × 2 08 PHP 38 SEC A9 15 LDA #21 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
12 bytes | |
EA NOP 08 PHP 48 PHA 38 SEC A9 14 LDA #20 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
30 bytes | |
68 ... PLA × 29 48 PHA |
Clobbers A, S, and Z&N |
32 bytes | |
A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 27 10 E1 BPL *-29 |
Clobbers A, and Z&N |
120 cycles
5 bytes | |
---|---|
A9 LDA #93 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A0 11 LDY #17 EA NOP 88 DEY D0 FA BNE *-4 |
Clobbers Y, and Z&N |
A2 11 LDX #17 EA NOP CA DEX D0 FA BNE *-4 |
Clobbers X, and Z&N |
68 PLA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 |
Clobbers A, S, Z&N, C, and V |
7 bytes | |
EA NOP 18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FA BCS *-4 |
Clobbers A, Z&N, C, and V |
08 PHP A9 LDA #86 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #86 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
08 PHP 18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FA BNE *-4 28 PLP |
Clobbers A; and writes in stack |
08 PHP A2 10 LDX #16 EA NOP CA DEX D0 FA BNE *-4 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 10 LDY #16 EA NOP 88 DEY D0 FA BNE *-4 28 PLP |
Clobbers Y; and writes in stack |
48 PHA 18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FA BNE *-4 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
9 bytes | |
08 PHP 48 PHA A9 LDA #79 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 18 CLC D0 FA BNE *-4 68 PLA |
Clobbers Z&N, and C; and writes in stack |
12 bytes | |
EA NOP 68 PLA 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 18 ... CLC × 2 90 00 BCC *+2 18 CLC D0 F8 BNE *-6 |
Clobbers A, Z&N, and C |
48 PHA 08 PHP 48 PHA 38 SEC A9 14 LDA #20 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Clobbers S; and writes in stack |
13 bytes | |
08 PHP 24 00 BIT $00 48 PHA 38 SEC A9 14 LDA #20 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
30 bytes | |
68 ... PLA × 30 |
Clobbers A, S, and Z&N |
33 bytes | |
EA NOP 68 PLA 48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 25 10 E3 BPL *-27 |
Clobbers A, and Z&N |
40 bytes | |
36 00 ROL $00,X \ × 10 76 00 ROR $00,X / |
Clobbers Z&N |
121 cycles
5 bytes | |
---|---|
A2 18 LDX #24 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A0 18 LDY #24 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A9 LDA #94 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
7 bytes | |
A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 08 PHP 28 PLP 30 FA BMI *-4 |
Clobbers A, Z&N, C, and V; and writes in stack |
E6 xx INC @zptemp A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 |
Clobbers A, Z&N, C, and V; and requires @zptemp |
08 PHP A9 LDA #87 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #87 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts15 90 FA BCC *-4 |
Clobbers A, Z&N, and C; requires @rts15; and writes in stack |
EA NOP A5 00 LDA $00 A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 |
Clobbers A, Z&N, C, and V |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA NOP 00 00 BRK 0 90 FA BCC *-4 |
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack |
48 PHA 08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FC BNE *-2 28 PLP |
Clobbers A, and S; and writes in stack |
48 PHA 08 PHP A0 16 LDY #22 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y, and S; and writes in stack |
48 PHA 08 PHP A2 16 LDX #22 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X, and S; and writes in stack |
48 ... PHA × 2 A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FC BNE *-2 68 PLA |
Clobbers S, Z&N, C, and V; and writes in stack |
9 bytes | |
08 PHP A5 00 LDA $00 A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FC BNE *-2 28 PLP |
Clobbers A; and writes in stack |
08 PHP A4 00 LDY $00 A0 16 LDY #22 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A6 00 LDX $00 A2 16 LDX #22 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
24 00 BIT $00 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FC BNE *-2 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
08 PHP 48 PHA A9 LDA #80 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 4 18 CLC D0 F8 BNE *-6 |
Clobbers A, Z&N, and C |
48 ... PHA × 2 A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 18 CLC D0 FA BNE *-4 68 PLA |
Clobbers S, Z&N, and C; and writes in stack |
11 bytes | |
C5 00 CMP $00 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 18 CLC D0 FA BNE *-4 68 PLA |
Clobbers Z&N, and C; and writes in stack |
12 bytes | |
EA NOP 48 PHA 8C TXA 48 PHA A2 14 LDX #20 CA DEX D0 FB BNE *-3 68 PLA AA TAX 68 PLA |
Clobbers Z&N; and writes in stack |
13 bytes | |
EA ... NOP × 2 08 PHP 48 PHA 38 SEC A9 14 LDA #20 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
31 bytes | |
EA NOP 68 ... PLA × 29 48 PHA |
Clobbers A, S, and Z&N |
33 bytes | |
EA NOP A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 27 10 E1 BPL *-29 |
Clobbers A, and Z&N |
122 cycles
5 bytes | |
---|---|
A9 LDA #95 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
7 bytes | |
EA NOP A0 11 LDY #17 EA NOP 88 DEY D0 FA BNE *-4 |
Clobbers Y, and Z&N |
EA NOP A2 11 LDX #17 EA NOP CA DEX D0 FA BNE *-4 |
Clobbers X, and Z&N |
38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only EA NOP 10 F9 BPL *-5 |
Clobbers A, Z&N, C, V, and D |
EA NOP 68 PLA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 |
Clobbers A, S, Z&N, C, and V |
08 PHP A9 LDA #88 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #88 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
38 SEC A9 11 LDA #17 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 |
Clobbers A, Z&N, C, and V |
68 PLA 08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FC BNE *-2 28 PLP |
Clobbers A, S, and Z&N; and writes in stack |
9 bytes | |
08 PHP 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only EA NOP 10 F9 BPL *-5 28 PLP |
Clobbers A; and writes in stack |
EA NOP 08 PHP A0 10 LDY #16 EA NOP 88 DEY D0 FA BNE *-4 28 PLP |
Clobbers Y; and writes in stack |
EA NOP 08 PHP A2 10 LDX #16 EA NOP CA DEX D0 FA BNE *-4 28 PLP |
Clobbers X; and writes in stack |
EA NOP 48 PHA 18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FA BNE *-4 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
08 PHP 48 PHA A9 LDA #81 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts14 90 FA BCC *-4 68 PLA |
Clobbers Z&N, and C; requires @rts14; and writes in stack |
11 bytes | |
08 PHP 48 PHA 38 SEC A9 15 LDA #21 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 4 18 CLC D0 F8 BNE *-6 |
Clobbers A, Z&N, and C |
31 bytes | |
EA NOP 68 ... PLA × 30 |
Clobbers A, S, and Z&N |
33 bytes | |
68 PLA 48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 26 10 E2 BPL *-28 |
Clobbers A, and Z&N |
123 cycles
5 bytes | |
---|---|
A9 LDA #96 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
EA NOP A2 18 LDX #24 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
EA NOP A0 18 LDY #24 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
7 bytes | |
08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 28 PLP |
Clobbers A; and writes in stack |
08 PHP A2 17 LDX #23 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 17 LDY #23 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
38 SEC A9 18 LDA #24 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
9 bytes | |
08 PHP 48 PHA A9 LDA #82 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
68 PLA A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 4 18 CLC D0 F8 BNE *-6 |
Clobbers A, S, Z&N, and C |
11 bytes | |
18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 4 18 CLC D0 F8 BNE *-6 |
Clobbers A, Z&N, and C |
E6 xx INC @zptemp 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 18 CLC D0 FA BNE *-4 68 PLA |
Clobbers Z&N, and C; requires @zptemp; and writes in stack |
08 PHP 48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 90 FB BCC *-3 68 PLA 28 PLP |
Requires dummy interrupt handler; and writes in stack |
EA NOP 48 ... PHA × 2 A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 18 CLC D0 FA BNE *-4 68 PLA |
Clobbers S, Z&N, and C; and writes in stack |
12 bytes | |
08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts15 18 CLC 10 F9 BPL *-5 68 PLA 28 PLP |
Requires @rts15; and writes in stack |
EA NOP C5 00 CMP $00 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 18 CLC D0 FA BNE *-4 68 PLA |
Clobbers Z&N, and C; and writes in stack |
08 PHP 48 PHA 18 CLC A9 F4 LDA #244 ;hides 'NOP zp,X' EA NOP 69 01 ADC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Requires support for unofficial opcodes; and writes in stack |
13 bytes | |
48 PHA 98 TYA 48 PHA A0 0D LDY #13 A5 00 LDA $00 88 DEY D0 F9 BNE *-5 68 PLA A8 TAY 68 PLA |
Clobbers Z&N; and writes in stack |
20 xx xx JSR @rts14 08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 68 PLA 28 PLP |
Requires @rts14; and writes in stack |
48 ... PHA × 2 08 PHP 48 PHA 38 SEC A9 14 LDA #20 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Clobbers S; and writes in stack |
14 bytes | |
EA ... NOP × 3 08 PHP 48 PHA 38 SEC A9 14 LDA #20 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
31 bytes | |
68 ... PLA × 30 48 PHA |
Clobbers A, S, and Z&N |
33 bytes | |
A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 28 10 E0 BPL *-30 |
Clobbers A, and Z&N |
124 cycles
4 bytes | |
---|---|
A2 E8 LDX #232 ;hides 'INX' D0 FD BNE *-1 |
Clobbers X, and Z&N |
5 bytes | |
A9 LDA #97 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
48 PHA A0 18 LDY #24 88 DEY D0 FB BNE *-3 |
Clobbers Y, S, and Z&N; and writes in stack |
7 bytes | |
A4 00 LDY $00 A0 18 LDY #24 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
00 00 BRK 0 A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FC BNE *-2 |
Clobbers A, Z&N, C, and V; requires dummy interrupt handler; and writes in stack |
68 ... PLA × 2 A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 |
Clobbers A, S, Z&N, C, and V |
08 PHP A9 LDA #90 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #90 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
EA NOP 38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only EA NOP 10 F9 BPL *-5 |
Clobbers A, Z&N, C, V, and D |
A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 00 00 BRK 0 10 F9 BPL *-5 |
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack |
9 bytes | |
08 PHP A0 0D LDY #13 ;hides 'ORA abs' A5 00 LDA $0 88 DEY D0 FA BNE *-4 28 PLP |
Clobbers A, and Y; and writes in stack |
08 PHP A2 0D LDX #13 ;hides 'ORA abs' A5 00 LDA $0 CA DEX D0 FA BNE *-4 28 PLP |
Clobbers A, and X; and writes in stack |
EA NOP 38 SEC A9 11 LDA #17 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 |
Clobbers A, Z&N, C, and V |
48 ... PHA × 2 08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FC BNE *-2 28 PLP |
Clobbers A, and S; and writes in stack |
48 ... PHA × 2 08 PHP A0 16 LDY #22 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y, and S; and writes in stack |
48 ... PHA × 2 08 PHP A2 16 LDX #22 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X, and S; and writes in stack |
48 ... PHA × 3 A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FC BNE *-2 68 PLA |
Clobbers S, Z&N, C, and V; and writes in stack |
08 PHP 48 PHA A9 LDA #83 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
EA NOP 08 PHP 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only EA NOP 10 F9 BPL *-5 28 PLP |
Clobbers A; and writes in stack |
EA ... NOP × 2 08 PHP A0 10 LDY #16 EA NOP 88 DEY D0 FA BNE *-4 28 PLP |
Clobbers Y; and writes in stack |
EA ... NOP × 2 08 PHP A2 10 LDX #16 EA NOP CA DEX D0 FA BNE *-4 28 PLP |
Clobbers X; and writes in stack |
EA ... NOP × 2 48 PHA 18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FA BNE *-4 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
11 bytes | |
48 PHA 8C TXA 48 PHA A2 15 LDX #21 CA DEX D0 FB BNE *-3 68 PLA AA TAX 68 PLA |
Clobbers Z&N; and writes in stack |
E6 xx INC @zptemp A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 4 18 CLC D0 F8 BNE *-6 |
Clobbers A, Z&N, and C; and requires @zptemp |
12 bytes | |
EA NOP 08 PHP 48 PHA 38 SEC A9 15 LDA #21 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
EA NOP A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 4 18 CLC D0 F8 BNE *-6 |
Clobbers A, Z&N, and C |
31 bytes | |
68 ... PLA × 31 |
Clobbers A, S, and Z&N |
34 bytes | |
EA NOP 68 PLA 48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 26 10 E2 BPL *-28 |
Clobbers A, and Z&N |
125 cycles
5 bytes | |
---|---|
A9 LDA #98 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
68 PLA A0 18 LDY #24 88 DEY D0 FB BNE *-3 |
Clobbers A, Y, S, and Z&N |
68 PLA A2 18 LDX #24 CA DEX D0 FB BNE *-3 |
Clobbers A, X, S, and Z&N |
7 bytes | |
EA ... NOP × 2 A2 18 LDX #24 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
EA ... NOP × 2 A0 18 LDY #24 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
08 PHP A9 LDA #91 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #91 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
08 PHP 18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FA BCS *-4 28 PLP |
Clobbers A; and writes in stack |
EA NOP 08 PHP A2 17 LDX #23 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
EA NOP 08 PHP A0 17 LDY #23 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
48 PHA 18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FA BCS *-4 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
EA NOP 38 SEC A9 18 LDA #24 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
9 bytes | |
08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FC BNE *-2 68 PLA 28 PLP |
Writes in stack |
11 bytes | |
EA NOP 68 PLA A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 4 18 CLC D0 F8 BNE *-6 |
Clobbers A, S, Z&N, and C |
12 bytes | |
18 ... CLC × 3 A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 4 18 CLC D0 F8 BNE *-6 |
Clobbers A, Z&N, and C |
32 bytes | |
EA NOP 68 ... PLA × 30 48 PHA |
Clobbers A, S, and Z&N |
34 bytes | |
EA NOP A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 28 10 E0 BPL *-30 |
Clobbers A, and Z&N |
126 cycles
5 bytes | |
---|---|
A0 19 LDY #25 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A2 19 LDX #25 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A9 LDA #99 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
7 bytes | |
08 PHP A9 LDA #92 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #92 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
08 PHP A0 88 LDY #136 ;hides 'DEY' 08 PHP 28 PLP 30 FB BMI *-3 28 PLP |
Clobbers Y; and writes in stack |
20 xx xx JSR @rts15 A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FC BNE *-2 |
Clobbers A, Z&N, C, and V; requires @rts15; and writes in stack |
EA NOP 00 00 BRK 0 A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FC BNE *-2 |
Clobbers A, Z&N, C, and V; requires dummy interrupt handler; and writes in stack |
48 PHA 08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 28 PLP |
Clobbers A, and S; and writes in stack |
48 PHA 08 PHP A2 17 LDX #23 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X, and S; and writes in stack |
48 ... PHA × 2 A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 68 PLA |
Clobbers S, Z&N, C, and V; and writes in stack |
EA NOP 68 ... PLA × 2 A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 |
Clobbers A, S, Z&N, C, and V |
9 bytes | |
08 PHP A5 00 LDA $00 A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 28 PLP |
Clobbers A; and writes in stack |
08 PHP A6 00 LDX $00 A2 17 LDX #23 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
24 00 BIT $00 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
A5 00 LDA $00 38 SEC A9 18 LDA #24 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
08 PHP 48 PHA A9 LDA #85 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 24 00 BIT $00 28 PLP D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, and C; and writes in stack |
11 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 |
Clobbers A, Z&N, and C |
12 bytes | |
EA NOP 48 PHA 8C TXA 48 PHA A2 15 LDX #21 CA DEX D0 FB BNE *-3 68 PLA AA TAX 68 PLA |
Clobbers Z&N; and writes in stack |
48 PHA 08 PHP 48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 90 FB BCC *-3 68 PLA 28 PLP |
Clobbers S; requires dummy interrupt handler; and writes in stack |
13 bytes | |
EA ... NOP × 2 08 PHP 48 PHA 38 SEC A9 15 LDA #21 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
32 bytes | |
EA NOP 68 ... PLA × 31 |
Clobbers A, S, and Z&N |
34 bytes | |
68 PLA 48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 27 10 E1 BPL *-29 |
Clobbers A, and Z&N |
127 cycles
5 bytes | |
---|---|
48 PHA A2 E8 LDX #232 ;hides 'INX' D0 FD BNE *-1 |
Clobbers X, S, and Z&N; and writes in stack |
A9 LDA #100 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A2 12 LDX #18 EA NOP CA DEX D0 FA BNE *-4 |
Clobbers X, and Z&N |
A0 12 LDY #18 EA NOP 88 DEY D0 FA BNE *-4 |
Clobbers Y, and Z&N |
7 bytes | |
A9 E9 LDA #$E9 ;hides 'SBC #$2A' 2A ROL A ;first loop only 00 00 BRK 0 B0 FA BCS *-4 |
Clobbers A, Z&N, C, and V; requires dummy interrupt handler; and writes in stack |
08 PHP A9 LDA #93 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #93 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
08 PHP A0 11 LDY #17 EA NOP 88 DEY D0 FA BNE *-4 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 11 LDX #17 EA NOP CA DEX D0 FA BNE *-4 28 PLP |
Clobbers X; and writes in stack |
A9 0A LDA #$0A ;hides 'ASL A' EA NOP 08 PHP 28 PLP 18 CLC D0 F9 BNE *-5 |
Clobbers A, Z&N, and C; and writes in stack |
68 PLA 08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 28 PLP |
Clobbers A, S, and Z&N; and writes in stack |
68 PLA 38 SEC A9 18 LDA #24 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, S, Z&N, C, and V |
9 bytes | |
EA NOP 08 PHP 18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FA BCS *-4 28 PLP |
Clobbers A; and writes in stack |
EA NOP 48 PHA 18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FA BCS *-4 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
EA ... NOP × 2 38 SEC A9 18 LDA #24 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
08 PHP 48 PHA A9 LDA #86 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP 48 PHA 18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FA BNE *-4 68 PLA 28 PLP |
Writes in stack |
A9 0A LDA #$0A ;hides 'ASL A' 18 ... CLC × 3 90 00 BCC *+2 18 CLC D0 F7 BNE *-7 |
Clobbers A, Z&N, and C |
32 bytes | |
68 ... PLA × 31 48 PHA |
Clobbers A, S, and Z&N |
34 bytes | |
A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 29 10 DF BPL *-31 |
Clobbers A, and Z&N |
128 cycles
5 bytes | |
---|---|
68 PLA A2 E8 LDX #232 ;hides 'INX' D0 FD BNE *-1 |
Clobbers A, X, S, and Z&N |
A9 LDA #101 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
EA NOP A2 19 LDX #25 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
EA NOP A0 19 LDY #25 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
7 bytes | |
08 PHP A2 18 LDX #24 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 18 LDY #24 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
38 SEC A9 19 LDA #25 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
08 PHP A9 LDA #94 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #94 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
9 bytes | |
08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 08 PHP 28 PLP 30 FA BMI *-4 28 PLP |
Clobbers A; and writes in stack |
48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 08 PHP 28 PLP 30 FA BMI *-4 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
08 PHP 48 PHA A9 LDA #87 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts15 90 FA BCC *-4 68 PLA |
Clobbers Z&N, and C; requires @rts15; and writes in stack |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA NOP 00 00 BRK 0 90 FA BCC *-4 68 PLA |
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack |
48 PHA 08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FC BNE *-2 68 PLA 28 PLP |
Clobbers S; and writes in stack |
11 bytes | |
08 PHP 24 00 BIT $00 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FC BNE *-2 68 PLA 28 PLP |
Writes in stack |
12 bytes | |
EA NOP A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 |
Clobbers A, Z&N, and C |
32 bytes | |
68 ... PLA × 32 |
Clobbers A, S, and Z&N |
35 bytes | |
EA NOP 68 PLA 48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 27 10 E1 BPL *-29 |
Clobbers A, and Z&N |
129 cycles
5 bytes | |
---|---|
A9 LDA #102 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
E6 xx INC @zptemp A2 E8 LDX #232 ;hides 'INX' D0 FD BNE *-1 |
Clobbers X, and Z&N; and requires @zptemp |
A2 10 LDX #16 48 PHA CA DEX D0 FA BNE *-4 |
Clobbers X, S, and Z&N; and writes in stack |
A0 10 LDY #16 48 PHA 88 DEY D0 FA BNE *-4 |
Clobbers Y, S, and Z&N; and writes in stack |
A0 88 LDY #136 ;hides 'DEY' 68 ... PLA × 2 30 FB BMI *-3 |
Clobbers A, Y, S, and Z&N |
7 bytes | |
A6 00 LDX $00 A2 19 LDX #25 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A4 00 LDY $00 A0 19 LDY #25 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
00 00 BRK 0 A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 |
Clobbers A, Z&N, C, and V; requires dummy interrupt handler; and writes in stack |
08 PHP A9 LDA #95 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #95 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
38 SEC A9 12 LDA #18 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 |
Clobbers A, Z&N, C, and V |
9 bytes | |
08 PHP 38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only EA NOP 10 F9 BPL *-5 28 PLP |
Clobbers A; and writes in stack |
EA NOP 08 PHP A2 11 LDX #17 EA NOP CA DEX D0 FA BNE *-4 28 PLP |
Clobbers X; and writes in stack |
EA NOP 08 PHP A0 11 LDY #17 EA NOP 88 DEY D0 FA BNE *-4 28 PLP |
Clobbers Y; and writes in stack |
48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only EA NOP 10 F9 BPL *-5 68 PLA |
Clobbers Z&N, C, V, and D; and writes in stack |
48 ... PHA × 3 A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 68 PLA |
Clobbers S, Z&N, C, and V; and writes in stack |
08 PHP 48 PHA A9 LDA #88 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
48 PHA 38 SEC A9 11 LDA #17 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
11 bytes | |
08 PHP 48 PHA 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only EA NOP 10 F9 BPL *-5 68 PLA 28 PLP |
Writes in stack |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 18 ... CLC × 3 90 00 BCC *+2 18 CLC D0 F7 BNE *-7 |
Clobbers A, Z&N, and C |
33 bytes | |
EA NOP 68 ... PLA × 31 48 PHA |
Clobbers A, S, and Z&N |
35 bytes | |
EA NOP A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 29 10 DF BPL *-31 |
Clobbers A, and Z&N |
130 cycles
5 bytes | |
---|---|
A9 LDA #103 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
48 ... PHA × 2 A2 E8 LDX #232 ;hides 'INX' D0 FD BNE *-1 |
Clobbers X, S, and Z&N; and writes in stack |
68 PLA A2 19 LDX #25 CA DEX D0 FB BNE *-3 |
Clobbers A, X, S, and Z&N |
68 PLA A0 19 LDY #25 88 DEY D0 FB BNE *-3 |
Clobbers A, Y, S, and Z&N |
7 bytes | |
EA ... NOP × 2 A2 19 LDX #25 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
EA ... NOP × 2 A0 19 LDY #25 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
08 PHP A9 LDA #96 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #96 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
EA NOP 08 PHP A2 18 LDX #24 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
EA NOP 08 PHP A0 18 LDY #24 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
EA NOP 38 SEC A9 19 LDA #25 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
9 bytes | |
08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 68 PLA 28 PLP |
Writes in stack |
12 bytes | |
A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' 18 ... CLC × 3 90 00 BCC *+2 18 CLC D0 F7 BNE *-7 |
Clobbers A, Z&N, and C |
33 bytes | |
EA NOP 68 ... PLA × 32 |
Clobbers A, S, and Z&N |
35 bytes | |
68 PLA 48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 28 10 E0 BPL *-30 |
Clobbers A, and Z&N |
131 cycles
5 bytes | |
---|---|
A2 1A LDX #26 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A0 1A LDY #26 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A9 LDA #104 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
08 PHP A2 E8 LDX #232 ;hides 'INX' D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
7 bytes | |
18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 48 PHA 10 F9 BPL *-5 |
Clobbers A, S, Z&N, C, V, and D; and writes in stack |
08 PHP A9 LDA #97 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #97 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
20 xx xx JSR @rts15 A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 |
Clobbers A, Z&N, C, and V; requires @rts15; and writes in stack |
18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 85 xx STA @zptemp 10 F8 BPL *-6 |
Clobbers A, Z&N, C, V, and D; and requires @zptemp |
EA NOP 00 00 BRK 0 A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 |
Clobbers A, Z&N, C, and V; requires dummy interrupt handler; and writes in stack |
48 PHA 08 PHP A0 18 LDY #24 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y, and S; and writes in stack |
38 SEC A9 10 LDA #16 48 PHA E9 01 SBC #1 D0 F8 BNE *-6 |
Clobbers A, S, Z&N, C, and V; and writes in stack |
18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 04 00 NOP $00 10 F8 BPL *-6 |
Clobbers A, Z&N, C, V, and D; and requires support for unofficial opcodes |
9 bytes | |
08 PHP A4 00 LDY $00 A0 18 LDY #24 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
38 SEC A9 10 LDA #16 24 00 BIT $00 E9 01 SBC #1 D0 F7 BNE *-7 |
Clobbers A, Z&N, C, and V |
00 00 BRK 0 08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FC BNE *-2 28 PLP |
Clobbers A; requires dummy interrupt handler; and writes in stack |
00 00 BRK 0 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FC BNE *-2 68 PLA |
Clobbers Z&N, C, and V; requires dummy interrupt handler; and writes in stack |
68 ... PLA × 2 08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 28 PLP |
Clobbers A, S, and Z&N; and writes in stack |
08 PHP 48 PHA A9 LDA #90 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
EA NOP 08 PHP 38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only EA NOP 10 F9 BPL *-5 28 PLP |
Clobbers A; and writes in stack |
EA NOP 48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only EA NOP 10 F9 BPL *-5 68 PLA |
Clobbers Z&N, C, V, and D; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 00 00 BRK 0 10 F9 BPL *-5 68 PLA |
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack |
EA NOP 48 ... PHA × 3 A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 68 PLA |
Clobbers S, Z&N, C, and V; and writes in stack |
11 bytes | |
EA NOP 48 PHA 38 SEC A9 11 LDA #17 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
48 ... PHA × 2 08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FC BNE *-2 68 PLA 28 PLP |
Clobbers S; and writes in stack |
68 PLA A9 0A LDA #$0A ;hides 'ASL A' 18 ... CLC × 3 90 00 BCC *+2 18 CLC D0 F7 BNE *-7 |
Clobbers A, S, Z&N, and C |
12 bytes | |
EA NOP 08 PHP 48 PHA 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only EA NOP 10 F9 BPL *-5 68 PLA 28 PLP |
Writes in stack |
18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' 18 ... CLC × 3 90 00 BCC *+2 18 CLC D0 F7 BNE *-7 |
Clobbers A, Z&N, and C |
33 bytes | |
68 ... PLA × 32 48 PHA |
Clobbers A, S, and Z&N |
35 bytes | |
A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 30 10 DE BPL *-32 |
Clobbers A, and Z&N |
132 cycles
5 bytes | |
---|---|
A9 LDA #105 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
68 ... PLA × 2 A2 E8 LDX #232 ;hides 'INX' D0 FD BNE *-1 |
Clobbers A, X, S, and Z&N |
7 bytes | |
BA TSX 68 PLA 9A TXS A2 E8 LDX #232 ;hides 'INX' D0 FD BNE *-1 |
Clobbers A, X, and Z&N |
48 PHA A0 10 LDY #16 48 PHA 88 DEY D0 FA BNE *-4 |
Clobbers Y, S, and Z&N; and writes in stack |
48 PHA A2 10 LDX #16 48 PHA CA DEX D0 FA BNE *-4 |
Clobbers X, S, and Z&N; and writes in stack |
EA NOP 68 PLA A0 19 LDY #25 88 DEY D0 FB BNE *-3 |
Clobbers A, Y, S, and Z&N |
08 PHP A9 LDA #98 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #98 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
EA ... NOP × 3 A0 19 LDY #25 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
EA ... NOP × 3 A2 19 LDX #25 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
68 PLA 38 SEC A9 19 LDA #25 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, S, Z&N, C, and V |
9 bytes | |
98 TYA 48 PHA A0 18 LDY #24 88 DEY D0 FB BNE *-3 68 PLA A8 TAY |
Clobbers A, and Z&N; and writes in stack |
EA ... NOP × 2 08 PHP A2 18 LDX #24 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
EA ... NOP × 2 08 PHP A0 18 LDY #24 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
EA ... NOP × 2 38 SEC A9 19 LDA #25 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
08 PHP 48 PHA A9 LDA #91 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP 48 PHA 18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FA BCS *-4 68 PLA 28 PLP |
Writes in stack |
12 bytes | |
E6 xx INC @zptemp A9 0A LDA #$0A ;hides 'ASL A' 18 ... CLC × 3 90 00 BCC *+2 18 CLC D0 F7 BNE *-7 |
Clobbers A, Z&N, and C; and requires @zptemp |
13 bytes | |
EA NOP A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' 18 ... CLC × 3 90 00 BCC *+2 18 CLC D0 F7 BNE *-7 |
Clobbers A, Z&N, and C |
33 bytes | |
68 ... PLA × 33 |
Clobbers A, S, and Z&N |
36 bytes | |
EA NOP 68 PLA 48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 28 10 E0 BPL *-30 |
Clobbers A, and Z&N |
133 cycles
5 bytes | |
---|---|
A9 LDA #106 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
EA NOP A2 1A LDX #26 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
EA NOP A0 1A LDY #26 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
7 bytes | |
08 PHP A2 19 LDX #25 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 19 LDY #25 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
38 SEC A9 1A LDA #26 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
08 PHP A9 LDA #99 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #99 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
9 bytes | |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA NOP 20 xx xx JSR @rts15 90 F9 BCC *-5 |
Clobbers A, Z&N, and C; requires @rts15; and writes in stack |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 2 00 00 BRK 0 90 F9 BCC *-5 |
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 48 PHA 20 xx xx JSR @rts14 90 F9 BCC *-5 |
Clobbers A, S, Z&N, and C; requires @rts14; and writes in stack |
08 PHP 48 PHA A9 LDA #92 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
20 xx xx JSR @rts15 08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FC BNE *-2 28 PLP |
Clobbers A; requires @rts15; and writes in stack |
20 xx xx JSR @rts15 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FC BNE *-2 68 PLA |
Clobbers Z&N, C, and V; requires @rts15; and writes in stack |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' E6 xx INC @zptemp 20 xx xx JSR @rts12 90 F8 BCC *-6 |
Clobbers A, Z&N, and C; requires @zptemp, and @rts12; and writes in stack |
EA NOP 00 00 BRK 0 08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FC BNE *-2 28 PLP |
Clobbers A; requires dummy interrupt handler; and writes in stack |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp 20 xx xx JSR @rts14 90 F8 BCC *-6 |
Clobbers A, Z&N, and C; requires @zptemp, and @rts14; and writes in stack |
EA NOP 00 00 BRK 0 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FC BNE *-2 68 PLA |
Clobbers Z&N, C, and V; requires dummy interrupt handler; and writes in stack |
48 PHA 08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 68 PLA 28 PLP |
Clobbers S; and writes in stack |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 20 xx xx JSR @rts14 90 F8 BCC *-6 |
Clobbers A, Z&N, and C; requires @rts14, and support for unofficial opcodes; and writes in stack |
11 bytes | |
08 PHP 24 00 BIT $00 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 68 PLA 28 PLP |
Writes in stack |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' E6 xx INC @zptemp 36 00 ROL $00,X 76 00 ROR $00,X 90 F7 BCC *-7 |
Clobbers A, Z&N, and C; and requires @zptemp |
12 bytes | |
EA NOP 68 PLA A9 0A LDA #$0A ;hides 'ASL A' 18 ... CLC × 3 90 00 BCC *+2 18 CLC D0 F7 BNE *-7 |
Clobbers A, S, Z&N, and C |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA NOP 04 00 NOP $00 36 00 ROL $00,X 76 00 ROR $00,X 90 F6 BCC *-8 |
Clobbers A, Z&N, and C; and requires support for unofficial opcodes |
13 bytes | |
18 ... CLC × 3 A9 0A LDA #$0A ;hides 'ASL A' 18 ... CLC × 3 90 00 BCC *+2 18 CLC D0 F7 BNE *-7 |
Clobbers A, Z&N, and C |
34 bytes | |
EA NOP 68 ... PLA × 32 48 PHA |
Clobbers A, S, and Z&N |
36 bytes | |
EA NOP A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 30 10 DE BPL *-32 |
Clobbers A, and Z&N |
134 cycles
5 bytes | |
---|---|
A9 LDA #107 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A2 13 LDX #19 EA NOP CA DEX D0 FA BNE *-4 |
Clobbers X, and Z&N |
A0 13 LDY #19 EA NOP 88 DEY D0 FA BNE *-4 |
Clobbers Y, and Z&N |
7 bytes | |
48 PHA 08 PHP A2 E8 LDX #232 ;hides 'INX' D0 FD BNE *-1 28 PLP |
Clobbers X, and S; and writes in stack |
08 PHP A9 LDA #100 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #100 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
08 PHP A0 12 LDY #18 EA NOP 88 DEY D0 FA BNE *-4 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 12 LDX #18 EA NOP CA DEX D0 FA BNE *-4 28 PLP |
Clobbers X; and writes in stack |
A9 E9 LDA #$E9 ;hides 'SBC #$2A' 2A ROL A ;first loop only 20 xx xx JSR @rts14 B0 F9 BCS *-5 |
Clobbers A, Z&N, C, and V; requires @rts14; and writes in stack |
48 PHA 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 48 PHA 10 F9 BPL *-5 |
Clobbers A, S, Z&N, C, V, and D; and writes in stack |
9 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 20 xx xx JSR @rts15 10 F8 BPL *-6 |
Clobbers A, Z&N, and C; requires @rts15; and writes in stack |
A9 E9 LDA #$E9 ;hides 'SBC #$2A' 2A ROL A ;first loop only 08 PHP \ × 2 28 PLP / B0 F8 BCS *-6 |
Clobbers A, Z&N, C, and V; and writes in stack |
08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$2A' 2A ROL A ;first loop only 00 00 BRK 0 B0 FA BCS *-4 28 PLP |
Clobbers A; requires dummy interrupt handler; and writes in stack |
48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$2A' 2A ROL A ;first loop only 00 00 BRK 0 B0 FA BCS *-4 68 PLA |
Clobbers Z&N, C, and V; requires dummy interrupt handler; and writes in stack |
EA NOP 68 PLA 38 SEC A9 19 LDA #25 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, S, Z&N, C, and V |
08 PHP 48 PHA A9 LDA #93 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP A9 0A LDA #$0A ;hides 'ASL A' EA NOP 08 PHP 28 PLP 18 CLC D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA NOP 08 PHP 28 PLP 18 CLC D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, and C; and writes in stack |
EA ... NOP × 3 38 SEC A9 19 LDA #25 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
11 bytes | |
EA NOP 08 PHP 48 PHA 18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FA BCS *-4 68 PLA 28 PLP |
Writes in stack |
12 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 90 00 BCC *+2 18 CLC D0 F9 BNE *-5 |
Clobbers A, Z&N, and C |
34 bytes | |
EA NOP 68 ... PLA × 33 |
Clobbers A, S, and Z&N |
36 bytes | |
68 PLA 48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 29 10 DF BPL *-31 |
Clobbers A, and Z&N |
135 cycles
5 bytes | |
---|---|
A9 LDA #108 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
68 PLA A0 1A LDY #26 88 DEY D0 FB BNE *-3 |
Clobbers A, Y, S, and Z&N |
68 PLA A2 1A LDX #26 CA DEX D0 FB BNE *-3 |
Clobbers A, X, S, and Z&N |
7 bytes | |
EA ... NOP × 2 A0 1A LDY #26 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
EA ... NOP × 2 A2 1A LDX #26 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts12 D0 FA BNE *-4 |
Clobbers A, Z&N, and C; requires @rts12; and writes in stack |
08 PHP A9 LDA #101 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #101 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
8C TXA 48 PHA A2 E8 LDX #232 ;hides 'INX' D0 FD BNE *-1 68 PLA AA TAX |
Clobbers A, and Z&N; and writes in stack |
EA NOP 08 PHP A0 19 LDY #25 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
EA NOP 08 PHP A2 19 LDX #25 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
EA NOP 38 SEC A9 1A LDA #26 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
9 bytes | |
08 PHP 38 SEC A9 19 LDA #25 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
48 PHA 38 SEC A9 19 LDA #25 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
08 PHP 48 PHA A9 LDA #94 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 5 18 CLC D0 F7 BNE *-7 |
Clobbers A, Z&N, and C |
11 bytes | |
08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 08 PHP 28 PLP 30 FA BMI *-4 68 PLA 28 PLP |
Writes in stack |
34 bytes | |
68 ... PLA × 33 48 PHA |
Clobbers A, S, and Z&N |
36 bytes | |
A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 31 10 DD BPL *-33 |
Clobbers A, and Z&N |
136 cycles
5 bytes | |
---|---|
A0 1B LDY #27 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A2 1B LDX #27 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A9 LDA #109 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
7 bytes | |
A9 E9 LDA #$E9 ;hides 'SBC #$08' 08 PHP ;first loop only EA ... NOP × 2 30 FA BMI *-4 |
Clobbers A, S, Z&N, C, and V; and writes in stack |
08 PHP A9 LDA #102 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #102 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
38 SEC A9 13 LDA #19 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 |
Clobbers A, Z&N, C, and V |
08 PHP E6 xx INC @zptemp A2 E8 LDX #232 ;hides 'INX' D0 FD BNE *-1 28 PLP |
Clobbers X; requires @zptemp; and writes in stack |
48 PHA 08 PHP A0 19 LDY #25 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y, and S; and writes in stack |
48 PHA 08 PHP A2 19 LDX #25 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X, and S; and writes in stack |
9 bytes | |
08 PHP A0 10 LDY #16 C5 00 CMP $00 88 DEY D0 F9 BNE *-5 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 10 LDX #16 C5 00 CMP $00 CA DEX D0 F9 BNE *-5 28 PLP |
Clobbers X; and writes in stack |
00 00 BRK 0 08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 28 PLP |
Clobbers A; requires dummy interrupt handler; and writes in stack |
00 00 BRK 0 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 68 PLA |
Clobbers Z&N, C, and V; requires dummy interrupt handler; and writes in stack |
08 PHP 48 PHA A9 LDA #95 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP 38 SEC A9 12 LDA #18 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 28 PLP |
Clobbers A; and writes in stack |
48 PHA 38 SEC A9 12 LDA #18 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
11 bytes | |
08 PHP 48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only EA NOP 10 F9 BPL *-5 68 PLA 28 PLP |
Writes in stack |
13 bytes | |
EA NOP A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 90 00 BCC *+2 18 CLC D0 F9 BNE *-5 |
Clobbers A, Z&N, and C |
34 bytes | |
68 ... PLA × 34 |
Clobbers A, S, and Z&N |
37 bytes | |
EA NOP 68 PLA 48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 29 10 DF BPL *-31 |
Clobbers A, and Z&N |
137 cycles
5 bytes | |
---|---|
A9 LDA #110 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
00 00 BRK 0 A2 E8 LDX #232 ;hides 'INX' D0 FD BNE *-1 |
Clobbers X, and Z&N; requires dummy interrupt handler; and writes in stack |
A0 11 LDY #17 48 PHA 88 DEY D0 FA BNE *-4 |
Clobbers Y, S, and Z&N; and writes in stack |
A2 11 LDX #17 48 PHA CA DEX D0 FA BNE *-4 |
Clobbers X, S, and Z&N; and writes in stack |
7 bytes | |
A2 11 LDX #17 A5 00 LDA $00 CA DEX D0 F9 BNE *-5 |
Clobbers A, X, and Z&N |
A0 11 LDY #17 A5 00 LDA $00 88 DEY D0 F9 BNE *-5 |
Clobbers A, Y, and Z&N |
A2 11 LDX #17 A4 00 LDY $00 CA DEX D0 F9 BNE *-5 |
Clobbers X, Y, and Z&N |
A2 11 LDX #17 C5 00 CMP $00 CA DEX D0 F9 BNE *-5 |
Clobbers X, Z&N, and C |
A0 11 LDY #17 C5 00 CMP $00 88 DEY D0 F9 BNE *-5 |
Clobbers Y, Z&N, and C |
A2 11 LDX #17 24 00 BIT $00 CA DEX D0 F9 BNE *-5 |
Clobbers X, Z&N, and V |
A0 11 LDY #17 24 00 BIT $00 88 DEY D0 F9 BNE *-5 |
Clobbers Y, Z&N, and V |
A0 11 LDY #17 85 xx STA @zptemp 88 DEY D0 F9 BNE *-5 |
Clobbers Y, and Z&N; and requires @zptemp |
A2 11 LDX #17 85 xx STA @zptemp CA DEX D0 F9 BNE *-5 |
Clobbers X, and Z&N; and requires @zptemp |
A0 11 LDY #17 04 00 NOP $00 88 DEY D0 F9 BNE *-5 |
Clobbers Y, and Z&N; and requires support for unofficial opcodes |
A2 11 LDX #17 04 00 NOP $00 CA DEX D0 F9 BNE *-5 |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
08 PHP A9 LDA #103 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #103 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
A6 00 LDX $00 A2 13 LDX #19 EA NOP CA DEX D0 FA BNE *-4 |
Clobbers X, and Z&N |
A4 00 LDY $00 A0 13 LDY #19 EA NOP 88 DEY D0 FA BNE *-4 |
Clobbers Y, and Z&N |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts12 D0 FA BNE *-4 |
Clobbers A, Z&N, and C; requires @rts12; and writes in stack |
48 ... PHA × 2 08 PHP A2 E8 LDX #232 ;hides 'INX' D0 FD BNE *-1 28 PLP |
Clobbers X, and S; and writes in stack |
68 PLA 38 SEC A9 1A LDA #26 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, S, Z&N, C, and V |
9 bytes | |
98 TYA 48 PHA A0 19 LDY #25 88 DEY D0 FB BNE *-3 68 PLA A8 TAY |
Clobbers A, and Z&N; and writes in stack |
EA ... NOP × 2 08 PHP A0 19 LDY #25 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
EA ... NOP × 2 08 PHP A2 19 LDX #25 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
EA ... NOP × 2 38 SEC A9 1A LDA #26 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
08 PHP 48 PHA A9 LDA #96 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
EA NOP 08 PHP 38 SEC A9 19 LDA #25 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
EA NOP 48 PHA 38 SEC A9 19 LDA #25 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
11 bytes | |
08 PHP 28 PLP 08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 68 PLA 28 PLP |
Writes in stack |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 5 18 CLC D0 F7 BNE *-7 |
Clobbers A, Z&N, and C |
35 bytes | |
EA NOP 68 ... PLA × 33 48 PHA |
Clobbers A, S, and Z&N |
37 bytes | |
EA NOP A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 31 10 DD BPL *-33 |
Clobbers A, and Z&N |
138 cycles
5 bytes | |
---|---|
A9 LDA #111 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
EA NOP A0 1B LDY #27 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
EA NOP A2 1B LDX #27 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
38 SEC A9 E9 LDA #$E9 ;hides 'SBC #$3A' 3A NOP ;first loop only D0 FA BNE *-4 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
7 bytes | |
08 PHP A0 1A LDY #26 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 1A LDX #26 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
38 SEC A9 1B LDA #27 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
08 PHP A9 LDA #104 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #104 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts12 D0 FA BNE *-4 |
Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack |
9 bytes | |
A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts12 D0 FA BNE *-4 |
Clobbers A, Z&N, and C; requires @rts12; and writes in stack |
48 PHA 8C TXA 48 PHA A2 E8 LDX #232 ;hides 'INX' D0 FD BNE *-1 68 PLA AA TAX |
Clobbers A, S, and Z&N; and writes in stack |
08 PHP 48 PHA A9 LDA #97 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
20 xx xx JSR @rts15 08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 28 PLP |
Clobbers A; requires @rts15; and writes in stack |
98 TYA 48 PHA A0 12 LDY #18 EA NOP 88 DEY D0 FA BNE *-4 68 PLA A8 TAY |
Clobbers A, and Z&N; and writes in stack |
20 xx xx JSR @rts15 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 68 PLA |
Clobbers Z&N, C, and V; requires @rts15; and writes in stack |
08 PHP 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 85 xx STA @zptemp 10 F8 BPL *-6 28 PLP |
Clobbers A; requires @zptemp; and writes in stack |
48 PHA 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 85 xx STA @zptemp 10 F8 BPL *-6 68 PLA |
Clobbers Z&N, C, V, and D; requires @zptemp; and writes in stack |
EA NOP 00 00 BRK 0 08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 28 PLP |
Clobbers A; requires dummy interrupt handler; and writes in stack |
EA NOP 00 00 BRK 0 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 68 PLA |
Clobbers Z&N, C, and V; requires dummy interrupt handler; and writes in stack |
48 PHA 08 PHP 38 SEC A9 19 LDA #25 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A, and S; and writes in stack |
48 ... PHA × 2 38 SEC A9 19 LDA #25 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers S, Z&N, C, and V; and writes in stack |
08 PHP 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 04 00 NOP $00 10 F8 BPL *-6 28 PLP |
Clobbers A; requires support for unofficial opcodes; and writes in stack |
48 PHA 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 04 00 NOP $00 10 F8 BPL *-6 68 PLA |
Clobbers Z&N, C, V, and D; requires support for unofficial opcodes; and writes in stack |
11 bytes | |
08 PHP 38 SEC A9 10 LDA #16 24 00 BIT $00 E9 01 SBC #1 D0 F7 BNE *-7 28 PLP |
Clobbers A; and writes in stack |
48 PHA 38 SEC A9 10 LDA #16 24 00 BIT $00 E9 01 SBC #1 D0 F7 BNE *-7 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
00 00 BRK 0 08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FC BNE *-2 68 PLA 28 PLP |
Requires dummy interrupt handler; and writes in stack |
12 bytes | |
EA NOP 08 PHP 48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only EA NOP 10 F9 BPL *-5 68 PLA 28 PLP |
Writes in stack |
A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 5 18 CLC D0 F7 BNE *-7 |
Clobbers A, Z&N, and C |
35 bytes | |
EA NOP 68 ... PLA × 34 |
Clobbers A, S, and Z&N |
37 bytes | |
68 PLA 48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 30 10 DE BPL *-32 |
Clobbers A, and Z&N |
139 cycles
5 bytes | |
---|---|
A9 LDA #112 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
48 PHA A0 1B LDY #27 88 DEY D0 FB BNE *-3 |
Clobbers Y, S, and Z&N; and writes in stack |
48 PHA A2 1B LDX #27 CA DEX D0 FB BNE *-3 |
Clobbers X, S, and Z&N; and writes in stack |
7 bytes | |
A6 00 LDX $00 A2 1B LDX #27 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A4 00 LDY $00 A0 1B LDY #27 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 48 PHA 10 F9 BPL *-5 |
Clobbers A, S, Z&N, C, V, and D; and writes in stack |
08 PHP A9 LDA #105 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #105 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 85 xx STA @zptemp 10 F8 BPL *-6 |
Clobbers A, Z&N, C, V, and D; and requires @zptemp |
68 PLA A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts12 D0 FA BNE *-4 |
Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack |
38 SEC A9 11 LDA #17 48 PHA E9 01 SBC #1 D0 F8 BNE *-6 |
Clobbers A, S, Z&N, C, and V; and writes in stack |
38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 04 00 NOP $00 10 F8 BPL *-6 |
Clobbers A, Z&N, C, V, and D; and requires support for unofficial opcodes |
9 bytes | |
08 PHP BA TSX 68 PLA 9A TXS A2 E8 LDX #232 ;hides 'INX' D0 FD BNE *-1 28 PLP |
Clobbers A, and X; and writes in stack |
18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts12 D0 FA BNE *-4 |
Clobbers A, Z&N, and C; requires @rts12; and writes in stack |
38 SEC A9 11 LDA #17 24 00 BIT $00 E9 01 SBC #1 D0 F7 BNE *-7 |
Clobbers A, Z&N, C, and V |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' E6 xx INC @zptemp 00 00 BRK 0 90 F9 BCC *-5 |
Clobbers A, Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack |
68 PLA 8C TXA 48 PHA A2 E8 LDX #232 ;hides 'INX' D0 FD BNE *-1 68 PLA AA TAX |
Clobbers A, S, and Z&N; and writes in stack |
48 ... PHA × 2 08 PHP A2 19 LDX #25 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X, and S; and writes in stack |
48 ... PHA × 2 08 PHP A0 19 LDY #25 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y, and S; and writes in stack |
08 PHP 48 PHA A9 LDA #98 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
EA NOP 98 TYA 48 PHA A0 19 LDY #25 88 DEY D0 FB BNE *-3 68 PLA A8 TAY |
Clobbers A, and Z&N; and writes in stack |
EA ... NOP × 3 08 PHP A0 19 LDY #25 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
EA ... NOP × 3 08 PHP A2 19 LDX #25 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
48 PHA 00 00 BRK 0 08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 28 PLP |
Clobbers A, and S; requires dummy interrupt handler; and writes in stack |
48 PHA 00 00 BRK 0 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 68 PLA |
Clobbers S, Z&N, C, and V; requires dummy interrupt handler; and writes in stack |
11 bytes | |
48 PHA 98 TYA 48 PHA A0 18 LDY #24 88 DEY D0 FB BNE *-3 68 PLA A8 TAY 68 PLA |
Clobbers Z&N; and writes in stack |
EA ... NOP × 2 08 PHP 38 SEC A9 19 LDA #25 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
68 PLA A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 5 18 CLC D0 F7 BNE *-7 |
Clobbers A, S, Z&N, and C |
12 bytes | |
EA NOP 08 PHP 28 PLP 08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 68 PLA 28 PLP |
Writes in stack |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 3 36 00 ROL $00,X 76 00 ROR $00,X 90 F6 BCC *-8 |
Clobbers A, Z&N, and C |
35 bytes | |
68 ... PLA × 34 48 PHA |
Clobbers A, S, and Z&N |
37 bytes | |
A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 32 10 DC BPL *-34 |
Clobbers A, and Z&N |
140 cycles
5 bytes | |
---|---|
A9 LDA #113 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
68 PLA A0 1B LDY #27 88 DEY D0 FB BNE *-3 |
Clobbers A, Y, S, and Z&N |
68 PLA A2 1B LDX #27 CA DEX D0 FB BNE *-3 |
Clobbers A, X, S, and Z&N |
7 bytes | |
EA ... NOP × 2 A2 1B LDX #27 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
EA ... NOP × 2 A0 1B LDY #27 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
EA NOP 38 SEC A9 E9 LDA #$E9 ;hides 'SBC #$3A' 3A NOP ;first loop only D0 FA BNE *-4 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
08 PHP A9 LDA #106 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #106 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
EA NOP 08 PHP A0 1A LDY #26 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
EA NOP 08 PHP A2 1A LDX #26 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
EA NOP 38 SEC A9 1B LDA #27 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
9 bytes | |
08 PHP 38 SEC A9 1A LDA #26 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
48 PHA 38 SEC A9 1A LDA #26 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
08 PHP 48 PHA A9 LDA #99 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
11 bytes | |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA NOP 20 xx xx JSR @rts15 90 F9 BCC *-5 68 PLA |
Clobbers Z&N, and C; requires @rts15; and writes in stack |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 2 00 00 BRK 0 90 F9 BCC *-5 68 PLA |
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack |
12 bytes | |
20 xx xx JSR @rts15 08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FC BNE *-2 68 PLA 28 PLP |
Requires @rts15; and writes in stack |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' E6 xx INC @zptemp 20 xx xx JSR @rts12 90 F8 BCC *-6 68 PLA |
Clobbers Z&N, and C; requires @zptemp, and @rts12; and writes in stack |
E6 xx INC @zptemp A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 5 18 CLC D0 F7 BNE *-7 |
Clobbers A, Z&N, and C; and requires @zptemp |
EA NOP 00 00 BRK 0 08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FC BNE *-2 68 PLA 28 PLP |
Requires dummy interrupt handler; and writes in stack |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp 20 xx xx JSR @rts14 90 F8 BCC *-6 68 PLA |
Clobbers Z&N, and C; requires @zptemp, and @rts14; and writes in stack |
48 PHA 08 PHP 28 PLP 08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 68 PLA 28 PLP |
Clobbers S; and writes in stack |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 20 xx xx JSR @rts14 90 F8 BCC *-6 68 PLA |
Clobbers Z&N, and C; requires @rts14, and support for unofficial opcodes; and writes in stack |
13 bytes | |
08 PHP 24 00 BIT $00 28 PLP 08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 68 PLA 28 PLP |
Writes in stack |
EA NOP A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 5 18 CLC D0 F7 BNE *-7 |
Clobbers A, Z&N, and C |
35 bytes | |
68 ... PLA × 35 |
Clobbers A, S, and Z&N |
38 bytes | |
EA NOP 68 PLA 48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 30 10 DE BPL *-32 |
Clobbers A, and Z&N |
141 cycles
5 bytes | |
---|---|
A0 1C LDY #28 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A2 1C LDX #28 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A9 LDA #114 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
7 bytes | |
48 PHA 38 SEC A9 E9 LDA #$E9 ;hides 'SBC #$3A' 3A NOP ;first loop only D0 FA BNE *-4 |
Clobbers A, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
08 PHP A9 LDA #107 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #107 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
08 PHP A0 13 LDY #19 EA NOP 88 DEY D0 FA BNE *-4 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 13 LDX #19 EA NOP CA DEX D0 FA BNE *-4 28 PLP |
Clobbers X; and writes in stack |
A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA NOP 08 PHP 28 PLP 30 F9 BMI *-5 |
Clobbers A, Z&N, C, and V; and writes in stack |
04 00 NOP $00 38 SEC A9 E9 LDA #$E9 ;hides 'SBC #$3A' 3A NOP ;first loop only D0 FA BNE *-4 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
9 bytes | |
A5 00 LDA $00 38 SEC A9 1B LDA #27 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
EA NOP 68 PLA A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts12 D0 FA BNE *-4 |
Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack |
08 PHP 48 PHA A9 LDA #100 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
18 ... CLC × 3 A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts12 D0 FA BNE *-4 |
Clobbers A, Z&N, and C; requires @rts12; and writes in stack |
08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$2A' 2A ROL A ;first loop only 20 xx xx JSR @rts14 B0 F9 BCS *-5 28 PLP |
Clobbers A; requires @rts14; and writes in stack |
48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$2A' 2A ROL A ;first loop only 20 xx xx JSR @rts14 B0 F9 BCS *-5 68 PLA |
Clobbers Z&N, C, and V; requires @rts14; and writes in stack |
18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' E6 xx INC @zptemp 00 00 BRK 0 90 F9 BCC *-5 |
Clobbers A, Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack |
68 PLA 98 TYA 48 PHA A0 19 LDY #25 88 DEY D0 FB BNE *-3 68 PLA A8 TAY |
Clobbers A, S, and Z&N; and writes in stack |
11 bytes | |
08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$2A' 2A ROL A ;first loop only 08 PHP \ × 2 28 PLP / B0 F8 BCS *-6 28 PLP |
Clobbers A; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 20 xx xx JSR @rts15 10 F8 BPL *-6 68 PLA |
Clobbers Z&N, and C; requires @rts15; and writes in stack |
48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$2A' 2A ROL A ;first loop only 08 PHP \ × 2 28 PLP / B0 F8 BCS *-6 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$2A' 2A ROL A ;first loop only 00 00 BRK 0 B0 FA BCS *-4 68 PLA 28 PLP |
Requires dummy interrupt handler; and writes in stack |
12 bytes | |
08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA NOP 08 PHP 28 PLP 18 CLC D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
EA NOP 68 PLA A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 5 18 CLC D0 F7 BNE *-7 |
Clobbers A, S, Z&N, and C |
13 bytes | |
18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 3 36 00 ROL $00,X 76 00 ROR $00,X 90 F6 BCC *-8 |
Clobbers A, Z&N, and C |
36 bytes | |
EA NOP 68 ... PLA × 34 48 PHA |
Clobbers A, S, and Z&N |
38 bytes | |
EA NOP A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 32 10 DC BPL *-34 |
Clobbers A, and Z&N |
142 cycles
5 bytes | |
---|---|
A9 LDA #115 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
7 bytes | |
A2 98 LDX #152 ;hides 'TYA' EA NOP CA ... DEX × 2 30 FA BMI *-4 |
Clobbers A, X, and Z&N |
A0 98 LDY #152 ;hides 'TYA' EA NOP 88 ... DEY × 2 30 FA BMI *-4 |
Clobbers A, Y, and Z&N |
48 ... PHA × 2 A2 1B LDX #27 CA DEX D0 FB BNE *-3 |
Clobbers X, S, and Z&N; and writes in stack |
48 ... PHA × 2 A0 1B LDY #27 88 DEY D0 FB BNE *-3 |
Clobbers Y, S, and Z&N; and writes in stack |
A0 1A LDY #26 ;hides 'NOP' EA NOP 88 ... DEY × 2 D0 FA BNE *-4 |
Clobbers Y, and Z&N; and requires support for unofficial opcodes |
A2 1A LDX #26 ;hides 'NOP' EA NOP CA ... DEX × 2 D0 FA BNE *-4 |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
68 PLA 38 SEC A9 E9 LDA #$E9 ;hides 'SBC #$3A' 3A NOP ;first loop only D0 FA BNE *-4 |
Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes |
08 PHP A9 LDA #108 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #108 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
EA ... NOP × 3 A2 1B LDX #27 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
EA ... NOP × 3 A0 1B LDY #27 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
68 PLA 38 SEC A9 1B LDA #27 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, S, Z&N, C, and V |
EA ... NOP × 2 38 SEC A9 E9 LDA #$E9 ;hides 'SBC #$3A' 3A NOP ;first loop only D0 FA BNE *-4 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
9 bytes | |
08 PHP A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts12 D0 FA BNE *-4 28 PLP |
Clobbers A; requires @rts12; and writes in stack |
98 TYA 48 PHA A0 1A LDY #26 88 DEY D0 FB BNE *-3 68 PLA A8 TAY |
Clobbers A, and Z&N; and writes in stack |
EA ... NOP × 2 08 PHP A0 1A LDY #26 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
EA ... NOP × 2 08 PHP A2 1A LDX #26 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts12 D0 FA BNE *-4 68 PLA |
Clobbers Z&N, and C; requires @rts12; and writes in stack |
EA ... NOP × 2 38 SEC A9 1B LDA #27 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
08 PHP 48 PHA A9 LDA #101 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
48 PHA 8C TXA 48 PHA A2 E8 LDX #232 ;hides 'INX' D0 FD BNE *-1 68 PLA AA TAX 68 PLA |
Clobbers Z&N; and writes in stack |
EA NOP 08 PHP 38 SEC A9 1A LDA #26 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
11 bytes | |
08 PHP 48 PHA 38 SEC A9 19 LDA #25 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
12 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 |
Clobbers A, Z&N, and C |
36 bytes | |
EA NOP 68 ... PLA × 35 |
Clobbers A, S, and Z&N |
38 bytes | |
68 PLA 48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 31 10 DD BPL *-33 |
Clobbers A, and Z&N |
143 cycles
5 bytes | |
---|---|
A9 LDA #116 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
EA NOP A2 1C LDX #28 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
EA NOP A0 1C LDY #28 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 D0 FB BNE *-3 |
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack |
18 CLC A9 EB LDA #$EB ;hides 'SBC #$7A' 7A NOP ;first loop only D0 FA BNE *-4 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
7 bytes | |
08 PHP A0 1B LDY #27 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 1B LDX #27 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
38 SEC A9 1C LDA #28 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
08 PHP A9 LDA #109 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #109 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' 48 ... PHA × 2 08 PHP 28 PLP D0 F9 BNE *-5 |
Clobbers A, S, Z&N, and C; and writes in stack |
9 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 2 08 PHP 28 PLP 18 CLC D0 F8 BNE *-6 |
Clobbers A, Z&N, and C; and writes in stack |
08 PHP 48 PHA A9 LDA #102 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP 38 SEC A9 13 LDA #19 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 28 PLP |
Clobbers A; and writes in stack |
48 PHA 38 SEC A9 13 LDA #19 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
11 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' 18 ... CLC × 4 90 00 BCC *+2 18 CLC D0 F6 BNE *-8 |
Clobbers A, Z&N, and C |
00 00 BRK 0 08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 68 PLA 28 PLP |
Requires dummy interrupt handler; and writes in stack |
12 bytes | |
08 PHP 48 PHA 38 SEC A9 12 LDA #18 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 68 PLA 28 PLP |
Writes in stack |
36 bytes | |
68 ... PLA × 35 48 PHA |
Clobbers A, S, and Z&N |
38 bytes | |
A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 33 10 DB BPL *-35 |
Clobbers A, and Z&N |
144 cycles
5 bytes | |
---|---|
A9 LDA #117 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
48 PHA A2 1C LDX #28 CA DEX D0 FB BNE *-3 |
Clobbers X, S, and Z&N; and writes in stack |
48 PHA A0 1C LDY #28 88 DEY D0 FB BNE *-3 |
Clobbers Y, S, and Z&N; and writes in stack |
7 bytes | |
A6 00 LDX $00 A2 1C LDX #28 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A4 00 LDY $00 A0 1C LDY #28 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
08 PHP A9 LDA #110 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #110 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
00 00 BRK 0 08 PHP A2 E8 LDX #232 ;hides 'INX' D0 FD BNE *-1 28 PLP |
Clobbers X; requires dummy interrupt handler; and writes in stack |
EA NOP 68 PLA 38 SEC A9 E9 LDA #$E9 ;hides 'SBC #$3A' 3A NOP ;first loop only D0 FA BNE *-4 |
Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes |
9 bytes | |
08 PHP A2 11 LDX #17 24 00 BIT $00 CA DEX D0 F9 BNE *-5 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 11 LDY #17 C5 00 CMP $00 88 DEY D0 F9 BNE *-5 28 PLP |
Clobbers Y; and writes in stack |
EA NOP 68 PLA 38 SEC A9 1B LDA #27 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, S, Z&N, C, and V |
EA ... NOP × 3 38 SEC A9 E9 LDA #$E9 ;hides 'SBC #$3A' 3A NOP ;first loop only D0 FA BNE *-4 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
08 PHP 48 PHA A9 LDA #103 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts12 D0 FA BNE *-4 28 PLP |
Clobbers A; requires @rts12; and writes in stack |
EA NOP 98 TYA 48 PHA A0 1A LDY #26 88 DEY D0 FB BNE *-3 68 PLA A8 TAY |
Clobbers A, and Z&N; and writes in stack |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts12 D0 FA BNE *-4 68 PLA |
Clobbers Z&N, and C; requires @rts12; and writes in stack |
EA ... NOP × 3 38 SEC A9 1B LDA #27 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
11 bytes | |
48 PHA 98 TYA 48 PHA A0 19 LDY #25 88 DEY D0 FB BNE *-3 68 PLA A8 TAY 68 PLA |
Clobbers Z&N; and writes in stack |
EA ... NOP × 2 08 PHP 38 SEC A9 1A LDA #26 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
12 bytes | |
EA NOP 08 PHP 48 PHA 38 SEC A9 19 LDA #25 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
13 bytes | |
EA NOP A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 |
Clobbers A, Z&N, and C |
36 bytes | |
68 ... PLA × 36 |
Clobbers A, S, and Z&N |
39 bytes | |
EA NOP 68 PLA 48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 31 10 DD BPL *-33 |
Clobbers A, and Z&N |
145 cycles
5 bytes | |
---|---|
A9 LDA #118 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A0 12 LDY #18 48 PHA 88 DEY D0 FA BNE *-4 |
Clobbers Y, S, and Z&N; and writes in stack |
A2 12 LDX #18 48 PHA CA DEX D0 FA BNE *-4 |
Clobbers X, S, and Z&N; and writes in stack |
A2 10 LDX #16 68 PLA CA DEX D0 FA BNE *-4 |
Clobbers A, X, S, and Z&N |
A0 10 LDY #16 68 PLA 88 DEY D0 FA BNE *-4 |
Clobbers A, Y, S, and Z&N |
7 bytes | |
A0 10 LDY #16 EA ... NOP × 2 88 DEY D0 F9 BNE *-5 |
Clobbers Y, and Z&N |
A2 10 LDX #16 EA ... NOP × 2 CA DEX D0 F9 BNE *-5 |
Clobbers X, and Z&N |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 D0 FB BNE *-3 |
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack |
EA NOP 18 CLC A9 EB LDA #$EB ;hides 'SBC #$7A' 7A NOP ;first loop only D0 FA BNE *-4 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
08 PHP A9 LDA #111 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #111 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
EA NOP 08 PHP A2 1B LDX #27 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
EA NOP 08 PHP A0 1B LDY #27 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
EA NOP 38 SEC A9 1C LDA #28 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
08 PHP 38 SEC A9 E9 LDA #$E9 ;hides 'SBC #$3A' 3A NOP ;first loop only D0 FA BNE *-4 28 PLP |
Clobbers A; requires support for unofficial opcodes; and writes in stack |
48 PHA 38 SEC A9 E9 LDA #$E9 ;hides 'SBC #$3A' 3A NOP ;first loop only D0 FA BNE *-4 68 PLA |
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
9 bytes | |
08 PHP 38 SEC A9 1B LDA #27 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
48 PHA 38 SEC A9 1B LDA #27 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
08 PHP 48 PHA A9 LDA #104 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
48 ... PHA × 2 A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts12 D0 FA BNE *-4 68 PLA |
Clobbers S, Z&N, and C; requires @rts12; and writes in stack |
11 bytes | |
C5 00 CMP $00 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts12 D0 FA BNE *-4 68 PLA |
Clobbers Z&N, and C; requires @rts12; and writes in stack |
48 ... PHA × 2 8C TXA 48 PHA A2 E8 LDX #232 ;hides 'INX' D0 FD BNE *-1 68 PLA AA TAX 68 PLA |
Clobbers S, and Z&N; and writes in stack |
12 bytes | |
20 xx xx JSR @rts15 08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 68 PLA 28 PLP |
Requires @rts15; and writes in stack |
48 PHA 98 TYA 48 PHA A0 12 LDY #18 EA NOP 88 DEY D0 FA BNE *-4 68 PLA A8 TAY 68 PLA |
Clobbers Z&N; and writes in stack |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 18 ... CLC × 4 90 00 BCC *+2 18 CLC D0 F6 BNE *-8 |
Clobbers A, Z&N, and C |
08 PHP 48 PHA 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 85 xx STA @zptemp 10 F8 BPL *-6 68 PLA 28 PLP |
Requires @zptemp; and writes in stack |
EA NOP 00 00 BRK 0 08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 68 PLA 28 PLP |
Requires dummy interrupt handler; and writes in stack |
48 PHA 08 PHP 48 PHA 38 SEC A9 19 LDA #25 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Clobbers S; and writes in stack |
08 PHP 48 PHA 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 04 00 NOP $00 10 F8 BPL *-6 68 PLA 28 PLP |
Requires support for unofficial opcodes; and writes in stack |
13 bytes | |
08 PHP 48 PHA 38 SEC A9 10 LDA #16 24 00 BIT $00 E9 01 SBC #1 D0 F7 BNE *-7 68 PLA 28 PLP |
Writes in stack |
37 bytes | |
EA NOP 68 ... PLA × 35 48 PHA |
Clobbers A, S, and Z&N |
39 bytes | |
EA NOP A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 33 10 DB BPL *-35 |
Clobbers A, and Z&N |
146 cycles
5 bytes | |
---|---|
A0 1D LDY #29 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A2 1D LDX #29 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A9 LDA #119 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
7 bytes | |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 D0 FB BNE *-3 |
Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack |
48 PHA 18 CLC A9 EB LDA #$EB ;hides 'SBC #$7A' 7A NOP ;first loop only D0 FA BNE *-4 |
Clobbers A, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
08 PHP A9 LDA #112 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #112 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 D0 FB BNE *-3 |
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack |
48 PHA 08 PHP A2 1B LDX #27 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X, and S; and writes in stack |
48 PHA 08 PHP A0 1B LDY #27 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y, and S; and writes in stack |
48 PHA 38 SEC A9 1C LDA #28 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, S, Z&N, C, and V; and writes in stack |
04 00 NOP $00 18 CLC A9 EB LDA #$EB ;hides 'SBC #$7A' 7A NOP ;first loop only D0 FA BNE *-4 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
9 bytes | |
08 PHP A6 00 LDX $00 A2 1B LDX #27 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
08 PHP A4 00 LDY $00 A0 1B LDY #27 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
A5 00 LDA $00 38 SEC A9 1C LDA #28 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 48 ... PHA × 2 08 PHP 28 PLP D0 F9 BNE *-5 |
Clobbers A, S, Z&N, and C; and writes in stack |
08 PHP 48 PHA A9 LDA #105 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP 38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 85 xx STA @zptemp 10 F8 BPL *-6 28 PLP |
Clobbers A; requires @zptemp; and writes in stack |
48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 85 xx STA @zptemp 10 F8 BPL *-6 68 PLA |
Clobbers Z&N, C, V, and D; requires @zptemp; and writes in stack |
68 PLA 98 TYA 48 PHA A0 1A LDY #26 88 DEY D0 FB BNE *-3 68 PLA A8 TAY |
Clobbers A, S, and Z&N; and writes in stack |
08 PHP 38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 04 00 NOP $00 10 F8 BPL *-6 28 PLP |
Clobbers A; requires support for unofficial opcodes; and writes in stack |
48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 04 00 NOP $00 10 F8 BPL *-6 68 PLA |
Clobbers Z&N, C, V, and D; requires support for unofficial opcodes; and writes in stack |
11 bytes | |
08 PHP 38 SEC A9 11 LDA #17 24 00 BIT $00 E9 01 SBC #1 D0 F7 BNE *-7 28 PLP |
Clobbers A; and writes in stack |
48 PHA 18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts12 D0 FA BNE *-4 68 PLA |
Clobbers Z&N, and C; requires @rts12; and writes in stack |
48 PHA 38 SEC A9 11 LDA #17 24 00 BIT $00 E9 01 SBC #1 D0 F7 BNE *-7 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' E6 xx INC @zptemp 00 00 BRK 0 90 F9 BCC *-5 68 PLA |
Clobbers Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack |
12 bytes | |
EA NOP 48 PHA 98 TYA 48 PHA A0 19 LDY #25 88 DEY D0 FB BNE *-3 68 PLA A8 TAY 68 PLA |
Clobbers Z&N; and writes in stack |
48 PHA 00 00 BRK 0 08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 68 PLA 28 PLP |
Clobbers S; requires dummy interrupt handler; and writes in stack |
13 bytes | |
EA ... NOP × 2 08 PHP 48 PHA 38 SEC A9 19 LDA #25 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' 18 ... CLC × 4 90 00 BCC *+2 18 CLC D0 F6 BNE *-8 |
Clobbers A, Z&N, and C |
37 bytes | |
EA NOP 68 ... PLA × 36 |
Clobbers A, S, and Z&N |
39 bytes | |
68 PLA 48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 32 10 DC BPL *-34 |
Clobbers A, and Z&N |
147 cycles
5 bytes | |
---|---|
A9 LDA #120 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
7 bytes | |
EA NOP A0 12 LDY #18 48 PHA 88 DEY D0 FA BNE *-4 |
Clobbers Y, S, and Z&N; and writes in stack |
EA NOP A2 12 LDX #18 48 PHA CA DEX D0 FA BNE *-4 |
Clobbers X, S, and Z&N; and writes in stack |
EA NOP A0 10 LDY #16 68 PLA 88 DEY D0 FA BNE *-4 |
Clobbers A, Y, S, and Z&N |
EA NOP A2 10 LDX #16 68 PLA CA DEX D0 FA BNE *-4 |
Clobbers A, X, S, and Z&N |
68 PLA A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 D0 FB BNE *-3 |
Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack |
68 PLA 18 CLC A9 EB LDA #$EB ;hides 'SBC #$7A' 7A NOP ;first loop only D0 FA BNE *-4 |
Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes |
08 PHP A9 LDA #113 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #113 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
EA NOP A2 10 LDX #16 EA ... NOP × 2 CA DEX D0 F9 BNE *-5 |
Clobbers X, and Z&N |
EA NOP A0 10 LDY #16 EA ... NOP × 2 88 DEY D0 F9 BNE *-5 |
Clobbers Y, and Z&N |
18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only EA ... NOP × 2 10 F8 BPL *-6 |
Clobbers A, Z&N, C, V, and D |
18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 D0 FB BNE *-3 |
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack |
68 PLA 38 SEC A9 1C LDA #28 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, S, Z&N, C, and V |
EA ... NOP × 2 18 CLC A9 EB LDA #$EB ;hides 'SBC #$7A' 7A NOP ;first loop only D0 FA BNE *-4 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
9 bytes | |
8C TXA 48 PHA A2 1B LDX #27 CA DEX D0 FB BNE *-3 68 PLA AA TAX |
Clobbers A, and Z&N; and writes in stack |
EA ... NOP × 2 08 PHP A0 1B LDY #27 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
EA ... NOP × 2 08 PHP A2 1B LDX #27 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
38 SEC A9 12 LDA #18 24 00 BIT $00 E9 01 SBC #1 D0 F7 BNE *-7 |
Clobbers A, Z&N, C, and V |
EA NOP 08 PHP 38 SEC A9 E9 LDA #$E9 ;hides 'SBC #$3A' 3A NOP ;first loop only D0 FA BNE *-4 28 PLP |
Clobbers A; requires support for unofficial opcodes; and writes in stack |
EA NOP 48 PHA 38 SEC A9 E9 LDA #$E9 ;hides 'SBC #$3A' 3A NOP ;first loop only D0 FA BNE *-4 68 PLA |
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
08 PHP 48 PHA A9 LDA #106 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
EA NOP 08 PHP 38 SEC A9 1B LDA #27 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
EA NOP 48 PHA 38 SEC A9 1B LDA #27 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
11 bytes | |
08 PHP 48 PHA 38 SEC A9 1A LDA #26 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
12 bytes | |
68 PLA A9 0A LDA #$0A ;hides 'ASL A' 18 ... CLC × 4 90 00 BCC *+2 18 CLC D0 F6 BNE *-8 |
Clobbers A, S, Z&N, and C |
13 bytes | |
18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' 18 ... CLC × 4 90 00 BCC *+2 18 CLC D0 F6 BNE *-8 |
Clobbers A, Z&N, and C |
37 bytes | |
68 ... PLA × 36 48 PHA |
Clobbers A, S, and Z&N |
39 bytes | |
A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 34 10 DA BPL *-36 |
Clobbers A, and Z&N |
148 cycles
5 bytes | |
---|---|
A9 LDA #121 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A0 15 LDY #21 EA NOP 88 DEY D0 FA BNE *-4 |
Clobbers Y, and Z&N |
A2 15 LDX #21 EA NOP CA DEX D0 FA BNE *-4 |
Clobbers X, and Z&N |
18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$9A' 9A TXS ;first loop only D0 FA BNE *-4 |
Clobbers A, S, Z&N, C, and V |
7 bytes | |
08 PHP A0 1C LDY #28 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 1C LDX #28 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
38 SEC A9 1D LDA #29 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
08 PHP A9 LDA #114 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #114 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
E6 xx INC @zptemp A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 D0 FB BNE *-3 |
Clobbers A, Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack |
EA NOP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 D0 FB BNE *-3 |
Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack |
9 bytes | |
EA NOP A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 D0 FB BNE *-3 |
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack |
48 PHA 08 PHP 38 SEC A9 E9 LDA #$E9 ;hides 'SBC #$3A' 3A NOP ;first loop only D0 FA BNE *-4 28 PLP |
Clobbers A, and S; requires support for unofficial opcodes; and writes in stack |
48 ... PHA × 2 38 SEC A9 E9 LDA #$E9 ;hides 'SBC #$3A' 3A NOP ;first loop only D0 FA BNE *-4 68 PLA |
Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
08 PHP 48 PHA A9 LDA #107 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA NOP 08 PHP 28 PLP 30 F9 BMI *-5 28 PLP |
Clobbers A; and writes in stack |
48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA NOP 08 PHP 28 PLP 30 F9 BMI *-5 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
11 bytes | |
48 ... PHA × 3 A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts12 D0 FA BNE *-4 68 PLA |
Clobbers S, Z&N, and C; requires @rts12; and writes in stack |
12 bytes | |
48 PHA 18 ... CLC × 3 A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts12 D0 FA BNE *-4 68 PLA |
Clobbers Z&N, and C; requires @rts12; and writes in stack |
08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$2A' 2A ROL A ;first loop only 20 xx xx JSR @rts14 B0 F9 BCS *-5 68 PLA 28 PLP |
Requires @rts14; and writes in stack |
48 PHA 18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' E6 xx INC @zptemp 00 00 BRK 0 90 F9 BCC *-5 68 PLA |
Clobbers Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack |
48 ... PHA × 3 8C TXA 48 PHA A2 E8 LDX #232 ;hides 'INX' D0 FD BNE *-1 68 PLA AA TAX 68 PLA |
Clobbers S, and Z&N; and writes in stack |
13 bytes | |
08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$2A' 2A ROL A ;first loop only 08 PHP \ × 2 28 PLP / B0 F8 BCS *-6 68 PLA 28 PLP |
Writes in stack |
E6 xx INC @zptemp A9 0A LDA #$0A ;hides 'ASL A' 18 ... CLC × 4 90 00 BCC *+2 18 CLC D0 F6 BNE *-8 |
Clobbers A, Z&N, and C; and requires @zptemp |
14 bytes | |
EA NOP A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' 18 ... CLC × 4 90 00 BCC *+2 18 CLC D0 F6 BNE *-8 |
Clobbers A, Z&N, and C |
37 bytes | |
68 ... PLA × 37 |
Clobbers A, S, and Z&N |
40 bytes | |
EA NOP 68 PLA 48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 32 10 DC BPL *-34 |
Clobbers A, and Z&N |
149 cycles
5 bytes | |
---|---|
A9 LDA #122 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
48 PHA A2 1D LDX #29 CA DEX D0 FB BNE *-3 |
Clobbers X, S, and Z&N; and writes in stack |
48 PHA A0 1D LDY #29 88 DEY D0 FB BNE *-3 |
Clobbers Y, S, and Z&N; and writes in stack |
7 bytes | |
A4 00 LDY $00 A0 1D LDY #29 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A6 00 LDX $00 A2 1D LDX #29 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
08 PHP A9 LDA #115 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #115 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
EA NOP 68 PLA A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 D0 FB BNE *-3 |
Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack |
EA NOP 68 PLA 18 CLC A9 EB LDA #$EB ;hides 'SBC #$7A' 7A NOP ;first loop only D0 FA BNE *-4 |
Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes |
9 bytes | |
08 PHP A2 98 LDX #152 ;hides 'TYA' EA NOP CA ... DEX × 2 30 FA BMI *-4 28 PLP |
Clobbers A, and X; and writes in stack |
08 PHP A0 98 LDY #152 ;hides 'TYA' EA NOP 88 ... DEY × 2 30 FA BMI *-4 28 PLP |
Clobbers A, and Y; and writes in stack |
EA NOP 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only EA ... NOP × 2 10 F8 BPL *-6 |
Clobbers A, Z&N, C, V, and D |
18 ... CLC × 3 A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 D0 FB BNE *-3 |
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack |
48 ... PHA × 2 08 PHP A2 1B LDX #27 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X, and S; and writes in stack |
48 ... PHA × 2 08 PHP A0 1B LDY #27 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y, and S; and writes in stack |
EA NOP 68 PLA 38 SEC A9 1C LDA #28 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, S, Z&N, C, and V |
08 PHP A0 1A LDY #26 ;hides 'NOP' EA NOP 88 ... DEY × 2 D0 FA BNE *-4 28 PLP |
Clobbers Y; requires support for unofficial opcodes; and writes in stack |
08 PHP A2 1A LDX #26 ;hides 'NOP' EA NOP CA ... DEX × 2 D0 FA BNE *-4 28 PLP |
Clobbers X; requires support for unofficial opcodes; and writes in stack |
EA ... NOP × 3 18 CLC A9 EB LDA #$EB ;hides 'SBC #$7A' 7A NOP ;first loop only D0 FA BNE *-4 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
68 PLA 08 PHP 38 SEC A9 E9 LDA #$E9 ;hides 'SBC #$3A' 3A NOP ;first loop only D0 FA BNE *-4 28 PLP |
Clobbers A, S, and Z&N; requires support for unofficial opcodes; and writes in stack |
08 PHP 48 PHA A9 LDA #108 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
EA NOP 8C TXA 48 PHA A2 1B LDX #27 CA DEX D0 FB BNE *-3 68 PLA AA TAX |
Clobbers A, and Z&N; and writes in stack |
EA ... NOP × 3 08 PHP A2 1B LDX #27 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
EA ... NOP × 3 08 PHP A0 1B LDY #27 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
EA NOP 38 SEC A9 12 LDA #18 24 00 BIT $00 E9 01 SBC #1 D0 F7 BNE *-7 |
Clobbers A, Z&N, C, and V |
EA ... NOP × 2 08 PHP 38 SEC A9 E9 LDA #$E9 ;hides 'SBC #$3A' 3A NOP ;first loop only D0 FA BNE *-4 28 PLP |
Clobbers A; requires support for unofficial opcodes; and writes in stack |
EA ... NOP × 2 48 PHA 38 SEC A9 E9 LDA #$E9 ;hides 'SBC #$3A' 3A NOP ;first loop only D0 FA BNE *-4 68 PLA |
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
11 bytes | |
08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts12 D0 FA BNE *-4 68 PLA 28 PLP |
Requires @rts12; and writes in stack |
48 PHA 98 TYA 48 PHA A0 1A LDY #26 88 DEY D0 FB BNE *-3 68 PLA A8 TAY 68 PLA |
Clobbers Z&N; and writes in stack |
EA ... NOP × 2 08 PHP 38 SEC A9 1B LDA #27 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
12 bytes | |
EA NOP 08 PHP 48 PHA 38 SEC A9 1A LDA #26 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
13 bytes | |
EA NOP 68 PLA A9 0A LDA #$0A ;hides 'ASL A' 18 ... CLC × 4 90 00 BCC *+2 18 CLC D0 F6 BNE *-8 |
Clobbers A, S, Z&N, and C |
14 bytes | |
18 ... CLC × 3 A9 0A LDA #$0A ;hides 'ASL A' 18 ... CLC × 4 90 00 BCC *+2 18 CLC D0 F6 BNE *-8 |
Clobbers A, Z&N, and C |
38 bytes | |
EA NOP 68 ... PLA × 36 48 PHA |
Clobbers A, S, and Z&N |
40 bytes | |
EA NOP A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 34 10 DA BPL *-36 |
Clobbers A, and Z&N |
150 cycles
5 bytes | |
---|---|
A9 LDA #123 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
68 PLA A0 1D LDY #29 88 DEY D0 FB BNE *-3 |
Clobbers A, Y, S, and Z&N |
68 PLA A2 1D LDX #29 CA DEX D0 FB BNE *-3 |
Clobbers A, X, S, and Z&N |
7 bytes | |
EA NOP A0 15 LDY #21 EA NOP 88 DEY D0 FA BNE *-4 |
Clobbers Y, and Z&N |
EA NOP A2 15 LDX #21 EA NOP CA DEX D0 FA BNE *-4 |
Clobbers X, and Z&N |
EA NOP 18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$9A' 9A TXS ;first loop only D0 FA BNE *-4 |
Clobbers A, S, Z&N, C, and V |
08 PHP A9 LDA #116 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #116 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
EA NOP 08 PHP A0 1C LDY #28 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
EA NOP 08 PHP A2 1C LDX #28 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
38 SEC A9 15 LDA #21 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 |
Clobbers A, Z&N, C, and V |
08 PHP A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 D0 FB BNE *-3 28 PLP |
Clobbers A; requires dummy interrupt handler; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 D0 FB BNE *-3 68 PLA |
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack |
08 PHP 18 CLC A9 EB LDA #$EB ;hides 'SBC #$7A' 7A NOP ;first loop only D0 FA BNE *-4 28 PLP |
Clobbers A; requires support for unofficial opcodes; and writes in stack |
48 PHA 18 CLC A9 EB LDA #$EB ;hides 'SBC #$7A' 7A NOP ;first loop only D0 FA BNE *-4 68 PLA |
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
9 bytes | |
08 PHP 38 SEC A9 1C LDA #28 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
48 PHA 38 SEC A9 1C LDA #28 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
08 PHP 48 PHA A9 LDA #109 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
11 bytes | |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 2 08 PHP 28 PLP 18 CLC D0 F8 BNE *-6 68 PLA |
Clobbers Z&N, and C; and writes in stack |
12 bytes | |
08 PHP 48 PHA 38 SEC A9 13 LDA #19 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 68 PLA 28 PLP |
Writes in stack |
13 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 A9 0A LDA #$0A ;hides 'ASL A' 18 ... CLC × 2 90 00 BCC *+2 18 CLC D0 F8 BNE *-6 |
Clobbers A, Z&N, and C |
38 bytes | |
EA NOP 68 ... PLA × 37 |
Clobbers A, S, and Z&N |
40 bytes | |
68 PLA 48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 33 10 DB BPL *-35 |
Clobbers A, and Z&N |
151 cycles
5 bytes | |
---|---|
A0 1E LDY #30 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A2 1E LDX #30 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A9 LDA #124 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
7 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts14 D0 FA BNE *-4 |
Clobbers A, Z&N, and C; requires @rts14; and writes in stack |
48 PHA 18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$9A' 9A TXS ;first loop only D0 FA BNE *-4 |
Clobbers A, S, Z&N, C, and V; and writes in stack |
08 PHP A9 LDA #117 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #117 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' 08 PHP \ × 2 28 PLP / D0 F9 BNE *-5 |
Clobbers A, Z&N, and C; and writes in stack |
48 PHA 08 PHP A2 1C LDX #28 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X, and S; and writes in stack |
48 PHA 08 PHP A0 1C LDY #28 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y, and S; and writes in stack |
A5 00 LDA $00 18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$9A' 9A TXS ;first loop only D0 FA BNE *-4 |
Clobbers A, S, Z&N, C, and V |
9 bytes | |
08 PHP A6 00 LDX $00 A2 1C LDX #28 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
08 PHP A4 00 LDY $00 A0 1C LDY #28 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
A5 00 LDA $00 38 SEC A9 1D LDA #29 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
08 PHP 48 PHA A9 LDA #110 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
68 PLA 8C TXA 48 PHA A2 1B LDX #27 CA DEX D0 FB BNE *-3 68 PLA AA TAX |
Clobbers A, S, and Z&N; and writes in stack |
48 ... PHA × 2 08 PHP 38 SEC A9 E9 LDA #$E9 ;hides 'SBC #$3A' 3A NOP ;first loop only D0 FA BNE *-4 28 PLP |
Clobbers A, and S; requires support for unofficial opcodes; and writes in stack |
48 ... PHA × 3 38 SEC A9 E9 LDA #$E9 ;hides 'SBC #$3A' 3A NOP ;first loop only D0 FA BNE *-4 68 PLA |
Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
11 bytes | |
EA ... NOP × 2 8C TXA 48 PHA A2 1B LDX #27 CA DEX D0 FB BNE *-3 68 PLA AA TAX |
Clobbers A, and Z&N; and writes in stack |
A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 6 18 CLC D0 F6 BNE *-8 |
Clobbers A, Z&N, and C |
48 ... PHA × 2 08 PHP 38 SEC A9 1B LDA #27 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A, and S; and writes in stack |
48 ... PHA × 3 38 SEC A9 1B LDA #27 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers S, Z&N, C, and V; and writes in stack |
EA ... NOP × 3 08 PHP 38 SEC A9 E9 LDA #$E9 ;hides 'SBC #$3A' 3A NOP ;first loop only D0 FA BNE *-4 28 PLP |
Clobbers A; requires support for unofficial opcodes; and writes in stack |
EA ... NOP × 3 48 PHA 38 SEC A9 E9 LDA #$E9 ;hides 'SBC #$3A' 3A NOP ;first loop only D0 FA BNE *-4 68 PLA |
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
12 bytes | |
08 PHP 48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts12 D0 FA BNE *-4 68 PLA 28 PLP |
Requires @rts12; and writes in stack |
EA NOP 48 PHA 98 TYA 48 PHA A0 1A LDY #26 88 DEY D0 FB BNE *-3 68 PLA A8 TAY 68 PLA |
Clobbers Z&N; and writes in stack |
EA ... NOP × 3 08 PHP 38 SEC A9 1B LDA #27 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
13 bytes | |
EA ... NOP × 2 08 PHP 48 PHA 38 SEC A9 1A LDA #26 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
38 bytes | |
68 ... PLA × 37 48 PHA |
Clobbers A, S, and Z&N |
40 bytes | |
A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 35 10 D9 BPL *-37 |
Clobbers A, and Z&N |
152 cycles
5 bytes | |
---|---|
A9 LDA #125 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
7 bytes | |
48 ... PHA × 2 A0 1D LDY #29 88 DEY D0 FB BNE *-3 |
Clobbers Y, S, and Z&N; and writes in stack |
48 ... PHA × 2 A2 1D LDX #29 CA DEX D0 FB BNE *-3 |
Clobbers X, S, and Z&N; and writes in stack |
EA NOP 68 PLA A0 1D LDY #29 88 DEY D0 FB BNE *-3 |
Clobbers A, Y, S, and Z&N |
EA NOP 68 PLA A2 1D LDX #29 CA DEX D0 FB BNE *-3 |
Clobbers A, X, S, and Z&N |
68 PLA 18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$9A' 9A TXS ;first loop only D0 FA BNE *-4 |
Clobbers A, S, Z&N, C, and V |
08 PHP A9 LDA #118 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #118 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
EA ... NOP × 2 A2 15 LDX #21 EA NOP CA DEX D0 FA BNE *-4 |
Clobbers X, and Z&N |
EA ... NOP × 2 A0 15 LDY #21 EA NOP 88 DEY D0 FA BNE *-4 |
Clobbers Y, and Z&N |
9 bytes | |
98 TYA 48 PHA A0 1C LDY #28 88 DEY D0 FB BNE *-3 68 PLA A8 TAY |
Clobbers A, and Z&N; and writes in stack |
08 PHP A0 10 LDY #16 EA ... NOP × 2 88 DEY D0 F9 BNE *-5 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 10 LDX #16 EA ... NOP × 2 CA DEX D0 F9 BNE *-5 28 PLP |
Clobbers X; and writes in stack |
EA NOP 38 SEC A9 15 LDA #21 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 |
Clobbers A, Z&N, C, and V |
08 PHP 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 D0 FB BNE *-3 28 PLP |
Clobbers A; requires dummy interrupt handler; and writes in stack |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 D0 FB BNE *-3 68 PLA |
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack |
EA NOP 08 PHP 18 CLC A9 EB LDA #$EB ;hides 'SBC #$7A' 7A NOP ;first loop only D0 FA BNE *-4 28 PLP |
Clobbers A; requires support for unofficial opcodes; and writes in stack |
EA NOP 48 PHA 18 CLC A9 EB LDA #$EB ;hides 'SBC #$7A' 7A NOP ;first loop only D0 FA BNE *-4 68 PLA |
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
08 PHP 48 PHA A9 LDA #111 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
EA NOP 08 PHP 38 SEC A9 1C LDA #28 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
EA NOP 48 PHA 38 SEC A9 1C LDA #28 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
08 PHP 48 PHA 38 SEC A9 E9 LDA #$E9 ;hides 'SBC #$3A' 3A NOP ;first loop only D0 FA BNE *-4 68 PLA 28 PLP |
Requires support for unofficial opcodes; and writes in stack |
11 bytes | |
08 PHP 48 PHA 38 SEC A9 1B LDA #27 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
14 bytes | |
EA NOP A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 A9 0A LDA #$0A ;hides 'ASL A' 18 ... CLC × 2 90 00 BCC *+2 18 CLC D0 F8 BNE *-6 |
Clobbers A, Z&N, and C |
38 bytes | |
68 ... PLA × 38 |
Clobbers A, S, and Z&N |
153 cycles
5 bytes | |
---|---|
A0 EA LDY #234 ;hides 'NOP' C8 INY D0 FC BNE *-2 |
Clobbers Y, and Z&N |
A2 EA LDX #234 ;hides 'NOP' E8 INX D0 FC BNE *-2 |
Clobbers X, and Z&N |
A9 LDA #126 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$08' 08 PHP ;first loop only D0 FA BNE *-4 |
Clobbers A, S, Z&N, C, and V; and writes in stack |
7 bytes | |
08 PHP A0 1D LDY #29 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 1D LDX #29 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
38 SEC A9 1E LDA #30 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
08 PHP A9 LDA #119 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #119 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts14 D0 FA BNE *-4 |
Clobbers A, Z&N, and C; requires @rts14; and writes in stack |
9 bytes | |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 08 PHP \ × 2 28 PLP / D0 F9 BNE *-5 |
Clobbers A, Z&N, and C; and writes in stack |
48 PHA 08 PHP A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 D0 FB BNE *-3 28 PLP |
Clobbers A, and S; requires dummy interrupt handler; and writes in stack |
48 ... PHA × 2 A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 D0 FB BNE *-3 68 PLA |
Clobbers S, Z&N, and C; requires dummy interrupt handler; and writes in stack |
48 PHA 08 PHP 18 CLC A9 EB LDA #$EB ;hides 'SBC #$7A' 7A NOP ;first loop only D0 FA BNE *-4 28 PLP |
Clobbers A, and S; requires support for unofficial opcodes; and writes in stack |
48 ... PHA × 2 18 CLC A9 EB LDA #$EB ;hides 'SBC #$7A' 7A NOP ;first loop only D0 FA BNE *-4 68 PLA |
Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
08 PHP 48 PHA A9 LDA #112 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 D0 FB BNE *-3 28 PLP |
Clobbers A; requires dummy interrupt handler; and writes in stack |
C5 00 CMP $00 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 D0 FB BNE *-3 68 PLA |
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack |
48 PHA 08 PHP 38 SEC A9 1C LDA #28 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A, and S; and writes in stack |
48 ... PHA × 2 38 SEC A9 1C LDA #28 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers S, Z&N, C, and V; and writes in stack |
04 00 NOP $00 08 PHP 18 CLC A9 EB LDA #$EB ;hides 'SBC #$7A' 7A NOP ;first loop only D0 FA BNE *-4 28 PLP |
Clobbers A; requires support for unofficial opcodes; and writes in stack |
04 00 NOP $00 48 PHA 18 CLC A9 EB LDA #$EB ;hides 'SBC #$7A' 7A NOP ;first loop only D0 FA BNE *-4 68 PLA |
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
11 bytes | |
08 PHP A5 00 LDA $00 38 SEC A9 1C LDA #28 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
24 00 BIT $00 48 PHA 38 SEC A9 1C LDA #28 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
12 bytes | |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 6 18 CLC D0 F6 BNE *-8 |
Clobbers A, Z&N, and C |
08 PHP 48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 85 xx STA @zptemp 10 F8 BPL *-6 68 PLA 28 PLP |
Requires @zptemp; and writes in stack |
48 ... PHA × 2 A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 2 08 PHP 28 PLP 18 CLC D0 F8 BNE *-6 68 PLA |
Clobbers S, Z&N, and C; and writes in stack |
08 PHP 48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 04 00 NOP $00 10 F8 BPL *-6 68 PLA 28 PLP |
Requires support for unofficial opcodes; and writes in stack |
13 bytes | |
08 PHP 48 PHA 38 SEC A9 11 LDA #17 24 00 BIT $00 E9 01 SBC #1 D0 F7 BNE *-7 68 PLA 28 PLP |
Writes in stack |
39 bytes | |
EA NOP 68 ... PLA × 37 48 PHA |
Clobbers A, S, and Z&N |
154 cycles
5 bytes | |
---|---|
A9 LDA #127 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
48 PHA A2 1E LDX #30 CA DEX D0 FB BNE *-3 |
Clobbers X, S, and Z&N; and writes in stack |
48 PHA A0 1E LDY #30 88 DEY D0 FB BNE *-3 |
Clobbers Y, S, and Z&N; and writes in stack |
A2 11 LDX #17 68 PLA CA DEX D0 FA BNE *-4 |
Clobbers A, X, S, and Z&N |
A0 11 LDY #17 68 PLA 88 DEY D0 FA BNE *-4 |
Clobbers A, Y, S, and Z&N |
7 bytes | |
A6 00 LDX $00 A2 1E LDX #30 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A4 00 LDY $00 A0 1E LDY #30 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
08 PHP A9 LDA #120 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #120 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' 00 00... BRK 0 × 2 10 F9 BPL *-5 |
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack |
EA NOP 68 PLA 18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$9A' 9A TXS ;first loop only D0 FA BNE *-4 |
Clobbers A, S, Z&N, C, and V |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts14 D0 FA BNE *-4 |
Clobbers A, S, Z&N, and C; requires @rts14; and writes in stack |
9 bytes | |
A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts14 D0 FA BNE *-4 |
Clobbers A, Z&N, and C; requires @rts14; and writes in stack |
48 ... PHA × 2 08 PHP A0 1C LDY #28 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y, and S; and writes in stack |
48 ... PHA × 2 08 PHP A2 1C LDX #28 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X, and S; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP \ × 2 28 PLP / D0 F9 BNE *-5 |
Clobbers A, S, Z&N, and C; and writes in stack |
68 PLA 08 PHP A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 D0 FB BNE *-3 28 PLP |
Clobbers A, S, and Z&N; requires dummy interrupt handler; and writes in stack |
68 PLA 08 PHP 18 CLC A9 EB LDA #$EB ;hides 'SBC #$7A' 7A NOP ;first loop only D0 FA BNE *-4 28 PLP |
Clobbers A, S, and Z&N; requires support for unofficial opcodes; and writes in stack |
08 PHP 48 PHA A9 LDA #113 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only EA ... NOP × 2 10 F8 BPL *-6 28 PLP |
Clobbers A; and writes in stack |
EA NOP 08 PHP A2 10 LDX #16 EA ... NOP × 2 CA DEX D0 F9 BNE *-5 28 PLP |
Clobbers X; and writes in stack |
EA NOP 08 PHP A0 10 LDY #16 EA ... NOP × 2 88 DEY D0 F9 BNE *-5 28 PLP |
Clobbers Y; and writes in stack |
EA ... NOP × 2 38 SEC A9 15 LDA #21 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 |
Clobbers A, Z&N, C, and V |
48 PHA 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only EA ... NOP × 2 10 F8 BPL *-6 68 PLA |
Clobbers Z&N, C, V, and D; and writes in stack |
48 PHA 18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 D0 FB BNE *-3 68 PLA |
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack |
EA ... NOP × 2 48 PHA 18 CLC A9 EB LDA #$EB ;hides 'SBC #$7A' 7A NOP ;first loop only D0 FA BNE *-4 68 PLA |
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
11 bytes | |
48 PHA 8C TXA 48 PHA A2 1B LDX #27 CA DEX D0 FB BNE *-3 68 PLA AA TAX 68 PLA |
Clobbers Z&N; and writes in stack |
EA NOP 08 PHP 48 PHA 38 SEC A9 E9 LDA #$E9 ;hides 'SBC #$3A' 3A NOP ;first loop only D0 FA BNE *-4 68 PLA 28 PLP |
Requires support for unofficial opcodes; and writes in stack |
12 bytes | |
EA NOP 08 PHP 48 PHA 38 SEC A9 1B LDA #27 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
13 bytes | |
A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 6 18 CLC D0 F6 BNE *-8 |
Clobbers A, Z&N, and C |
39 bytes | |
EA NOP 68 ... PLA × 38 |
Clobbers A, S, and Z&N |
155 cycles
5 bytes | |
---|---|
A9 LDA #128 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A2 16 LDX #22 EA NOP CA DEX D0 FA BNE *-4 |
Clobbers X, and Z&N |
A0 16 LDY #22 EA NOP 88 DEY D0 FA BNE *-4 |
Clobbers Y, and Z&N |
A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA NOP D0 FB BNE *-3 |
Clobbers A, Z&N, C, and V |
7 bytes | |
08 PHP A9 LDA #121 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #121 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
08 PHP A2 15 LDX #21 EA NOP CA DEX D0 FA BNE *-4 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 15 LDY #21 EA NOP 88 DEY D0 FA BNE *-4 28 PLP |
Clobbers Y; and writes in stack |
68 PLA A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts14 D0 FA BNE *-4 |
Clobbers A, S, Z&N, and C; requires @rts14; and writes in stack |
9 bytes | |
08 PHP 38 SEC A9 1D LDA #29 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
48 PHA 38 SEC A9 1D LDA #29 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
08 PHP 48 PHA A9 LDA #114 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
E6 xx INC @zptemp 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 D0 FB BNE *-3 68 PLA |
Clobbers Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack |
EA NOP 48 ... PHA × 2 A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 D0 FB BNE *-3 68 PLA |
Clobbers S, Z&N, and C; requires dummy interrupt handler; and writes in stack |
11 bytes | |
EA NOP C5 00 CMP $00 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 D0 FB BNE *-3 68 PLA |
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack |
48 PHA 08 PHP 48 PHA 38 SEC A9 E9 LDA #$E9 ;hides 'SBC #$3A' 3A NOP ;first loop only D0 FA BNE *-4 68 PLA 28 PLP |
Clobbers S; requires support for unofficial opcodes; and writes in stack |
12 bytes | |
08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA NOP 08 PHP 28 PLP 30 F9 BMI *-5 68 PLA 28 PLP |
Writes in stack |
68 PLA A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 6 18 CLC D0 F6 BNE *-8 |
Clobbers A, S, Z&N, and C |
13 bytes | |
18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 6 18 CLC D0 F6 BNE *-8 |
Clobbers A, Z&N, and C |
39 bytes | |
68 ... PLA × 38 48 PHA |
Clobbers A, S, and Z&N |
156 cycles
5 bytes | |
---|---|
A0 1F LDY #31 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A2 1F LDX #31 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FC BNE *-2 |
Clobbers A, Z&N, C, and V |
7 bytes | |
08 PHP A9 LDA #122 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #122 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
00 00 BRK 0 A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 D0 FB BNE *-3 |
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack |
48 PHA 08 PHP A2 1D LDX #29 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X, and S; and writes in stack |
48 PHA 08 PHP A0 1D LDY #29 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y, and S; and writes in stack |
9 bytes | |
08 PHP A6 00 LDX $00 A2 1D LDX #29 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
08 PHP A4 00 LDY $00 A0 1D LDY #29 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
E6 xx INC @zptemp A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts14 D0 FA BNE *-4 |
Clobbers A, Z&N, and C; requires @zptemp, and @rts14; and writes in stack |
EA NOP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts14 D0 FA BNE *-4 |
Clobbers A, S, Z&N, and C; requires @rts14; and writes in stack |
08 PHP 48 PHA A9 LDA #115 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
EA NOP A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts14 D0 FA BNE *-4 |
Clobbers A, Z&N, and C; requires @rts14; and writes in stack |
E6 xx INC @zptemp A9 0A LDA #$0A ;hides 'ASL A' 08 PHP \ × 2 28 PLP / D0 F9 BNE *-5 |
Clobbers A, Z&N, and C; requires @zptemp; and writes in stack |
68 PLA 98 TYA 48 PHA A0 1C LDY #28 88 DEY D0 FB BNE *-3 68 PLA A8 TAY |
Clobbers A, S, and Z&N; and writes in stack |
48 ... PHA × 2 08 PHP A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 D0 FB BNE *-3 28 PLP |
Clobbers A, and S; requires dummy interrupt handler; and writes in stack |
48 ... PHA × 3 A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 D0 FB BNE *-3 68 PLA |
Clobbers S, Z&N, and C; requires dummy interrupt handler; and writes in stack |
48 ... PHA × 2 08 PHP 18 CLC A9 EB LDA #$EB ;hides 'SBC #$7A' 7A NOP ;first loop only D0 FA BNE *-4 28 PLP |
Clobbers A, and S; requires support for unofficial opcodes; and writes in stack |
48 ... PHA × 3 18 CLC A9 EB LDA #$EB ;hides 'SBC #$7A' 7A NOP ;first loop only D0 FA BNE *-4 68 PLA |
Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
11 bytes | |
EA NOP 08 PHP 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only EA ... NOP × 2 10 F8 BPL *-6 28 PLP |
Clobbers A; and writes in stack |
EA NOP 48 PHA 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only EA ... NOP × 2 10 F8 BPL *-6 68 PLA |
Clobbers Z&N, C, V, and D; and writes in stack |
48 PHA 18 ... CLC × 3 A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 D0 FB BNE *-3 68 PLA |
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack |
48 ... PHA × 3 38 SEC A9 1C LDA #28 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers S, Z&N, C, and V; and writes in stack |
EA ... NOP × 3 48 PHA 18 CLC A9 EB LDA #$EB ;hides 'SBC #$7A' 7A NOP ;first loop only D0 FA BNE *-4 68 PLA |
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
12 bytes | |
EA NOP 48 PHA 8C TXA 48 PHA A2 1B LDX #27 CA DEX D0 FB BNE *-3 68 PLA AA TAX 68 PLA |
Clobbers Z&N; and writes in stack |
EA ... NOP × 2 08 PHP 48 PHA 38 SEC A9 E9 LDA #$E9 ;hides 'SBC #$3A' 3A NOP ;first loop only D0 FA BNE *-4 68 PLA 28 PLP |
Requires support for unofficial opcodes; and writes in stack |
13 bytes | |
EA ... NOP × 2 08 PHP 48 PHA 38 SEC A9 1B LDA #27 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
E6 xx INC @zptemp A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 6 18 CLC D0 F6 BNE *-8 |
Clobbers A, Z&N, and C; and requires @zptemp |
14 bytes | |
EA NOP A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 6 18 CLC D0 F6 BNE *-8 |
Clobbers A, Z&N, and C |
39 bytes | |
68 ... PLA × 39 |
Clobbers A, S, and Z&N |
157 cycles
5 bytes | |
---|---|
A9 LDA #130 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
68 PLA A0 EA LDY #234 ;hides 'NOP' C8 INY D0 FC BNE *-2 |
Clobbers A, Y, S, and Z&N |
68 PLA A2 EA LDX #234 ;hides 'NOP' E8 INX D0 FC BNE *-2 |
Clobbers A, X, S, and Z&N |
7 bytes | |
EA NOP A0 16 LDY #22 EA NOP 88 DEY D0 FA BNE *-4 |
Clobbers Y, and Z&N |
EA NOP A2 16 LDX #22 EA NOP CA DEX D0 FA BNE *-4 |
Clobbers X, and Z&N |
18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA NOP D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
08 PHP A9 LDA #123 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #123 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
9 bytes | |
8C TXA 48 PHA A2 1D LDX #29 CA DEX D0 FB BNE *-3 68 PLA AA TAX |
Clobbers A, and Z&N; and writes in stack |
EA NOP 08 PHP A0 15 LDY #21 EA NOP 88 DEY D0 FA BNE *-4 28 PLP |
Clobbers Y; and writes in stack |
EA NOP 08 PHP A2 15 LDX #21 EA NOP CA DEX D0 FA BNE *-4 28 PLP |
Clobbers X; and writes in stack |
08 PHP 48 PHA A9 LDA #116 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP 38 SEC A9 15 LDA #21 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 28 PLP |
Clobbers A; and writes in stack |
48 PHA 38 SEC A9 15 LDA #21 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 D0 FB BNE *-3 68 PLA 28 PLP |
Requires dummy interrupt handler; and writes in stack |
08 PHP 48 PHA 18 CLC A9 EB LDA #$EB ;hides 'SBC #$7A' 7A NOP ;first loop only D0 FA BNE *-4 68 PLA 28 PLP |
Requires support for unofficial opcodes; and writes in stack |
11 bytes | |
08 PHP 48 PHA 38 SEC A9 1C LDA #28 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
13 bytes | |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 2 E6 xx INC @zptemp 36 00 ROL $00,X 76 00 ROR $00,X 90 F5 BCC *-9 |
Clobbers A, Z&N, and C; and requires @zptemp |
EA NOP 68 PLA A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 6 18 CLC D0 F6 BNE *-8 |
Clobbers A, S, Z&N, and C |
14 bytes | |
18 ... CLC × 3 A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 6 18 CLC D0 F6 BNE *-8 |
Clobbers A, Z&N, and C |
40 bytes | |
EA NOP 68 ... PLA × 38 48 PHA |
Clobbers A, S, and Z&N |
158 cycles
5 bytes | |
---|---|
A9 LDA #131 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
EA NOP A0 1F LDY #31 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
EA NOP A2 1F LDX #31 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
18 CLC A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FA BNE *-4 |
Clobbers A, Z&N, C, and V |
7 bytes | |
08 PHP A2 1E LDX #30 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 1E LDY #30 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A9 LDA #124 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #124 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
9 bytes | |
08 PHP A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts14 D0 FA BNE *-4 28 PLP |
Clobbers A; requires @rts14; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts14 D0 FA BNE *-4 68 PLA |
Clobbers Z&N, and C; requires @rts14; and writes in stack |
EA NOP 00 00 BRK 0 A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 D0 FB BNE *-3 |
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack |
08 PHP 48 PHA A9 LDA #117 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP A9 0A LDA #$0A ;hides 'ASL A' 08 PHP \ × 2 28 PLP / D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP \ × 2 28 PLP / D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, and C; and writes in stack |
12 bytes | |
48 ... PHA × 2 08 PHP 48 PHA 38 SEC A9 E9 LDA #$E9 ;hides 'SBC #$3A' 3A NOP ;first loop only D0 FA BNE *-4 68 PLA 28 PLP |
Clobbers S; requires support for unofficial opcodes; and writes in stack |
13 bytes | |
EA ... NOP × 2 48 PHA 8C TXA 48 PHA A2 1B LDX #27 CA DEX D0 FB BNE *-3 68 PLA AA TAX 68 PLA |
Clobbers Z&N; and writes in stack |
A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 4 18 CLC D0 F8 BNE *-6 |
Clobbers A, Z&N, and C |
48 ... PHA × 2 08 PHP 48 PHA 38 SEC A9 1B LDA #27 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Clobbers S; and writes in stack |
EA ... NOP × 3 08 PHP 48 PHA 38 SEC A9 E9 LDA #$E9 ;hides 'SBC #$3A' 3A NOP ;first loop only D0 FA BNE *-4 68 PLA 28 PLP |
Requires support for unofficial opcodes; and writes in stack |
14 bytes | |
EA ... NOP × 3 08 PHP 48 PHA 38 SEC A9 1B LDA #27 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
40 bytes | |
EA NOP 68 ... PLA × 39 |
Clobbers A, S, and Z&N |
159 cycles
5 bytes | |
---|---|
A9 LDA #132 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
48 PHA A2 1F LDX #31 CA DEX D0 FB BNE *-3 |
Clobbers X, S, and Z&N; and writes in stack |
48 PHA A0 1F LDY #31 88 DEY D0 FB BNE *-3 |
Clobbers Y, S, and Z&N; and writes in stack |
48 PHA A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FC BNE *-2 |
Clobbers A, S, Z&N, C, and V; and writes in stack |
7 bytes | |
A6 00 LDX $00 A2 1F LDX #31 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A4 00 LDY $00 A0 1F LDY #31 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts15 D0 FA BNE *-4 |
Clobbers A, Z&N, and C; requires @rts15; and writes in stack |
A5 00 LDA $00 A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FC BNE *-2 |
Clobbers A, Z&N, C, and V |
A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 18 CLC D0 FA BNE *-4 |
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack |
08 PHP A9 LDA #125 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #125 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' 48 PHA 20 xx xx JSR @rts12 D0 F9 BNE *-5 |
Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack |
9 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp 20 xx xx JSR @rts12 D0 F8 BNE *-6 |
Clobbers A, Z&N, and C; requires @zptemp, and @rts12; and writes in stack |
48 ... PHA × 2 08 PHP A2 1D LDX #29 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X, and S; and writes in stack |
48 ... PHA × 2 08 PHP A0 1D LDY #29 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y, and S; and writes in stack |
A9 0A LDA #$0A ;hides 'ASL A' 48 ... PHA × 2 08 PHP 28 PLP 18 CLC D0 F8 BNE *-6 |
Clobbers A, S, Z&N, and C; and writes in stack |
A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 20 xx xx JSR @rts12 D0 F8 BNE *-6 |
Clobbers A, Z&N, and C; requires @rts12, and support for unofficial opcodes; and writes in stack |
08 PHP 48 PHA A9 LDA #118 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
8C TXA 48 PHA A2 15 LDX #21 EA NOP CA DEX D0 FA BNE *-4 68 PLA AA TAX |
Clobbers A, and Z&N; and writes in stack |
EA ... NOP × 2 08 PHP A2 15 LDX #21 EA NOP CA DEX D0 FA BNE *-4 28 PLP |
Clobbers X; and writes in stack |
EA ... NOP × 2 08 PHP A0 15 LDY #21 EA NOP 88 DEY D0 FA BNE *-4 28 PLP |
Clobbers Y; and writes in stack |
11 bytes | |
48 PHA 98 TYA 48 PHA A0 1C LDY #28 88 DEY D0 FB BNE *-3 68 PLA A8 TAY 68 PLA |
Clobbers Z&N; and writes in stack |
EA NOP 08 PHP 38 SEC A9 15 LDA #21 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 28 PLP |
Clobbers A; and writes in stack |
08 PHP 48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 D0 FB BNE *-3 68 PLA 28 PLP |
Requires dummy interrupt handler; and writes in stack |
EA NOP 08 PHP 48 PHA 18 CLC A9 EB LDA #$EB ;hides 'SBC #$7A' 7A NOP ;first loop only D0 FA BNE *-4 68 PLA 28 PLP |
Requires support for unofficial opcodes; and writes in stack |
12 bytes | |
EA NOP 08 PHP 48 PHA 38 SEC A9 1C LDA #28 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
A9 0A LDA #$0A ;hides 'ASL A' 18 ... CLC × 5 90 00 BCC *+2 18 CLC D0 F5 BNE *-9 |
Clobbers A, Z&N, and C |
40 bytes | |
68 ... PLA × 39 48 PHA |
Clobbers A, S, and Z&N |
160 cycles
5 bytes | |
---|---|
A9 LDA #133 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
68 PLA A0 1F LDY #31 88 DEY D0 FB BNE *-3 |
Clobbers A, Y, S, and Z&N |
68 PLA A2 1F LDX #31 CA DEX D0 FB BNE *-3 |
Clobbers A, X, S, and Z&N |
68 PLA A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FC BNE *-2 |
Clobbers A, S, Z&N, C, and V |
7 bytes | |
08 PHP A0 EA LDY #234 ;hides 'NOP' C8 INY D0 FC BNE *-2 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 EA LDX #234 ;hides 'NOP' E8 INX D0 FC BNE *-2 28 PLP |
Clobbers X; and writes in stack |
EA ... NOP × 2 A0 1F LDY #31 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
EA ... NOP × 2 A2 1F LDX #31 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
EA NOP 18 CLC A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FA BNE *-4 |
Clobbers A, Z&N, C, and V |
08 PHP A9 LDA #126 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #126 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
9 bytes | |
08 PHP 38 SEC A9 1E LDA #30 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
48 PHA 38 SEC A9 1E LDA #30 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
08 PHP 48 PHA A9 LDA #119 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts14 D0 FA BNE *-4 68 PLA |
Clobbers Z&N, and C; requires @rts14; and writes in stack |
11 bytes | |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 08 PHP \ × 2 28 PLP / D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, and C; and writes in stack |
48 PHA 08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 D0 FB BNE *-3 68 PLA 28 PLP |
Clobbers S; requires dummy interrupt handler; and writes in stack |
48 PHA 08 PHP 48 PHA 18 CLC A9 EB LDA #$EB ;hides 'SBC #$7A' 7A NOP ;first loop only D0 FA BNE *-4 68 PLA 28 PLP |
Clobbers S; requires support for unofficial opcodes; and writes in stack |
12 bytes | |
08 PHP C5 00 CMP $00 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 D0 FB BNE *-3 68 PLA 28 PLP |
Requires dummy interrupt handler; and writes in stack |
48 PHA 08 PHP 48 PHA 38 SEC A9 1C LDA #28 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Clobbers S; and writes in stack |
04 00 NOP $00 08 PHP 48 PHA 18 CLC A9 EB LDA #$EB ;hides 'SBC #$7A' 7A NOP ;first loop only D0 FA BNE *-4 68 PLA 28 PLP |
Requires support for unofficial opcodes; and writes in stack |
13 bytes | |
08 PHP 24 00 BIT $00 48 PHA 38 SEC A9 1C LDA #28 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
14 bytes | |
EA NOP A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 4 18 CLC D0 F8 BNE *-6 |
Clobbers A, Z&N, and C |
40 bytes | |
68 ... PLA × 40 |
Clobbers A, S, and Z&N |
161 cycles
5 bytes | |
---|---|
A0 20 LDY #32 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A2 20 LDX #32 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FC BNE *-2 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
A9 LDA #134 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
7 bytes | |
E6 xx INC @zptemp A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FC BNE *-2 |
Clobbers A, Z&N, C, and V; and requires @zptemp |
EA NOP 48 PHA A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FC BNE *-2 |
Clobbers A, S, Z&N, C, and V; and writes in stack |
08 PHP A9 LDA #127 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #127 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts15 D0 FA BNE *-4 |
Clobbers A, Z&N, and C; requires @rts15; and writes in stack |
EA NOP A5 00 LDA $00 A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FC BNE *-2 |
Clobbers A, Z&N, C, and V |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 18 CLC D0 FA BNE *-4 |
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack |
48 PHA 08 PHP A2 1E LDX #30 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X, and S; and writes in stack |
48 PHA 08 PHP A0 1E LDY #30 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y, and S; and writes in stack |
9 bytes | |
08 PHP A6 00 LDX $00 A2 1E LDX #30 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
08 PHP A4 00 LDY $00 A0 1E LDY #30 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 48 PHA 20 xx xx JSR @rts12 D0 F9 BNE *-5 |
Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack |
08 PHP 48 PHA A9 LDA #120 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp 20 xx xx JSR @rts12 D0 F8 BNE *-6 |
Clobbers A, Z&N, and C; requires @zptemp, and @rts12; and writes in stack |
08 PHP A9 0A LDA #$0A ;hides 'ASL A' 00 00... BRK 0 × 2 10 F9 BPL *-5 28 PLP |
Clobbers A; requires dummy interrupt handler; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 00 00... BRK 0 × 2 10 F9 BPL *-5 68 PLA |
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack |
68 PLA 8C TXA 48 PHA A2 1D LDX #29 CA DEX D0 FB BNE *-3 68 PLA AA TAX |
Clobbers A, S, and Z&N; and writes in stack |
48 PHA 08 PHP A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts14 D0 FA BNE *-4 28 PLP |
Clobbers A, and S; requires @rts14; and writes in stack |
48 ... PHA × 2 A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts14 D0 FA BNE *-4 68 PLA |
Clobbers S, Z&N, and C; requires @rts14; and writes in stack |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 20 xx xx JSR @rts12 D0 F8 BNE *-6 |
Clobbers A, Z&N, and C; requires @rts12, and support for unofficial opcodes; and writes in stack |
11 bytes | |
EA NOP 8C TXA 48 PHA A2 15 LDX #21 EA NOP CA DEX D0 FA BNE *-4 68 PLA AA TAX |
Clobbers A, and Z&N; and writes in stack |
08 PHP A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts14 D0 FA BNE *-4 28 PLP |
Clobbers A; requires @rts14; and writes in stack |
C5 00 CMP $00 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts14 D0 FA BNE *-4 68 PLA |
Clobbers Z&N, and C; requires @rts14; and writes in stack |
48 ... PHA × 2 08 PHP 38 SEC A9 1D LDA #29 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A, and S; and writes in stack |
48 ... PHA × 2 A9 0A LDA #$0A ;hides 'ASL A' 08 PHP \ × 2 28 PLP / D0 F9 BNE *-5 68 PLA |
Clobbers S, Z&N, and C; and writes in stack |
12 bytes | |
08 PHP 48 PHA 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only EA ... NOP × 2 10 F8 BPL *-6 68 PLA 28 PLP |
Writes in stack |
13 bytes | |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 18 ... CLC × 5 90 00 BCC *+2 18 CLC D0 F5 BNE *-9 |
Clobbers A, Z&N, and C |
162 cycles
5 bytes | |
---|---|
A9 LDA #135 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A0 17 LDY #23 EA NOP 88 DEY D0 FA BNE *-4 |
Clobbers Y, and Z&N |
A2 17 LDX #23 EA NOP CA DEX D0 FA BNE *-4 |
Clobbers X, and Z&N |
A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA NOP B0 FB BCS *-3 |
Clobbers A, Z&N, C, and V |
7 bytes | |
08 PHP A9 LDA #128 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #128 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA NOP D0 FB BNE *-3 28 PLP |
Clobbers A; and writes in stack |
08 PHP A2 16 LDX #22 EA NOP CA DEX D0 FA BNE *-4 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 16 LDY #22 EA NOP 88 DEY D0 FA BNE *-4 28 PLP |
Clobbers Y; and writes in stack |
48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA NOP D0 FB BNE *-3 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
9 bytes | |
08 PHP 48 PHA A9 LDA #121 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
11 bytes | |
08 PHP 48 PHA 38 SEC A9 1D LDA #29 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
14 bytes | |
A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' 18 ... CLC × 5 90 00 BCC *+2 18 CLC D0 F5 BNE *-9 |
Clobbers A, Z&N, and C |
163 cycles
5 bytes | |
---|---|
A9 LDA #136 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
EA NOP A0 20 LDY #32 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
EA NOP A2 20 LDX #32 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
18 CLC A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FA BNE *-4 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
7 bytes | |
08 PHP A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FC BNE *-2 28 PLP |
Clobbers A; and writes in stack |
08 PHP A0 1F LDY #31 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 1F LDX #31 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
48 PHA A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FC BNE *-2 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
38 SEC A9 20 LDA #32 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
9 bytes | |
08 PHP 48 PHA A9 LDA #122 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
00 00 BRK 0 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 D0 FB BNE *-3 68 PLA |
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack |
11 bytes | |
E6 xx INC @zptemp 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts14 D0 FA BNE *-4 68 PLA |
Clobbers Z&N, and C; requires @zptemp, and @rts14; and writes in stack |
EA NOP 48 ... PHA × 2 A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts14 D0 FA BNE *-4 68 PLA |
Clobbers S, Z&N, and C; requires @rts14; and writes in stack |
12 bytes | |
EA NOP C5 00 CMP $00 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts14 D0 FA BNE *-4 68 PLA |
Clobbers Z&N, and C; requires @rts14; and writes in stack |
E6 xx INC @zptemp 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP \ × 2 28 PLP / D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, and C; requires @zptemp; and writes in stack |
EA NOP 48 ... PHA × 2 A9 0A LDA #$0A ;hides 'ASL A' 08 PHP \ × 2 28 PLP / D0 F9 BNE *-5 68 PLA |
Clobbers S, Z&N, and C; and writes in stack |
48 ... PHA × 2 08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 D0 FB BNE *-3 68 PLA 28 PLP |
Clobbers S; requires dummy interrupt handler; and writes in stack |
48 ... PHA × 2 08 PHP 48 PHA 18 CLC A9 EB LDA #$EB ;hides 'SBC #$7A' 7A NOP ;first loop only D0 FA BNE *-4 68 PLA 28 PLP |
Clobbers S; requires support for unofficial opcodes; and writes in stack |
13 bytes | |
EA NOP 08 PHP 48 PHA 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only EA ... NOP × 2 10 F8 BPL *-6 68 PLA 28 PLP |
Writes in stack |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X 76 00 ROR $00,X 90 F5 BCC *-9 |
Clobbers A, Z&N, and C |
164 cycles
5 bytes | |
---|---|
A9 LDA #137 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
48 PHA A2 20 LDX #32 CA DEX D0 FB BNE *-3 |
Clobbers X, S, and Z&N; and writes in stack |
48 PHA A0 20 LDY #32 88 DEY D0 FB BNE *-3 |
Clobbers Y, S, and Z&N; and writes in stack |
48 PHA A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FC BNE *-2 |
Clobbers A, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
7 bytes | |
A6 00 LDX $00 A2 20 LDX #32 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A4 00 LDY $00 A0 20 LDY #32 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA NOP B0 F9 BCS *-5 |
Clobbers A, Z&N, C, and V |
08 PHP A9 LDA #130 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #130 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
9 bytes | |
08 PHP 18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA NOP D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
08 PHP A0 0D LDY #13 08 PHP 28 PLP 88 DEY D0 F9 BNE *-5 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 0D LDX #13 08 PHP 28 PLP CA DEX D0 F9 BNE *-5 28 PLP |
Clobbers X; and writes in stack |
48 PHA 18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA NOP D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
08 PHP 48 PHA A9 LDA #123 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
11 bytes | |
48 PHA 8C TXA 48 PHA A2 1D LDX #29 CA DEX D0 FB BNE *-3 68 PLA AA TAX 68 PLA |
Clobbers Z&N; and writes in stack |
12 bytes | |
08 PHP 48 PHA 38 SEC A9 15 LDA #21 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 68 PLA 28 PLP |
Writes in stack |
14 bytes | |
E6 xx INC @zptemp A9 0A LDA #$0A ;hides 'ASL A' 18 ... CLC × 5 90 00 BCC *+2 18 CLC D0 F5 BNE *-9 |
Clobbers A, Z&N, and C; and requires @zptemp |
15 bytes | |
EA NOP A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' 18 ... CLC × 5 90 00 BCC *+2 18 CLC D0 F5 BNE *-9 |
Clobbers A, Z&N, and C |
165 cycles
5 bytes | |
---|---|
A9 LDA #138 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
68 PLA A2 20 LDX #32 CA DEX D0 FB BNE *-3 |
Clobbers A, X, S, and Z&N |
68 PLA A0 20 LDY #32 88 DEY D0 FB BNE *-3 |
Clobbers A, Y, S, and Z&N |
68 PLA A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FC BNE *-2 |
Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes |
7 bytes | |
EA ... NOP × 2 A2 20 LDX #32 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
EA ... NOP × 2 A0 20 LDY #32 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA NOP B0 FB BCS *-3 |
Clobbers A, S, Z&N, C, and V; and writes in stack |
EA NOP 18 CLC A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FA BNE *-4 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
08 PHP A9 LDA #131 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #131 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
08 PHP 18 CLC A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FA BNE *-4 28 PLP |
Clobbers A; and writes in stack |
EA NOP 08 PHP A2 1F LDX #31 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
EA NOP 08 PHP A0 1F LDY #31 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
48 PHA 18 CLC A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FA BNE *-4 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
EA NOP 38 SEC A9 20 LDA #32 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
9 bytes | |
08 PHP 48 PHA A9 LDA #124 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
11 bytes | |
08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts14 D0 FA BNE *-4 68 PLA 28 PLP |
Requires @rts14; and writes in stack |
EA NOP 00 00 BRK 0 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 D0 FB BNE *-3 68 PLA |
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack |
12 bytes | |
08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP \ × 2 28 PLP / D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
14 bytes | |
18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X 76 00 ROR $00,X 90 F5 BCC *-9 |
Clobbers A, Z&N, and C |
166 cycles
5 bytes | |
---|---|
A2 21 LDX #33 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A0 21 LDY #33 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A9 LDA #139 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
7 bytes | |
68 PLA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA NOP B0 FB BCS *-3 |
Clobbers A, S, Z&N, C, and V |
E6 xx INC @zptemp A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FC BNE *-2 |
Clobbers A, Z&N, C, and V; and requires @zptemp, and support for unofficial opcodes |
08 PHP A9 LDA #132 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #132 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
EA NOP 18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA NOP B0 F9 BCS *-5 |
Clobbers A, Z&N, C, and V |
48 PHA 08 PHP A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FC BNE *-2 28 PLP |
Clobbers A, and S; and writes in stack |
48 PHA 08 PHP A0 1F LDY #31 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y, and S; and writes in stack |
48 PHA 08 PHP A2 1F LDX #31 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X, and S; and writes in stack |
48 ... PHA × 2 A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FC BNE *-2 68 PLA |
Clobbers S, Z&N, C, and V; and writes in stack |
9 bytes | |
08 PHP A5 00 LDA $00 A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FC BNE *-2 28 PLP |
Clobbers A; and writes in stack |
08 PHP A4 00 LDY $00 A0 1F LDY #31 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A6 00 LDX $00 A2 1F LDX #31 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts15 D0 FA BNE *-4 68 PLA |
Clobbers Z&N, and C; requires @rts15; and writes in stack |
24 00 BIT $00 48 PHA A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FC BNE *-2 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 18 CLC D0 FA BNE *-4 68 PLA |
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack |
08 PHP 48 PHA A9 LDA #125 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
11 bytes | |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp 20 xx xx JSR @rts12 D0 F8 BNE *-6 68 PLA |
Clobbers Z&N, and C; requires @zptemp, and @rts12; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 20 xx xx JSR @rts12 D0 F8 BNE *-6 68 PLA |
Clobbers Z&N, and C; requires @rts12, and support for unofficial opcodes; and writes in stack |
12 bytes | |
48 PHA 8C TXA 48 PHA A2 15 LDX #21 EA NOP CA DEX D0 FA BNE *-4 68 PLA AA TAX 68 PLA |
Clobbers Z&N; and writes in stack |
13 bytes | |
EA NOP 08 PHP 48 PHA 38 SEC A9 15 LDA #21 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 68 PLA 28 PLP |
Writes in stack |
14 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 A9 0A LDA #$0A ;hides 'ASL A' 18 ... CLC × 3 90 00 BCC *+2 18 CLC D0 F7 BNE *-7 |
Clobbers A, Z&N, and C |
167 cycles
5 bytes | |
---|---|
A0 18 LDY #24 ;hides 'CLC' 88 DEY D0 FC BNE *-2 |
Clobbers Y, and Z&N |
A2 18 LDX #24 ;hides 'CLC' CA DEX D0 FC BNE *-2 |
Clobbers X, and Z&N |
A9 LDA #140 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
7 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' 48 PHA 00 00 BRK 0 D0 FA BNE *-4 |
Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack |
EA NOP 68 PLA A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FC BNE *-2 |
Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes |
08 PHP A9 LDA #133 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #133 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts14 18 CLC D0 F9 BNE *-5 |
Clobbers A, Z&N, and C; requires @rts14; and writes in stack |
E6 xx INC @zptemp A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA NOP B0 FB BCS *-3 |
Clobbers A, Z&N, C, and V; and requires @zptemp |
A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp 00 00 BRK 0 D0 F9 BNE *-5 |
Clobbers A, Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack |
68 PLA 08 PHP A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FC BNE *-2 28 PLP |
Clobbers A, S, and Z&N; and writes in stack |
68 PLA 38 SEC A9 20 LDA #32 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, S, Z&N, C, and V |
EA ... NOP × 2 18 CLC A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FA BNE *-4 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 00 00 BRK 0 D0 F9 BNE *-5 |
Clobbers A, Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack |
9 bytes | |
EA NOP 08 PHP 18 CLC A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FA BNE *-4 28 PLP |
Clobbers A; and writes in stack |
EA ... NOP × 2 08 PHP A0 1F LDY #31 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
EA ... NOP × 2 08 PHP A2 1F LDX #31 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
EA NOP 48 PHA 18 CLC A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FA BNE *-4 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
EA ... NOP × 2 38 SEC A9 20 LDA #32 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
08 PHP 48 PHA A9 LDA #126 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
11 bytes | |
08 PHP 48 PHA 38 SEC A9 1E LDA #30 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
12 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 7 18 CLC D0 F5 BNE *-9 |
Clobbers A, Z&N, and C |
168 cycles
5 bytes | |
---|---|
A9 LDA #141 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
EA NOP A2 21 LDX #33 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
EA NOP A0 21 LDY #33 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
7 bytes | |
08 PHP A2 20 LDX #32 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 20 LDY #32 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
38 SEC A9 21 LDA #33 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
08 PHP A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FC BNE *-2 28 PLP |
Clobbers A; requires support for unofficial opcodes; and writes in stack |
48 PHA A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FC BNE *-2 68 PLA |
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
08 PHP A9 LDA #134 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #134 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
9 bytes | |
08 PHP E6 xx INC @zptemp A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FC BNE *-2 28 PLP |
Clobbers A; requires @zptemp; and writes in stack |
E6 xx INC @zptemp 48 PHA A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FC BNE *-2 68 PLA |
Clobbers Z&N, C, and V; requires @zptemp; and writes in stack |
EA NOP 48 PHA 08 PHP A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FC BNE *-2 28 PLP |
Clobbers A, and S; and writes in stack |
EA NOP 48 ... PHA × 2 A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FC BNE *-2 68 PLA |
Clobbers S, Z&N, C, and V; and writes in stack |
08 PHP 48 PHA A9 LDA #127 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP EA NOP A5 00 LDA $00 A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FC BNE *-2 28 PLP |
Clobbers A; and writes in stack |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts15 D0 FA BNE *-4 68 PLA |
Clobbers Z&N, and C; requires @rts15; and writes in stack |
EA NOP 24 00 BIT $00 48 PHA A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FC BNE *-2 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 18 CLC D0 FA BNE *-4 68 PLA |
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack |
12 bytes | |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp 20 xx xx JSR @rts12 D0 F8 BNE *-6 68 PLA |
Clobbers Z&N, and C; requires @zptemp, and @rts12; and writes in stack |
08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 00 00... BRK 0 × 2 10 F9 BPL *-5 68 PLA 28 PLP |
Requires dummy interrupt handler; and writes in stack |
48 PHA 08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts14 D0 FA BNE *-4 68 PLA 28 PLP |
Clobbers S; requires @rts14; and writes in stack |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 20 xx xx JSR @rts12 D0 F8 BNE *-6 68 PLA |
Clobbers Z&N, and C; requires @rts12, and support for unofficial opcodes; and writes in stack |
13 bytes | |
EA NOP 48 PHA 8C TXA 48 PHA A2 15 LDX #21 EA NOP CA DEX D0 FA BNE *-4 68 PLA AA TAX 68 PLA |
Clobbers Z&N; and writes in stack |
08 PHP C5 00 CMP $00 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts14 D0 FA BNE *-4 68 PLA 28 PLP |
Requires @rts14; and writes in stack |
48 ... PHA × 2 08 PHP 48 PHA 38 SEC A9 1D LDA #29 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Clobbers S; and writes in stack |
14 bytes | |
EA ... NOP × 2 08 PHP 48 PHA 38 SEC A9 15 LDA #21 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 68 PLA 28 PLP |
Writes in stack |
15 bytes | |
EA NOP A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 A9 0A LDA #$0A ;hides 'ASL A' 18 ... CLC × 3 90 00 BCC *+2 18 CLC D0 F7 BNE *-7 |
Clobbers A, Z&N, and C |
169 cycles
5 bytes | |
---|---|
A9 LDA #142 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A2 18 LDX #24 EA NOP CA DEX D0 FA BNE *-4 |
Clobbers X, and Z&N |
A0 18 LDY #24 EA NOP 88 DEY D0 FA BNE *-4 |
Clobbers Y, and Z&N |
7 bytes | |
00 00 BRK 0 A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FC BNE *-2 |
Clobbers A, Z&N, C, and V; requires dummy interrupt handler; and writes in stack |
68 ... PLA × 2 A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FC BNE *-2 |
Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes |
08 PHP A9 LDA #135 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #135 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA NOP B0 FB BCS *-3 28 PLP |
Clobbers A; and writes in stack |
08 PHP A2 17 LDX #23 EA NOP CA DEX D0 FA BNE *-4 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 17 LDY #23 EA NOP 88 DEY D0 FA BNE *-4 28 PLP |
Clobbers Y; and writes in stack |
48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA NOP B0 FB BCS *-3 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
68 PLA 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA NOP B0 FB BCS *-3 |
Clobbers A, Z&N, C, and V |
9 bytes | |
08 PHP 48 PHA A9 LDA #128 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA NOP D0 FB BNE *-3 68 PLA 28 PLP |
Writes in stack |
13 bytes | |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 7 18 CLC D0 F5 BNE *-9 |
Clobbers A, Z&N, and C |
170 cycles
5 bytes | |
---|---|
A9 LDA #143 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A0 C8 LDY #200 ;hides 'INY' C8 ... INY × 2 D0 FB BNE *-3 |
Clobbers Y, and Z&N |
48 PHA A2 18 LDX #24 ;hides 'CLC' CA DEX D0 FC BNE *-2 |
Clobbers X, S, and Z&N; and writes in stack |
68 PLA A2 21 LDX #33 CA DEX D0 FB BNE *-3 |
Clobbers A, X, S, and Z&N |
A2 5A LDX #90 ;hides 'NOP' E8 ... INX × 2 10 FB BPL *-3 |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
7 bytes | |
EA ... NOP × 2 A2 21 LDX #33 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
08 PHP A9 LDA #136 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #136 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
EA NOP 08 PHP A2 20 LDX #32 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
EA NOP 08 PHP A0 20 LDY #32 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
EA NOP 38 SEC A9 21 LDA #33 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 48 PHA 00 00 BRK 0 D0 FA BNE *-4 |
Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack |
08 PHP 18 CLC A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FA BNE *-4 28 PLP |
Clobbers A; requires support for unofficial opcodes; and writes in stack |
48 PHA 18 CLC A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FA BNE *-4 68 PLA |
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
9 bytes | |
08 PHP 48 PHA A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FC BNE *-2 68 PLA 28 PLP |
Writes in stack |
14 bytes | |
A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 7 18 CLC D0 F5 BNE *-9 |
Clobbers A, Z&N, and C |
171 cycles
5 bytes | |
---|---|
A2 22 LDX #34 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A0 22 LDY #34 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A9 LDA #144 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
7 bytes | |
08 PHP A9 LDA #137 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #137 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
38 SEC A9 18 LDA #24 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 |
Clobbers A, Z&N, C, and V |
48 PHA 08 PHP A2 20 LDX #32 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X, and S; and writes in stack |
48 PHA 08 PHP A0 20 LDY #32 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y, and S; and writes in stack |
68 PLA A9 0A LDA #$0A ;hides 'ASL A' 48 PHA 00 00 BRK 0 D0 FA BNE *-4 |
Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack |
48 PHA 08 PHP A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FC BNE *-2 28 PLP |
Clobbers A, and S; requires support for unofficial opcodes; and writes in stack |
48 ... PHA × 2 A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FC BNE *-2 68 PLA |
Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
9 bytes | |
08 PHP 18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA NOP B0 F9 BCS *-5 28 PLP |
Clobbers A; and writes in stack |
08 PHP A6 00 LDX $00 A2 20 LDX #32 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
08 PHP A4 00 LDY $00 A0 20 LDY #32 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
48 PHA 18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA NOP B0 F9 BCS *-5 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
08 PHP 48 PHA A9 LDA #130 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
11 bytes | |
08 PHP 48 PHA 18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA NOP D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
13 bytes | |
68 PLA A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 7 18 CLC D0 F5 BNE *-9 |
Clobbers A, S, Z&N, and C |
14 bytes | |
18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 7 18 CLC D0 F5 BNE *-9 |
Clobbers A, Z&N, and C |
172 cycles
5 bytes | |
---|---|
A9 LDA #145 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A2 13 LDX #19 68 PLA CA DEX D0 FA BNE *-4 |
Clobbers A, X, S, and Z&N |
A0 13 LDY #19 68 PLA 88 DEY D0 FA BNE *-4 |
Clobbers A, Y, S, and Z&N |
7 bytes | |
A0 13 LDY #19 EA ... NOP × 2 88 DEY D0 F9 BNE *-5 |
Clobbers Y, and Z&N |
A2 13 LDX #19 EA ... NOP × 2 CA DEX D0 F9 BNE *-5 |
Clobbers X, and Z&N |
08 PHP A9 LDA #138 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #138 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
68 PLA 38 SEC A9 21 LDA #33 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, S, Z&N, C, and V |
68 PLA 08 PHP A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FC BNE *-2 28 PLP |
Clobbers A, S, and Z&N; requires support for unofficial opcodes; and writes in stack |
9 bytes | |
8C TXA 48 PHA A2 20 LDX #32 CA DEX D0 FB BNE *-3 68 PLA AA TAX |
Clobbers A, and Z&N; and writes in stack |
EA ... NOP × 2 08 PHP A2 20 LDX #32 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
EA ... NOP × 2 08 PHP A0 20 LDY #32 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
EA ... NOP × 2 38 SEC A9 21 LDA #33 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
48 PHA 08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA NOP B0 FB BCS *-3 28 PLP |
Clobbers A, and S; and writes in stack |
48 ... PHA × 2 A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA NOP B0 FB BCS *-3 68 PLA |
Clobbers S, Z&N, C, and V; and writes in stack |
EA NOP 08 PHP 18 CLC A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FA BNE *-4 28 PLP |
Clobbers A; requires support for unofficial opcodes; and writes in stack |
EA NOP 48 PHA 18 CLC A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FA BNE *-4 68 PLA |
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
08 PHP 48 PHA A9 LDA #131 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP 48 PHA 18 CLC A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FA BNE *-4 68 PLA 28 PLP |
Writes in stack |
14 bytes | |
E6 xx INC @zptemp A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 7 18 CLC D0 F5 BNE *-9 |
Clobbers A, Z&N, and C; and requires @zptemp |
15 bytes | |
EA NOP A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 7 18 CLC D0 F5 BNE *-9 |
Clobbers A, Z&N, and C |
173 cycles
5 bytes | |
---|---|
A9 LDA #146 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
EA NOP A0 22 LDY #34 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
EA NOP A2 22 LDX #34 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
7 bytes | |
08 PHP A2 21 LDX #33 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 21 LDY #33 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
38 SEC A9 22 LDA #34 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
08 PHP A9 LDA #139 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #139 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
9 bytes | |
68 PLA 08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA NOP B0 FB BCS *-3 28 PLP |
Clobbers A, S, and Z&N; and writes in stack |
08 PHP E6 xx INC @zptemp A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FC BNE *-2 28 PLP |
Clobbers A; requires @zptemp, and support for unofficial opcodes; and writes in stack |
E6 xx INC @zptemp 48 PHA A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FC BNE *-2 68 PLA |
Clobbers Z&N, C, and V; requires @zptemp, and support for unofficial opcodes; and writes in stack |
EA NOP 48 PHA 08 PHP A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FC BNE *-2 28 PLP |
Clobbers A, and S; requires support for unofficial opcodes; and writes in stack |
EA NOP 48 ... PHA × 2 A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FC BNE *-2 68 PLA |
Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
08 PHP 48 PHA A9 LDA #132 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
EA NOP 08 PHP 18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA NOP B0 F9 BCS *-5 28 PLP |
Clobbers A; and writes in stack |
EA NOP 48 PHA 18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA NOP B0 F9 BCS *-5 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
48 PHA 08 PHP 48 PHA A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FC BNE *-2 68 PLA 28 PLP |
Clobbers S; and writes in stack |
11 bytes | |
08 PHP 24 00 BIT $00 48 PHA A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FC BNE *-2 68 PLA 28 PLP |
Writes in stack |
14 bytes | |
EA NOP 68 PLA A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 7 18 CLC D0 F5 BNE *-9 |
Clobbers A, S, Z&N, and C |
15 bytes | |
18 ... CLC × 3 A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 7 18 CLC D0 F5 BNE *-9 |
Clobbers A, Z&N, and C |
174 cycles
5 bytes | |
---|---|
A2 E8 LDX #232 ;hides 'INX' EA NOP D0 FC BNE *-2 |
Clobbers X, and Z&N |
A0 98 LDY #152 ;hides 'TYA' 88 DEY 30 FC BMI *-2 |
Clobbers A, Y, and Z&N |
A9 LDA #147 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
48 PHA A0 22 LDY #34 88 DEY D0 FB BNE *-3 |
Clobbers Y, S, and Z&N; and writes in stack |
7 bytes | |
08 PHP A0 18 LDY #24 ;hides 'CLC' 88 DEY D0 FC BNE *-2 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 18 LDX #24 ;hides 'CLC' CA DEX D0 FC BNE *-2 28 PLP |
Clobbers X; and writes in stack |
A4 00 LDY $00 A0 22 LDY #34 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
00 00 BRK 0 A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FC BNE *-2 |
Clobbers A, Z&N, C, and V; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack |
08 PHP A9 LDA #140 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #140 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
9 bytes | |
38 SEC A9 13 LDA #19 EA ... NOP × 2 E9 01 SBC #1 D0 F7 BNE *-7 |
Clobbers A, Z&N, C, and V |
48 PHA 68 PLA A9 0A LDA #$0A ;hides 'ASL A' 48 PHA 00 00 BRK 0 D0 FA BNE *-4 |
Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack |
48 ... PHA × 2 08 PHP A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FC BNE *-2 28 PLP |
Clobbers A, and S; requires support for unofficial opcodes; and writes in stack |
48 ... PHA × 3 A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FC BNE *-2 68 PLA |
Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
08 PHP 48 PHA A9 LDA #133 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
EA NOP 8C TXA 48 PHA A2 20 LDX #32 CA DEX D0 FB BNE *-3 68 PLA AA TAX |
Clobbers A, and Z&N; and writes in stack |
08 PHP A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts14 18 CLC D0 F9 BNE *-5 28 PLP |
Clobbers A; requires @rts14; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts14 18 CLC D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, and C; requires @rts14; and writes in stack |
08 PHP E6 xx INC @zptemp A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA NOP B0 FB BCS *-3 28 PLP |
Clobbers A; requires @zptemp; and writes in stack |
E6 xx INC @zptemp 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA NOP B0 FB BCS *-3 68 PLA |
Clobbers Z&N, C, and V; requires @zptemp; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp 00 00 BRK 0 D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack |
EA NOP 48 PHA 08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA NOP B0 FB BCS *-3 28 PLP |
Clobbers A, and S; and writes in stack |
EA NOP 48 ... PHA × 2 A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA NOP B0 FB BCS *-3 68 PLA |
Clobbers S, Z&N, C, and V; and writes in stack |
EA ... NOP × 2 08 PHP 18 CLC A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FA BNE *-4 28 PLP |
Clobbers A; requires support for unofficial opcodes; and writes in stack |
EA ... NOP × 2 48 PHA 18 CLC A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FA BNE *-4 68 PLA |
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 00 00 BRK 0 D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack |
11 bytes | |
EA NOP 08 PHP 48 PHA 18 CLC A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FA BNE *-4 68 PLA 28 PLP |
Writes in stack |
14 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 5 18 CLC D0 F7 BNE *-7 |
Clobbers A, Z&N, and C |
175 cycles
5 bytes | |
---|---|
A9 LDA #148 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
68 PLA A0 22 LDY #34 88 DEY D0 FB BNE *-3 |
Clobbers A, Y, S, and Z&N |
68 PLA A2 22 LDX #34 CA DEX D0 FB BNE *-3 |
Clobbers A, X, S, and Z&N |
7 bytes | |
EA ... NOP × 2 A0 22 LDY #34 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
EA ... NOP × 2 A2 22 LDX #34 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
08 PHP A9 LDA #141 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #141 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
EA NOP 08 PHP A0 21 LDY #33 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
EA NOP 08 PHP A2 21 LDX #33 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts15 18 CLC D0 F9 BNE *-5 |
Clobbers A, Z&N, and C; requires @rts15; and writes in stack |
EA NOP 38 SEC A9 22 LDA #34 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
A9 0A LDA #$0A ;hides 'ASL A' EA NOP 00 00 BRK 0 18 CLC D0 F9 BNE *-5 |
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack |
A9 0A LDA #$0A ;hides 'ASL A' 48 PHA 20 xx xx JSR @rts14 D0 F9 BNE *-5 |
Clobbers A, S, Z&N, and C; requires @rts14; and writes in stack |
9 bytes | |
08 PHP 38 SEC A9 21 LDA #33 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
48 PHA 38 SEC A9 21 LDA #33 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
08 PHP 48 PHA A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FC BNE *-2 68 PLA 28 PLP |
Requires support for unofficial opcodes; and writes in stack |
08 PHP 48 PHA A9 LDA #134 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
11 bytes | |
08 PHP E6 xx INC @zptemp 48 PHA A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FC BNE *-2 68 PLA 28 PLP |
Requires @zptemp; and writes in stack |
EA NOP 48 PHA 08 PHP 48 PHA A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FC BNE *-2 68 PLA 28 PLP |
Clobbers S; and writes in stack |
12 bytes | |
08 PHP EA NOP 24 00 BIT $00 48 PHA A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FC BNE *-2 68 PLA 28 PLP |
Writes in stack |
13 bytes | |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / 90 F5 BCC *-9 |
Clobbers A, Z&N, and C |
176 cycles
5 bytes | |
---|---|
A2 23 LDX #35 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A0 23 LDY #35 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A9 LDA #149 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
7 bytes | |
08 PHP A9 LDA #142 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #142 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
08 PHP A2 18 LDX #24 EA NOP CA DEX D0 FA BNE *-4 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 18 LDY #24 EA NOP 88 DEY D0 FA BNE *-4 28 PLP |
Clobbers Y; and writes in stack |
48 PHA 38 SEC A9 22 LDA #34 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, S, Z&N, C, and V; and writes in stack |
20 xx xx JSR @rts15 A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FC BNE *-2 |
Clobbers A, Z&N, C, and V; requires @rts15, and support for unofficial opcodes; and writes in stack |
EA NOP 00 00 BRK 0 A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FC BNE *-2 |
Clobbers A, Z&N, C, and V; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack |
9 bytes | |
A5 00 LDA $00 38 SEC A9 22 LDA #34 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
00 00 BRK 0 08 PHP A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FC BNE *-2 28 PLP |
Clobbers A; requires dummy interrupt handler; and writes in stack |
00 00 BRK 0 48 PHA A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FC BNE *-2 68 PLA |
Clobbers Z&N, C, and V; requires dummy interrupt handler; and writes in stack |
68 ... PLA × 2 08 PHP A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FC BNE *-2 28 PLP |
Clobbers A, S, and Z&N; requires support for unofficial opcodes; and writes in stack |
08 PHP 48 PHA A9 LDA #135 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA NOP B0 FB BCS *-3 68 PLA 28 PLP |
Writes in stack |
15 bytes | |
EA NOP A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 5 18 CLC D0 F7 BNE *-7 |
Clobbers A, Z&N, and C |
177 cycles
5 bytes | |
---|---|
A9 LDA #150 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A2 16 LDX #22 48 PHA CA DEX D0 FA BNE *-4 |
Clobbers X, S, and Z&N; and writes in stack |
A0 16 LDY #22 48 PHA 88 DEY D0 FA BNE *-4 |
Clobbers Y, S, and Z&N; and writes in stack |
A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 48 PHA D0 FB BNE *-3 |
Clobbers A, S, Z&N, C, and V; and writes in stack |
7 bytes | |
A6 00 LDX $00 A2 E8 LDX #232 ;hides 'INX' EA NOP D0 FC BNE *-2 |
Clobbers X, and Z&N |
A0 16 LDY #22 A5 00 LDA $00 88 DEY D0 F9 BNE *-5 |
Clobbers A, Y, and Z&N |
A0 16 LDY #22 C5 00 CMP $00 88 DEY D0 F9 BNE *-5 |
Clobbers Y, Z&N, and C |
A0 16 LDY #22 24 00 BIT $00 88 DEY D0 F9 BNE *-5 |
Clobbers Y, Z&N, and V |
A0 16 LDY #22 85 xx STA @zptemp 88 DEY D0 F9 BNE *-5 |
Clobbers Y, and Z&N; and requires @zptemp |
A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 85 xx STA @zptemp D0 FA BNE *-4 |
Clobbers A, Z&N, C, and V; and requires @zptemp |
A0 16 LDY #22 04 00 NOP $00 88 DEY D0 F9 BNE *-5 |
Clobbers Y, and Z&N; and requires support for unofficial opcodes |
A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 04 00 NOP $00 D0 FA BNE *-4 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
08 PHP A9 LDA #143 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #143 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
08 PHP A0 C8 LDY #200 ;hides 'INY' C8 ... INY × 2 D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
A0 10 LDY #16 EA ... NOP × 3 88 DEY D0 F8 BNE *-6 |
Clobbers Y, and Z&N |
A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 4C xx xx JMP *+3 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V; and not relocatable code |
48 PHA 08 PHP A2 18 LDX #24 ;hides 'CLC' CA DEX D0 FC BNE *-2 28 PLP |
Clobbers X, and S; and writes in stack |
68 PLA 38 SEC A9 22 LDA #34 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, S, Z&N, C, and V |
08 PHP A2 5A LDX #90 ;hides 'NOP' E8 ... INX × 2 10 FB BPL *-3 28 PLP |
Clobbers X; requires support for unofficial opcodes; and writes in stack |
9 bytes | |
98 TYA 48 PHA A0 21 LDY #33 88 DEY D0 FB BNE *-3 68 PLA A8 TAY |
Clobbers A, and Z&N; and writes in stack |
EA ... NOP × 2 08 PHP A2 21 LDX #33 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
EA ... NOP × 2 38 SEC A9 22 LDA #34 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
08 PHP 48 PHA A9 LDA #136 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
EA NOP 08 PHP 38 SEC A9 21 LDA #33 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
EA NOP 48 PHA 38 SEC A9 21 LDA #33 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
08 PHP 48 PHA 18 CLC A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FA BNE *-4 68 PLA 28 PLP |
Requires support for unofficial opcodes; and writes in stack |
11 bytes | |
08 PHP 28 PLP 08 PHP 48 PHA A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FC BNE *-2 68 PLA 28 PLP |
Writes in stack |
14 bytes | |
18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / 90 F5 BCC *-9 |
Clobbers A, Z&N, and C |
178 cycles
5 bytes | |
---|---|
A9 LDA #151 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
EA NOP A2 23 LDX #35 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
EA NOP A0 23 LDY #35 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
7 bytes | |
08 PHP A0 22 LDY #34 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 22 LDX #34 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
38 SEC A9 23 LDA #35 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
08 PHP A9 LDA #144 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #144 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
9 bytes | |
98 TYA 48 PHA A0 18 LDY #24 ;hides 'CLC' 88 DEY D0 FC BNE *-2 68 PLA A8 TAY |
Clobbers A, and Z&N; and writes in stack |
08 PHP 48 PHA A9 LDA #137 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP 38 SEC A9 18 LDA #24 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 28 PLP |
Clobbers A; and writes in stack |
48 PHA 38 SEC A9 18 LDA #24 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
48 PHA 08 PHP 48 PHA A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FC BNE *-2 68 PLA 28 PLP |
Clobbers S; requires support for unofficial opcodes; and writes in stack |
11 bytes | |
08 PHP 48 PHA 18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA NOP B0 F9 BCS *-5 68 PLA 28 PLP |
Writes in stack |
15 bytes | |
A5 00 LDA $00 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / 90 F5 BCC *-9 |
Clobbers A, Z&N, and C |
179 cycles
5 bytes | |
---|---|
A9 LDA #152 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A0 15 LDY #21 ;hides 'ORA zp,X' 88 DEY ;first loop only 88 DEY D0 FB BNE *-3 |
Clobbers A, Y, and Z&N |
A2 15 LDX #21 ;hides 'ORA zp,X' CA DEX ;first loop only CA DEX D0 FB BNE *-3 |
Clobbers A, X, and Z&N |
A0 D8 LDY #216 ;hides 'CLD' C8 ... INY × 2 D0 FB BNE *-3 |
Clobbers Y, Z&N, and D |
A2 D8 LDX #216 ;hides 'CLD' E8 ... INX × 2 D0 FB BNE *-3 |
Clobbers X, Z&N, and D |
A0 88 LDY #136 ;hides 'DEY' 00 00 BRK 0 30 FB BMI *-3 |
Clobbers Y, and Z&N; requires dummy interrupt handler; and writes in stack |
48 PHA A0 23 LDY #35 88 DEY D0 FB BNE *-3 |
Clobbers Y, S, and Z&N; and writes in stack |
48 PHA A2 23 LDX #35 CA DEX D0 FB BNE *-3 |
Clobbers X, S, and Z&N; and writes in stack |
A0 14 LDY #20 ;hides 'NOP zp,X' EA NOP 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N; and requires support for unofficial opcodes |
A2 14 LDX #20 ;hides 'NOP zp,X' EA NOP CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
7 bytes | |
A4 00 LDY $00 A0 23 LDY #35 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A6 00 LDX $00 A2 23 LDX #35 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 48 PHA D0 F9 BNE *-5 |
Clobbers A, S, Z&N, C, and V; and writes in stack |
08 PHP A9 LDA #145 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #145 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 85 xx STA @zptemp D0 F8 BNE *-6 |
Clobbers A, Z&N, C, and V; and requires @zptemp |
18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 04 00 NOP $00 D0 F8 BNE *-6 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
9 bytes | |
08 PHP A2 13 LDX #19 EA ... NOP × 2 CA DEX D0 F9 BNE *-5 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 13 LDY #19 EA ... NOP × 2 88 DEY D0 F9 BNE *-5 28 PLP |
Clobbers Y; and writes in stack |
38 SEC A9 16 LDA #22 24 00 BIT $00 E9 01 SBC #1 D0 F7 BNE *-7 |
Clobbers A, Z&N, C, and V |
68 PLA A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts15 18 CLC D0 F9 BNE *-5 |
Clobbers A, S, Z&N, and C; requires @rts15; and writes in stack |
68 PLA A9 0A LDA #$0A ;hides 'ASL A' 48 PHA 20 xx xx JSR @rts14 D0 F9 BNE *-5 |
Clobbers A, S, Z&N, and C; requires @rts14; and writes in stack |
68 PLA A9 0A LDA #$0A ;hides 'ASL A' EA NOP 00 00 BRK 0 18 CLC D0 F9 BNE *-5 |
Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack |
08 PHP 48 PHA A9 LDA #138 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
EA NOP 98 TYA 48 PHA A0 21 LDY #33 88 DEY D0 FB BNE *-3 68 PLA A8 TAY |
Clobbers A, and Z&N; and writes in stack |
48 PHA 00 00 BRK 0 08 PHP A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FC BNE *-2 28 PLP |
Clobbers A, and S; requires dummy interrupt handler; and writes in stack |
48 PHA 00 00 BRK 0 48 PHA A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FC BNE *-2 68 PLA |
Clobbers S, Z&N, C, and V; requires dummy interrupt handler; and writes in stack |
11 bytes | |
48 PHA 8C TXA 48 PHA A2 20 LDX #32 CA DEX D0 FB BNE *-3 68 PLA AA TAX 68 PLA |
Clobbers Z&N; and writes in stack |
EA ... NOP × 2 08 PHP 38 SEC A9 21 LDA #33 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
48 PHA 08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA NOP B0 FB BCS *-3 68 PLA 28 PLP |
Clobbers S; and writes in stack |
EA NOP 08 PHP 48 PHA 18 CLC A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FA BNE *-4 68 PLA 28 PLP |
Requires support for unofficial opcodes; and writes in stack |
12 bytes | |
EA NOP 08 PHP 28 PLP 08 PHP 48 PHA A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FC BNE *-2 68 PLA 28 PLP |
Writes in stack |
14 bytes | |
68 PLA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / 90 F5 BCC *-9 |
Clobbers A, S, Z&N, and C |
15 bytes | |
18 ... CLC × 3 A9 0A LDA #$0A ;hides 'ASL A' 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / 90 F5 BCC *-9 |
Clobbers A, Z&N, and C |
180 cycles
5 bytes | |
---|---|
A9 LDA #153 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
68 PLA A0 23 LDY #35 88 DEY D0 FB BNE *-3 |
Clobbers A, Y, S, and Z&N |
68 PLA A2 23 LDX #35 CA DEX D0 FB BNE *-3 |
Clobbers A, X, S, and Z&N |
7 bytes | |
EA ... NOP × 2 A0 23 LDY #35 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
EA ... NOP × 2 A2 23 LDX #35 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 48 PHA D0 FB BNE *-3 |
Clobbers A, S, Z&N, C, and V; and writes in stack |
08 PHP A9 LDA #146 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #146 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
EA NOP 08 PHP A0 22 LDY #34 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
EA NOP 08 PHP A2 22 LDX #34 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
EA NOP 38 SEC A9 23 LDA #35 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
9 bytes | |
08 PHP 38 SEC A9 22 LDA #34 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
48 PHA 38 SEC A9 22 LDA #34 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
08 PHP 48 PHA A9 LDA #139 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
11 bytes | |
08 PHP E6 xx INC @zptemp 48 PHA A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FC BNE *-2 68 PLA 28 PLP |
Requires @zptemp, and support for unofficial opcodes; and writes in stack |
EA NOP 48 PHA 08 PHP 48 PHA A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FC BNE *-2 68 PLA 28 PLP |
Clobbers S; requires support for unofficial opcodes; and writes in stack |
12 bytes | |
EA NOP 08 PHP 48 PHA 18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA NOP B0 F9 BCS *-5 68 PLA 28 PLP |
Writes in stack |
15 bytes | |
E6 xx INC @zptemp 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / 90 F5 BCC *-9 |
Clobbers A, Z&N, and C; and requires @zptemp |
16 bytes | |
EA NOP A5 00 LDA $00 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / 90 F5 BCC *-9 |
Clobbers A, Z&N, and C |
181 cycles
5 bytes | |
---|---|
A2 24 LDX #36 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A0 24 LDY #36 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A9 LDA #154 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
7 bytes | |
08 PHP A2 E8 LDX #232 ;hides 'INX' EA NOP D0 FC BNE *-2 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 98 LDY #152 ;hides 'TYA' 88 DEY 30 FC BMI *-2 28 PLP |
Clobbers A, and Y; and writes in stack |
A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 00 00 BRK 0 30 FA BMI *-4 |
Clobbers A, Z&N, C, and V; requires dummy interrupt handler; and writes in stack |
68 PLA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 48 PHA D0 FB BNE *-3 |
Clobbers A, S, Z&N, C, and V; and writes in stack |
08 PHP A9 LDA #147 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #147 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
48 PHA 08 PHP A0 22 LDY #34 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y, and S; and writes in stack |
68 PLA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 85 xx STA @zptemp D0 FA BNE *-4 |
Clobbers A, S, Z&N, C, and V; and requires @zptemp |
38 SEC A9 14 LDA #20 ;hides 'NOP zp,X' EA NOP E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
9 bytes | |
08 PHP A4 00 LDY $00 A0 22 LDY #34 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
A5 00 LDA $00 38 SEC A9 23 LDA #35 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
00 00 BRK 0 08 PHP A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FC BNE *-2 28 PLP |
Clobbers A; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack |
00 00 BRK 0 48 PHA A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FC BNE *-2 68 PLA |
Clobbers Z&N, C, and V; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack |
08 PHP 48 PHA A9 LDA #140 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
98 TYA 48 PHA A0 C8 LDY #200 ;hides 'INY' C8 ... INY × 2 D0 FB BNE *-3 68 PLA A8 TAY |
Clobbers A, and Z&N; and writes in stack |
11 bytes | |
08 PHP 38 SEC A9 13 LDA #19 EA ... NOP × 2 E9 01 SBC #1 D0 F7 BNE *-7 28 PLP |
Clobbers A; and writes in stack |
48 PHA 38 SEC A9 13 LDA #19 EA ... NOP × 2 E9 01 SBC #1 D0 F7 BNE *-7 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
48 ... PHA × 2 08 PHP 48 PHA A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FC BNE *-2 68 PLA 28 PLP |
Clobbers S; requires support for unofficial opcodes; and writes in stack |
12 bytes | |
EA NOP 48 PHA 8C TXA 48 PHA A2 20 LDX #32 CA DEX D0 FB BNE *-3 68 PLA AA TAX 68 PLA |
Clobbers Z&N; and writes in stack |
08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts14 18 CLC D0 F9 BNE *-5 68 PLA 28 PLP |
Requires @rts14; and writes in stack |
08 PHP E6 xx INC @zptemp 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA NOP B0 FB BCS *-3 68 PLA 28 PLP |
Requires @zptemp; and writes in stack |
EA NOP 48 PHA 08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA NOP B0 FB BCS *-3 68 PLA 28 PLP |
Clobbers S; and writes in stack |
EA ... NOP × 2 08 PHP 48 PHA 18 CLC A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FA BNE *-4 68 PLA 28 PLP |
Requires support for unofficial opcodes; and writes in stack |
13 bytes | |
EA ... NOP × 2 08 PHP 28 PLP 08 PHP 48 PHA A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FC BNE *-2 68 PLA 28 PLP |
Writes in stack |
15 bytes | |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' E6 xx INC @zptemp 26 00 ROL $00 \ × 2 66 00 ROR $00 / 90 F3 BCC *-11 |
Clobbers A, Z&N, and C; and requires @zptemp |
EA NOP 68 PLA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / 90 F5 BCC *-9 |
Clobbers A, S, Z&N, and C |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 26 00 ROL $00 66 00 ROR $00 36 00 ROL $00,X 76 00 ROR $00,X 90 F3 BCC *-11 |
Clobbers A, Z&N, and C; and requires support for unofficial opcodes |
16 bytes | |
18 ... CLC × 4 A9 0A LDA #$0A ;hides 'ASL A' 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / 90 F5 BCC *-9 |
Clobbers A, Z&N, and C |
182 cycles
5 bytes | |
---|---|
A9 LDA #155 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
7 bytes | |
A2 EC LDX #236 ;hides 'CPX abs' E6 xx INC @zptemp E8 INX D0 FA BNE *-4 |
Clobbers X, Z&N, and C; and requires @zptemp |
A0 EC LDY #236 ;hides 'CPX abs' E6 xx INC @zptemp C8 INY D0 FA BNE *-4 |
Clobbers Y, Z&N, and C; and requires @zptemp |
48 ... PHA × 2 A2 23 LDX #35 CA DEX D0 FB BNE *-3 |
Clobbers X, S, and Z&N; and writes in stack |
48 ... PHA × 2 A0 23 LDY #35 88 DEY D0 FB BNE *-3 |
Clobbers Y, S, and Z&N; and writes in stack |
EA NOP 68 PLA A0 23 LDY #35 88 DEY D0 FB BNE *-3 |
Clobbers A, Y, S, and Z&N |
EA NOP 68 PLA A2 23 LDX #35 CA DEX D0 FB BNE *-3 |
Clobbers A, X, S, and Z&N |
08 PHP A9 LDA #148 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #148 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
EA ... NOP × 3 A0 23 LDY #35 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
EA ... NOP × 3 A2 23 LDX #35 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
68 PLA 38 SEC A9 23 LDA #35 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, S, Z&N, C, and V |
9 bytes | |
98 TYA 48 PHA A0 22 LDY #34 88 DEY D0 FB BNE *-3 68 PLA A8 TAY |
Clobbers A, and Z&N; and writes in stack |
EA ... NOP × 2 08 PHP A2 22 LDX #34 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
EA ... NOP × 2 08 PHP A0 22 LDY #34 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
EA ... NOP × 2 38 SEC A9 23 LDA #35 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
08 PHP 48 PHA A9 LDA #141 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
EA NOP 08 PHP 38 SEC A9 22 LDA #34 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts15 18 CLC D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, and C; requires @rts15; and writes in stack |
EA NOP 48 PHA 38 SEC A9 22 LDA #34 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA NOP 00 00 BRK 0 18 CLC D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack |
11 bytes | |
08 PHP 48 PHA 38 SEC A9 21 LDA #33 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
15 bytes | |
68 PLA 48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / 90 F5 BCC *-9 |
Clobbers A, Z&N, and C |
183 cycles
5 bytes | |
---|---|
A9 LDA #156 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A0 1A LDY #26 EA NOP 88 DEY D0 FA BNE *-4 |
Clobbers Y, and Z&N |
A2 1A LDX #26 EA NOP CA DEX D0 FA BNE *-4 |
Clobbers X, and Z&N |
38 SEC A9 EB LDA #$EB ;hides 'SBC #$DA' DA NOP ;first loop only D0 FA BNE *-4 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
7 bytes | |
08 PHP A2 23 LDX #35 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 23 LDY #35 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
38 SEC A9 24 LDA #36 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
08 PHP A9 LDA #149 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #149 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' 48 PHA 20 xx xx JSR @rts15 D0 F9 BNE *-5 |
Clobbers A, S, Z&N, and C; requires @rts15; and writes in stack |
A9 0A LDA #$0A ;hides 'ASL A' 48 PHA 00 00 BRK 0 18 CLC D0 F9 BNE *-5 |
Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack |
9 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' EA NOP 20 xx xx JSR @rts14 18 CLC D0 F8 BNE *-6 |
Clobbers A, Z&N, and C; requires @rts14; and writes in stack |
A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp 20 xx xx JSR @rts15 D0 F8 BNE *-6 |
Clobbers A, Z&N, and C; requires @zptemp, and @rts15; and writes in stack |
A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp 00 00 BRK 0 18 CLC D0 F8 BNE *-6 |
Clobbers A, Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack |
A9 0A LDA #$0A ;hides 'ASL A' 48 ... PHA × 2 20 xx xx JSR @rts12 D0 F8 BNE *-6 |
Clobbers A, S, Z&N, and C; requires @rts12; and writes in stack |
A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 20 xx xx JSR @rts15 D0 F8 BNE *-6 |
Clobbers A, Z&N, and C; requires @rts15, and support for unofficial opcodes; and writes in stack |
A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 00 00 BRK 0 18 CLC D0 F8 BNE *-6 |
Clobbers A, Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack |
08 PHP 48 PHA A9 LDA #142 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' EA NOP 08 PHP \ × 2 28 PLP / 18 CLC D0 F7 BNE *-7 |
Clobbers A, Z&N, and C; and writes in stack |
48 PHA 08 PHP 38 SEC A9 22 LDA #34 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A, and S; and writes in stack |
48 ... PHA × 2 38 SEC A9 22 LDA #34 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers S, Z&N, C, and V; and writes in stack |
20 xx xx JSR @rts15 08 PHP A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FC BNE *-2 28 PLP |
Clobbers A; requires @rts15, and support for unofficial opcodes; and writes in stack |
20 xx xx JSR @rts15 48 PHA A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FC BNE *-2 68 PLA |
Clobbers Z&N, C, and V; requires @rts15, and support for unofficial opcodes; and writes in stack |
EA NOP 00 00 BRK 0 08 PHP A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FC BNE *-2 28 PLP |
Clobbers A; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack |
EA NOP 00 00 BRK 0 48 PHA A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FC BNE *-2 68 PLA |
Clobbers Z&N, C, and V; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack |
11 bytes | |
08 PHP A5 00 LDA $00 38 SEC A9 22 LDA #34 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
24 00 BIT $00 48 PHA 38 SEC A9 22 LDA #34 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
00 00 BRK 0 08 PHP 48 PHA A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FC BNE *-2 68 PLA 28 PLP |
Requires dummy interrupt handler; and writes in stack |
12 bytes | |
08 PHP 28 PLP 08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA NOP B0 FB BCS *-3 68 PLA 28 PLP |
Writes in stack |
13 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 8 18 CLC D0 F4 BNE *-10 |
Clobbers A, Z&N, and C |
184 cycles
5 bytes | |
---|---|
A9 LDA #157 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
48 PHA A2 24 LDX #36 CA DEX D0 FB BNE *-3 |
Clobbers X, S, and Z&N; and writes in stack |
48 PHA A0 24 LDY #36 88 DEY D0 FB BNE *-3 |
Clobbers Y, S, and Z&N; and writes in stack |
7 bytes | |
A6 00 LDX $00 A2 24 LDX #36 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A4 00 LDY $00 A0 24 LDY #36 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
08 PHP A9 LDA #150 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #150 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
48 PHA 08 PHP A2 E8 LDX #232 ;hides 'INX' EA NOP D0 FC BNE *-2 28 PLP |
Clobbers X, and S; and writes in stack |
48 PHA 08 PHP A0 98 LDY #152 ;hides 'TYA' 88 DEY 30 FC BMI *-2 28 PLP |
Clobbers A, Y, and S; and writes in stack |
48 PHA 68 PLA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 48 PHA D0 FB BNE *-3 |
Clobbers A, S, Z&N, C, and V; and writes in stack |
9 bytes | |
08 PHP A0 16 LDY #22 C5 00 CMP $00 88 DEY D0 F9 BNE *-5 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 16 LDX #22 24 00 BIT $00 CA DEX D0 F9 BNE *-5 28 PLP |
Clobbers X; and writes in stack |
08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 85 xx STA @zptemp D0 FA BNE *-4 28 PLP |
Clobbers A; requires @zptemp; and writes in stack |
48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 85 xx STA @zptemp D0 FA BNE *-4 68 PLA |
Clobbers Z&N, C, and V; requires @zptemp; and writes in stack |
68 PLA 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 85 xx STA @zptemp D0 FA BNE *-4 |
Clobbers A, Z&N, C, and V; and requires @zptemp |
A5 00 LDA $00 A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 00 00 BRK 0 30 FA BMI *-4 |
Clobbers A, Z&N, C, and V; requires dummy interrupt handler; and writes in stack |
EA NOP 68 PLA 38 SEC A9 23 LDA #35 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, S, Z&N, C, and V |
08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 04 00 NOP $00 D0 FA BNE *-4 28 PLP |
Clobbers A; requires support for unofficial opcodes; and writes in stack |
48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 04 00 NOP $00 D0 FA BNE *-4 68 PLA |
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
68 PLA 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 04 00 NOP $00 D0 FA BNE *-4 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
08 PHP 48 PHA A9 LDA #143 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 4C xx xx JMP *+3 D0 F9 BNE *-5 28 PLP |
Clobbers A; writes in stack; and not relocatable code |
EA NOP 98 TYA 48 PHA A0 22 LDY #34 88 DEY D0 FB BNE *-3 68 PLA A8 TAY |
Clobbers A, and Z&N; and writes in stack |
48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 4C xx xx JMP *+3 D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, C, and V; writes in stack; and not relocatable code |
EA ... NOP × 3 38 SEC A9 23 LDA #35 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
11 bytes | |
48 PHA 98 TYA 48 PHA A0 21 LDY #33 88 DEY D0 FB BNE *-3 68 PLA A8 TAY 68 PLA |
Clobbers Z&N; and writes in stack |
EA ... NOP × 2 08 PHP 38 SEC A9 22 LDA #34 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
12 bytes | |
EA NOP 08 PHP 48 PHA 38 SEC A9 21 LDA #33 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
16 bytes | |
EA NOP 68 PLA 48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / 90 F5 BCC *-9 |
Clobbers A, Z&N, and C |
185 cycles
5 bytes | |
---|---|
A9 LDA #158 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A2 17 LDX #23 48 PHA CA DEX D0 FA BNE *-4 |
Clobbers X, S, and Z&N; and writes in stack |
A0 17 LDY #23 48 PHA 88 DEY D0 FA BNE *-4 |
Clobbers Y, S, and Z&N; and writes in stack |
68 PLA A0 24 LDY #36 88 DEY D0 FB BNE *-3 |
Clobbers A, Y, S, and Z&N |
68 PLA A2 24 LDX #36 CA DEX D0 FB BNE *-3 |
Clobbers A, X, S, and Z&N |
A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 48 PHA B0 FB BCS *-3 |
Clobbers A, S, Z&N, C, and V; and writes in stack |
7 bytes | |
EA NOP A0 1A LDY #26 EA NOP 88 DEY D0 FA BNE *-4 |
Clobbers Y, and Z&N |
EA NOP A2 1A LDX #26 EA NOP CA DEX D0 FA BNE *-4 |
Clobbers X, and Z&N |
A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 85 xx STA @zptemp B0 FA BCS *-4 |
Clobbers A, Z&N, C, and V; and requires @zptemp |
A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 04 00 NOP $00 B0 FA BCS *-4 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
08 PHP A9 LDA #151 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #151 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
EA NOP 08 PHP A0 23 LDY #35 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
EA NOP 08 PHP A2 23 LDX #35 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
38 SEC A9 1A LDA #26 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 |
Clobbers A, Z&N, C, and V |
9 bytes | |
08 PHP 38 SEC A9 23 LDA #35 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
48 PHA 38 SEC A9 23 LDA #35 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
08 PHP 48 PHA A9 LDA #144 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
11 bytes | |
48 PHA 98 TYA 48 PHA A0 18 LDY #24 ;hides 'CLC' 88 DEY D0 FC BNE *-2 68 PLA A8 TAY 68 PLA |
Clobbers Z&N; and writes in stack |
12 bytes | |
08 PHP 48 PHA 38 SEC A9 18 LDA #24 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 68 PLA 28 PLP |
Writes in stack |
14 bytes | |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 8 18 CLC D0 F4 BNE *-10 |
Clobbers A, Z&N, and C |
186 cycles
5 bytes | |
---|---|
A0 25 LDY #37 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
A2 25 LDX #37 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
6 bytes | |
EA NOP A9 LDA #157 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
7 bytes | |
48 PHA 38 SEC A9 EB LDA #$EB ;hides 'SBC #$DA' DA NOP ;first loop only D0 FA BNE *-4 |
Clobbers A, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
08 PHP A9 LDA #152 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #152 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
08 PHP A2 D8 LDX #216 ;hides 'CLD' E8 ... INX × 2 D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 D8 LDY #216 ;hides 'CLD' C8 ... INY × 2 D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
48 PHA 38 SEC A9 24 LDA #36 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, S, Z&N, C, and V; and writes in stack |
04 00 NOP $00 38 SEC A9 EB LDA #$EB ;hides 'SBC #$DA' DA NOP ;first loop only D0 FA BNE *-4 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
9 bytes | |
A5 00 LDA $00 38 SEC A9 24 LDA #36 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 48 PHA 20 xx xx JSR @rts15 D0 F9 BNE *-5 |
Clobbers A, S, Z&N, and C; requires @rts15; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 48 PHA 00 00 BRK 0 18 CLC D0 F9 BNE *-5 |
Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack |
08 PHP 48 PHA A9 LDA #145 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP 18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 85 xx STA @zptemp D0 F8 BNE *-6 28 PLP |
Clobbers A; requires @zptemp; and writes in stack |
48 PHA 18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 85 xx STA @zptemp D0 F8 BNE *-6 68 PLA |
Clobbers Z&N, C, and V; requires @zptemp; and writes in stack |
68 PLA 98 TYA 48 PHA A0 22 LDY #34 88 DEY D0 FB BNE *-3 68 PLA A8 TAY |
Clobbers A, S, and Z&N; and writes in stack |
08 PHP 18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 04 00 NOP $00 D0 F8 BNE *-6 28 PLP |
Clobbers A; requires support for unofficial opcodes; and writes in stack |
48 PHA 18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 04 00 NOP $00 D0 F8 BNE *-6 68 PLA |
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
11 bytes | |
08 PHP 38 SEC A9 16 LDA #22 24 00 BIT $00 E9 01 SBC #1 D0 F7 BNE *-7 28 PLP |
Clobbers A; and writes in stack |
48 PHA 38 SEC A9 16 LDA #22 24 00 BIT $00 E9 01 SBC #1 D0 F7 BNE *-7 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
12 bytes | |
EA NOP 48 PHA 98 TYA 48 PHA A0 21 LDY #33 88 DEY D0 FB BNE *-3 68 PLA A8 TAY 68 PLA |
Clobbers Z&N; and writes in stack |
48 PHA 00 00 BRK 0 08 PHP 48 PHA A9 69 LDA #$69 ;hides 'ADC #$38' 38 SEC ;first loop only D0 FC BNE *-2 68 PLA 28 PLP |
Clobbers S; requires dummy interrupt handler; and writes in stack |
13 bytes | |
EA ... NOP × 2 08 PHP 48 PHA 38 SEC A9 21 LDA #33 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
15 bytes | |
A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 8 18 CLC D0 F4 BNE *-10 |
Clobbers A, Z&N, and C |
187 cycles
6 bytes | |
---|---|
EA NOP A9 LDA #158 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
7 bytes | |
00 00 BRK 0 A2 E8 LDX #232 ;hides 'INX' EA NOP D0 FC BNE *-2 |
Clobbers X, and Z&N; requires dummy interrupt handler; and writes in stack |
00 00 BRK 0 A0 98 LDY #152 ;hides 'TYA' 88 DEY 30 FC BMI *-2 |
Clobbers A, Y, and Z&N; requires dummy interrupt handler; and writes in stack |
EA NOP A2 17 LDX #23 48 PHA CA DEX D0 FA BNE *-4 |
Clobbers X, S, and Z&N; and writes in stack |
EA NOP A0 17 LDY #23 48 PHA 88 DEY D0 FA BNE *-4 |
Clobbers Y, S, and Z&N; and writes in stack |
EA NOP 68 PLA A2 24 LDX #36 CA DEX D0 FB BNE *-3 |
Clobbers A, X, S, and Z&N |
EA NOP 68 PLA A0 24 LDY #36 88 DEY D0 FB BNE *-3 |
Clobbers A, Y, S, and Z&N |
18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 48 PHA B0 F9 BCS *-5 |
Clobbers A, S, Z&N, C, and V; and writes in stack |
68 PLA 38 SEC A9 EB LDA #$EB ;hides 'SBC #$DA' DA NOP ;first loop only D0 FA BNE *-4 |
Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes |
08 PHP A9 LDA #153 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #153 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
EA ... NOP × 2 A2 1A LDX #26 EA NOP CA DEX D0 FA BNE *-4 |
Clobbers X, and Z&N |
EA ... NOP × 2 A0 1A LDY #26 EA NOP 88 DEY D0 FA BNE *-4 |
Clobbers Y, and Z&N |
18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 85 xx STA @zptemp B0 F8 BCS *-6 |
Clobbers A, Z&N, C, and V; and requires @zptemp |
68 PLA 38 SEC A9 24 LDA #36 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, S, Z&N, C, and V |
18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 04 00 NOP $00 B0 F8 BCS *-6 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
9 bytes | |
98 TYA 48 PHA A0 23 LDY #35 88 DEY D0 FB BNE *-3 68 PLA A8 TAY |
Clobbers A, and Z&N; and writes in stack |
EA ... NOP × 2 08 PHP A0 23 LDY #35 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
EA ... NOP × 2 08 PHP A2 23 LDX #35 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
38 SEC A9 17 LDA #23 24 00 BIT $00 E9 01 SBC #1 D0 F7 BNE *-7 |
Clobbers A, Z&N, C, and V |
08 PHP 48 PHA A9 LDA #146 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
EA NOP 08 PHP 38 SEC A9 23 LDA #35 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
EA NOP 48 PHA 38 SEC A9 23 LDA #35 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
11 bytes | |
08 PHP 48 PHA 38 SEC A9 22 LDA #34 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
14 bytes | |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA NOP 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / 90 F4 BCC *-10 |
Clobbers A, Z&N, and C |
188 cycles
6 bytes | |
---|---|
EA NOP A0 25 LDY #37 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
EA NOP A2 25 LDX #37 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
68 PLA A9 LDA #157 20 xx xx JSR delay_a_25_clocks |
Clobbers A, S, Z&N, C, and V; and requires delay_a_25_clocks |
7 bytes | |
08 PHP A0 24 LDY #36 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 24 LDX #36 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
38 SEC A9 25 LDA #37 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
08 PHP A9 LDA #154 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #154 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
9 bytes | |
08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 00 00 BRK 0 30 FA BMI *-4 28 PLP |
Clobbers A; requires dummy interrupt handler; and writes in stack |
48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 00 00 BRK 0 30 FA BMI *-4 68 PLA |
Clobbers Z&N, C, and V; requires dummy interrupt handler; and writes in stack |
08 PHP 48 PHA A9 LDA #147 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
48 PHA 08 PHP 38 SEC A9 23 LDA #35 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A, and S; and writes in stack |
48 ... PHA × 2 38 SEC A9 23 LDA #35 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers S, Z&N, C, and V; and writes in stack |
08 PHP 38 SEC A9 14 LDA #20 ;hides 'NOP zp,X' EA NOP E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; requires support for unofficial opcodes; and writes in stack |
48 PHA 38 SEC A9 14 LDA #20 ;hides 'NOP zp,X' EA NOP E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
11 bytes | |
08 PHP A5 00 LDA $00 38 SEC A9 23 LDA #35 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
24 00 BIT $00 48 PHA 38 SEC A9 23 LDA #35 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
00 00 BRK 0 08 PHP 48 PHA A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FC BNE *-2 68 PLA 28 PLP |
Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack |
12 bytes | |
48 PHA 98 TYA 48 PHA A0 C8 LDY #200 ;hides 'INY' C8 ... INY × 2 D0 FB BNE *-3 68 PLA A8 TAY 68 PLA |
Clobbers Z&N; and writes in stack |
13 bytes | |
08 PHP 48 PHA 38 SEC A9 13 LDA #19 EA ... NOP × 2 E9 01 SBC #1 D0 F7 BNE *-7 68 PLA 28 PLP |
Writes in stack |
15 bytes | |
E6 xx INC @zptemp A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 8 18 CLC D0 F4 BNE *-10 |
Clobbers A, Z&N, and C; and requires @zptemp |
16 bytes | |
EA NOP A5 00 LDA $00 A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 8 18 CLC D0 F4 BNE *-10 |
Clobbers A, Z&N, and C |
189 cycles
6 bytes | |
---|---|
48 PHA A0 25 LDY #37 88 DEY D0 FB BNE *-3 |
Clobbers Y, S, and Z&N; and writes in stack |
48 PHA A2 25 LDX #37 CA DEX D0 FB BNE *-3 |
Clobbers X, S, and Z&N; and writes in stack |
68 PLA A9 LDA #158 20 xx xx JSR delay_a_25_clocks |
Clobbers A, S, Z&N, C, and V; and requires delay_a_25_clocks |
7 bytes | |
A6 00 LDX $00 A2 25 LDX #37 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A4 00 LDY $00 A0 25 LDY #37 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
68 PLA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 48 PHA B0 FB BCS *-3 |
Clobbers A, S, Z&N, C, and V; and writes in stack |
08 PHP A9 LDA #155 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #155 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
EA ... NOP × 2 A9 LDA #158 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
8 bytes | |
68 PLA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 85 xx STA @zptemp B0 FA BCS *-4 |
Clobbers A, S, Z&N, C, and V; and requires @zptemp |
68 PLA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 04 00 NOP $00 B0 FA BCS *-4 |
Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes |
9 bytes | |
08 PHP A0 EC LDY #236 ;hides 'CPX abs' E6 xx INC @zptemp C8 INY D0 FA BNE *-4 28 PLP |
Clobbers Y; requires @zptemp; and writes in stack |
08 PHP A2 EC LDX #236 ;hides 'CPX abs' E6 xx INC @zptemp E8 INX D0 FA BNE *-4 28 PLP |
Clobbers X; requires @zptemp; and writes in stack |
EA NOP 18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 85 xx STA @zptemp B0 F8 BCS *-6 |
Clobbers A, Z&N, C, and V; and requires @zptemp |
48 ... PHA × 2 08 PHP A0 23 LDY #35 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y, and S; and writes in stack |
48 ... PHA × 2 08 PHP A2 23 LDX #35 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X, and S; and writes in stack |
EA NOP 68 PLA 38 SEC A9 24 LDA #36 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, S, Z&N, C, and V |
EA NOP 18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 04 00 NOP $00 B0 F8 BCS *-6 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
08 PHP 48 PHA A9 LDA #148 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
EA NOP 98 TYA 48 PHA A0 23 LDY #35 88 DEY D0 FB BNE *-3 68 PLA A8 TAY |
Clobbers A, and Z&N; and writes in stack |
EA ... NOP × 3 08 PHP A2 23 LDX #35 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
EA ... NOP × 3 08 PHP A0 23 LDY #35 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
EA NOP 38 SEC A9 17 LDA #23 24 00 BIT $00 E9 01 SBC #1 D0 F7 BNE *-7 |
Clobbers A, Z&N, C, and V |
11 bytes | |
48 PHA 98 TYA 48 PHA A0 22 LDY #34 88 DEY D0 FB BNE *-3 68 PLA A8 TAY 68 PLA |
Clobbers Z&N; and writes in stack |
EA ... NOP × 2 08 PHP 38 SEC A9 23 LDA #35 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
12 bytes | |
EA NOP 08 PHP 48 PHA 38 SEC A9 22 LDA #34 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
15 bytes | |
18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / 90 F4 BCC *-10 |
Clobbers A, Z&N, and C |
190 cycles
6 bytes | |
---|---|
A2 1B LDX #27 EA NOP CA DEX D0 FA BNE *-4 |
Clobbers X, and Z&N |
A0 1B LDY #27 EA NOP 88 DEY D0 FA BNE *-4 |
Clobbers Y, and Z&N |
7 bytes | |
08 PHP A9 LDA #156 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #156 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
68 PLA 48 PHA A9 LDA #156 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
8 bytes | |
08 PHP A0 1A LDY #26 EA NOP 88 DEY D0 FA BNE *-4 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A2 1A LDX #26 EA NOP CA DEX D0 FA BNE *-4 28 PLP |
Clobbers X; and writes in stack |
EA NOP 38 SEC A9 25 LDA #37 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
08 PHP 38 SEC A9 EB LDA #$EB ;hides 'SBC #$DA' DA NOP ;first loop only D0 FA BNE *-4 28 PLP |
Clobbers A; requires support for unofficial opcodes; and writes in stack |
48 PHA 38 SEC A9 EB LDA #$EB ;hides 'SBC #$DA' DA NOP ;first loop only D0 FA BNE *-4 68 PLA |
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
9 bytes | |
08 PHP 38 SEC A9 24 LDA #36 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
48 PHA 38 SEC A9 24 LDA #36 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
08 PHP 48 PHA A9 LDA #149 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
11 bytes | |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA NOP 20 xx xx JSR @rts14 18 CLC D0 F8 BNE *-6 68 PLA |
Clobbers Z&N, and C; requires @rts14; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp 20 xx xx JSR @rts15 D0 F8 BNE *-6 68 PLA |
Clobbers Z&N, and C; requires @zptemp, and @rts15; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp 00 00 BRK 0 18 CLC D0 F8 BNE *-6 68 PLA |
Clobbers Z&N, and C; requires @zptemp, and dummy interrupt handler; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 20 xx xx JSR @rts15 D0 F8 BNE *-6 68 PLA |
Clobbers Z&N, and C; requires @rts15, and support for unofficial opcodes; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 04 00 NOP $00 00 00 BRK 0 18 CLC D0 F8 BNE *-6 68 PLA |
Clobbers Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack |
12 bytes | |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA NOP 08 PHP \ × 2 28 PLP / 18 CLC D0 F7 BNE *-7 68 PLA |
Clobbers Z&N, and C; and writes in stack |
48 PHA 08 PHP 48 PHA 38 SEC A9 22 LDA #34 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Clobbers S; and writes in stack |
20 xx xx JSR @rts15 08 PHP 48 PHA A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FC BNE *-2 68 PLA 28 PLP |
Requires @rts15, and support for unofficial opcodes; and writes in stack |
EA NOP 00 00 BRK 0 08 PHP 48 PHA A9 EB LDA #$EB ;hides 'SBC #$18' 18 CLC ;first loop only D0 FC BNE *-2 68 PLA 28 PLP |
Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack |
13 bytes | |
08 PHP 24 00 BIT $00 48 PHA 38 SEC A9 22 LDA #34 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
15 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 6 18 CLC D0 F6 BNE *-8 |
Clobbers A, Z&N, and C |
191 cycles
5 bytes | |
---|---|
A2 26 LDX #38 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A0 26 LDY #38 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
7 bytes | |
08 PHP A9 LDA #157 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #157 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
68 PLA 48 PHA A9 LDA #157 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
8 bytes | |
A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 20 xx xx JSR @rts14 30 F9 BMI *-5 |
Clobbers A, Z&N, C, and V; requires @rts14; and writes in stack |
48 PHA 08 PHP A0 24 LDY #36 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y, and S; and writes in stack |
48 PHA 08 PHP A2 24 LDX #36 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X, and S; and writes in stack |
48 PHA 38 SEC A9 25 LDA #37 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, S, Z&N, C, and V; and writes in stack |
A9 0A LDA #$0A ;hides 'ASL A' 48 ... PHA × 2 00 00 BRK 0 D0 F9 BNE *-5 |
Clobbers A, S, Z&N, and C; requires dummy interrupt handler; and writes in stack |
68 ... PLA × 2 38 SEC A9 EB LDA #$EB ;hides 'SBC #$DA' DA NOP ;first loop only D0 FA BNE *-4 |
Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes |
9 bytes | |
08 PHP A4 00 LDY $00 A0 24 LDY #36 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A6 00 LDX $00 A2 24 LDX #36 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 20 xx xx JSR @rts12 D0 F8 BNE *-6 |
Clobbers A, Z&N, and C; requires @rts12; and writes in stack |
A9 0A LDA #$0A ;hides 'ASL A' EA NOP 20 xx xx JSR @rts15 18 CLC D0 F8 BNE *-6 |
Clobbers A, Z&N, and C; requires @rts15; and writes in stack |
A5 00 LDA $00 38 SEC A9 25 LDA #37 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 2 00 00 BRK 0 18 CLC D0 F8 BNE *-6 |
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack |
A9 0A LDA #$0A ;hides 'ASL A' 48 PHA 20 xx xx JSR @rts14 18 CLC D0 F8 BNE *-6 |
Clobbers A, S, Z&N, and C; requires @rts14; and writes in stack |
08 PHP 48 PHA A9 LDA #150 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 36 00 ROL $00,X 76 00 ROR $00,X 28 PLP D0 F7 BNE *-7 |
Clobbers A, Z&N, and C; and writes in stack |
68 PLA 98 TYA 48 PHA A0 23 LDY #35 88 DEY D0 FB BNE *-3 68 PLA A8 TAY |
Clobbers A, S, and Z&N; and writes in stack |
48 PHA 08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 00 00 BRK 0 30 FA BMI *-4 28 PLP |
Clobbers A, and S; requires dummy interrupt handler; and writes in stack |
48 ... PHA × 2 A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 00 00 BRK 0 30 FA BMI *-4 68 PLA |
Clobbers S, Z&N, C, and V; requires dummy interrupt handler; and writes in stack |
11 bytes | |
EA ... NOP × 2 98 TYA 48 PHA A0 23 LDY #35 88 DEY D0 FB BNE *-3 68 PLA A8 TAY |
Clobbers A, and Z&N; and writes in stack |
08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 85 xx STA @zptemp D0 FA BNE *-4 68 PLA 28 PLP |
Requires @zptemp; and writes in stack |
08 PHP A5 00 LDA $00 A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 00 00 BRK 0 30 FA BMI *-4 28 PLP |
Clobbers A; requires dummy interrupt handler; and writes in stack |
24 00 BIT $00 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 00 00 BRK 0 30 FA BMI *-4 68 PLA |
Clobbers Z&N, C, and V; requires dummy interrupt handler; and writes in stack |
48 ... PHA × 2 08 PHP 38 SEC A9 23 LDA #35 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A, and S; and writes in stack |
48 ... PHA × 3 38 SEC A9 23 LDA #35 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA |
Clobbers S, Z&N, C, and V; and writes in stack |
08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 04 00 NOP $00 D0 FA BNE *-4 68 PLA 28 PLP |
Requires support for unofficial opcodes; and writes in stack |
12 bytes | |
08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 4C xx xx JMP *+3 D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack; and not relocatable code |
EA NOP 48 PHA 98 TYA 48 PHA A0 22 LDY #34 88 DEY D0 FB BNE *-3 68 PLA A8 TAY 68 PLA |
Clobbers Z&N; and writes in stack |
EA ... NOP × 3 08 PHP 38 SEC A9 23 LDA #35 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
13 bytes | |
EA ... NOP × 2 08 PHP 48 PHA 38 SEC A9 22 LDA #34 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
14 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' 18 ... CLC × 7 90 00 BCC *+2 18 CLC D0 F3 BNE *-11 |
Clobbers A, Z&N, and C |
192 cycles
7 bytes | |
---|---|
38 SEC A9 E9 LDA #$E9 ;hides 'SBC #$3A' 3A NOP ;first loop only EA NOP D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
08 PHP A9 LDA #158 20 xx xx JSR delay_a_25_clocks 28 PLP |
Clobbers A; requires delay_a_25_clocks; and writes in stack |
48 PHA A9 LDA #158 20 xx xx JSR delay_a_25_clocks 68 PLA |
Clobbers Z&N, C, and V; requires delay_a_25_clocks; and writes in stack |
8 bytes | |
38 SEC A9 1B LDA #27 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 |
Clobbers A, Z&N, C, and V |
A2 E0 LDX #224 ;hides 'CPX #imm' B4 48 LDY $48,X ;hides 'PHA' E8 ... INX × 2 D0 F9 BNE *-5 |
Clobbers X, Y, S, Z&N, C, and V; and writes in stack |
A2 E0 LDX #224 ;hides 'CPX #imm' 14 48 NOP $48,X ;hides 'PHA' E8 ... INX × 2 D0 F9 BNE *-5 |
Clobbers X, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
A0 E0 LDY #224 ;hides 'CPX #imm' 14 48 NOP $48,X ;hides 'PHA' C8 ... INY × 2 D0 F9 BNE *-5 |
Clobbers Y, S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
9 bytes | |
98 TYA 48 PHA A0 24 LDY #36 88 DEY D0 FB BNE *-3 68 PLA A8 TAY |
Clobbers A, and Z&N; and writes in stack |
08 PHP A2 17 LDX #23 C5 00 CMP $00 CA DEX D0 F9 BNE *-5 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 17 LDY #23 C5 00 CMP $00 88 DEY D0 F9 BNE *-5 28 PLP |
Clobbers Y; and writes in stack |
A0 E0 LDY #224 ;hides 'CPX #imm' 2C 24 EA BIT $EA24 ;hides 'BIT zp' C8 ... INY × 2 D0 F8 BNE *-6 |
Clobbers Y, Z&N, C, and V |
A2 E0 LDX #224 ;hides 'CPX #imm' 2C 24 EA BIT $EA24 ;hides 'BIT zp' E8 ... INX × 2 D0 F8 BNE *-6 |
Clobbers X, Z&N, C, and V |
08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 85 xx STA @zptemp B0 FA BCS *-4 28 PLP |
Clobbers A; requires @zptemp; and writes in stack |
48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 85 xx STA @zptemp B0 FA BCS *-4 68 PLA |
Clobbers Z&N, C, and V; requires @zptemp; and writes in stack |
A2 0D LDX #13 ;hides 'ORA abs' AD 00 68 LDA $6800 ;hides 'PLA' EA NOP CA DEX D0 F8 BNE *-6 |
Clobbers A, X, S, and Z&N |
A0 0D LDY #13 ;hides 'ORA abs' AD 00 68 LDA $6800 ;hides 'PLA' EA NOP 88 DEY D0 F8 BNE *-6 |
Clobbers A, Y, S, and Z&N |
08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 04 00 NOP $00 B0 FA BCS *-4 28 PLP |
Clobbers A; requires support for unofficial opcodes; and writes in stack |
A2 0C LDX #12 ;hides 'NOP abs' A5 00 LDA $0 68 PLA 48 PHA CA DEX D0 F8 BNE *-6 |
Clobbers A, X, and Z&N; and requires support for unofficial opcodes |
A0 0C LDY #12 ;hides 'NOP abs' A5 00 LDA $0 68 PLA 48 PHA 88 DEY D0 F8 BNE *-6 |
Clobbers A, Y, and Z&N; and requires support for unofficial opcodes |
48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 04 00 NOP $00 B0 FA BCS *-4 68 PLA |
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
08 PHP 48 PHA A9 LDA #151 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP 38 SEC A9 1A LDA #26 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 28 PLP |
Clobbers A; and writes in stack |
A0 01 LDY #1 A2 25 LDX #37 CA DEX D0 FB BNE *-3 88 DEY D0 F6 BNE *-8 |
Clobbers X, Y, and Z&N |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' A2 25 LDX #37 CA DEX D0 FB BNE *-3 B0 F8 BCS *-6 |
Clobbers A, X, Z&N, and C |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' A0 25 LDY #37 88 DEY D0 FB BNE *-3 B0 F8 BCS *-6 |
Clobbers A, Y, Z&N, and C |
48 PHA 38 SEC A9 1A LDA #26 EA NOP E9 01 SBC #1 D0 F8 BNE *-6 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
A0 0C LDY #12 ;hides 'NOP abs' 44 00 NOP $0 EA NOP E6 xx INC @zptemp 88 DEY D0 F7 BNE *-7 |
Clobbers Y, and Z&N; and requires @zptemp, and support for unofficial opcodes |
A2 0C LDX #12 ;hides 'NOP abs' 44 00 NOP $0 EA NOP E6 xx INC @zptemp CA DEX D0 F7 BNE *-7 |
Clobbers X, and Z&N; and requires @zptemp, and support for unofficial opcodes |
11 bytes | |
08 PHP 48 PHA 38 SEC A9 23 LDA #35 E9 01 SBC #1 D0 F9 BNE *-5 68 PLA 28 PLP |
Writes in stack |
A0 0C LDY #12 ;hides 'NOP abs' 44 00 NOP $0 EA ... NOP × 2 04 00 NOP $00 88 DEY D0 F6 BNE *-8 |
Clobbers Y, and Z&N; and requires support for unofficial opcodes |
A2 0C LDX #12 ;hides 'NOP abs' 44 00 NOP $0 EA ... NOP × 2 04 00 NOP $00 CA DEX D0 F6 BNE *-8 |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
12 bytes | |
A2 EC LDX #236 ;hides 'CPX abs' E6 xx INC @zptemp EA ... NOP × 4 E8 ... INX × 2 D0 F5 BNE *-9 |
Clobbers X, Z&N, and C; and requires @zptemp |
A0 EC LDY #236 ;hides 'CPX abs' E6 xx INC @zptemp EA ... NOP × 4 C8 ... INY × 2 D0 F5 BNE *-9 |
Clobbers Y, Z&N, and C; and requires @zptemp |
14 bytes | |
A2 05 LDX #5 ;hides 'ORA zp' E8 INX ;first loop only 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / CA DEX D0 F3 BNE *-11 |
Clobbers A, X, and Z&N |
A0 05 LDY #5 ;hides 'ORA zp' C8 INY ;first loop only 36 00 ROL $00,X \ × 2 76 00 ROR $00,X / 88 DEY D0 F3 BNE *-11 |
Clobbers A, Y, and Z&N |
24 bytes | |
18 ... CLC × 4 A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 15 18 CLC 10 ED BPL *-17 |
Clobbers A, Z&N, and C |
See also
- Delay code for functions that produce runtime-determined amount of delay
- Bisqwit's 6502 delay_n macro set for ca65: http://bisqwit.iki.fi/src/6502-inline_delay.7z