Fixed cycle delay
From NESdev Wiki
Jump to navigationJump to search
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. Code samples where an interrupt could cause data corruption are separately indicated.
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.
- "Unsafe for interrupts" means that even though the S register is not clobbered, data corruption will occur if an interrupt/NMI happens in the middle of the 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 | |
C5 C5 CMP $C5 |
Clobbers Z&N, and C |
24 24 BIT $24 |
Clobbers Z&N, and V |
A5 A5 LDA $A5 |
Clobbers A, and Z&N |
A6 A6 LDX $A6 |
Clobbers X, and Z&N |
A4 A4 LDY $A4 |
Clobbers Y, and Z&N |
85 xx STA @zptemp |
Requires @zptemp |
04 04 NOP $04 |
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 | |
18 CLC 90 00 BCC *+2 |
Clobbers C |
B8 CLV 50 00 BVC *+2 |
Clobbers V |
EA NOP A5 A5 LDA $A5 |
Clobbers A, and Z&N |
EA NOP A6 A6 LDX $A6 |
Clobbers X, and Z&N |
EA NOP A4 A4 LDY $A4 |
Clobbers Y, and Z&N |
EA NOP 85 xx STA @zptemp |
Requires @zptemp |
EA NOP 04 04 NOP $04 |
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 | |
---|---|
F6 F6 INC $F6,X |
Clobbers Z&N; and requires @zptemp, and writable $00-$FF |
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 |
FE 00 02 INC $0200,X |
Clobbers Z&N; and requires writable $200-$2FF |
FE 00 03 INC $0300,X |
Clobbers Z&N; and requires writable $300-$3FF |
FE 00 04 INC $0400,X |
Clobbers Z&N; and requires writable $400-$4FF |
FE 00 05 INC $0500,X |
Clobbers Z&N; and requires writable $500-$5FF |
FE 00 06 INC $0600,X |
Clobbers Z&N; and requires writable $600-$6FF |
FE 00 07 INC $0700,X |
Clobbers Z&N; and requires writable $700-$7FF |
4 bytes | |
18 ... CLC × 2 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 2 50 00 BVC *+2 |
Clobbers V |
A6 A6 LDX $A6 EA ... NOP × 2 |
Clobbers X, and Z&N |
A4 A4 LDY $A4 EA ... NOP × 2 |
Clobbers Y, and Z&N |
85 xx STA @zptemp EA ... NOP × 2 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 2 |
Requires support for unofficial opcodes |
5 bytes | |
4C xx xx JMP *+3 EA ... NOP × 2 |
Not relocatable code |
PHP-PLP
is very efficient for 7 cycles of delay, but it does modify stack contents. S register remains unchanged though.PLA-PHA
does not overwrite any bytes in stack. It just writes back the same byte. But it does clobber A and Z+N.- abs-indexed RMW instructions such as
INC abs,X
do 7 cycles, but it is difficult to formalize the rules under which one could write to such random addresses.
8 cycles
2 bytes | |
---|---|
68 ... PLA × 2 |
Clobbers A, S, and Z&N |
3 bytes | |
BA TSX 68 PLA 9A TXS |
Clobbers A, X, and Z&N; and unsafe for interrupts |
EA NOP F6 F6 INC $F6,X |
Clobbers Z&N; and requires @zptemp, and writable $00-$FF |
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 | |
A2 AE LDX #$AE ;hides 'LDX $FDD0' D0 FD BNE *-1 |
Clobbers X, and Z&N |
A0 AC LDY #$AC ;hides 'LDY $FDD0' D0 FD BNE *-1 |
Clobbers Y, and Z&N |
EA ... NOP × 2 E6 xx INC @zptemp |
Clobbers Z&N; and requires @zptemp |
EA NOP FE 00 02 INC $0200,X |
Clobbers Z&N; and requires writable $200-$2FF |
EA NOP FE 00 03 INC $0300,X |
Clobbers Z&N; and requires writable $300-$3FF |
EA NOP FE 00 04 INC $0400,X |
Clobbers Z&N; and requires writable $400-$4FF |
EA NOP FE 00 05 INC $0500,X |
Clobbers Z&N; and requires writable $500-$5FF |
EA NOP FE 00 06 INC $0600,X |
Clobbers Z&N; and requires writable $600-$6FF |
EA NOP FE 00 07 INC $0700,X |
Clobbers Z&N; and requires writable $700-$7FF |
5 bytes | |
18 ... CLC × 3 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 3 50 00 BVC *+2 |
Clobbers V |
85 xx STA @zptemp EA ... NOP × 3 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 3 |
Requires support for unofficial opcodes |
6 bytes | |
4C xx xx JMP *+3 EA ... NOP × 3 |
Not relocatable code |
- Jumping into the middle of another instruction is a very efficient way of reducing code size. Note that all code samples using branches on this page require that no page wrap occurs.
10 cycles
3 bytes | |
---|---|
48 PHA 08 PHP 28 PLP |
Clobbers S; and writes in stack |
EA NOP 68 ... PLA × 2 |
Clobbers A, S, and Z&N |
4 bytes | |
26 26 ROL $26 66 26 ROR $26 |
Clobbers Z&N |
08 PHP 24 24 BIT $24 28 PLP |
Writes in stack |
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 |
E6 xx INC @zptemp F6 F6 INC $F6,X |
Clobbers Z&N; and requires @zptemp, and writable $00-$FF |
5 bytes | |
A2 02 LDX #2 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
A0 02 LDY #2 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
E6 xx INC @zptemp EA ... NOP × 3 |
Clobbers Z&N; and requires @zptemp |
EA ... NOP × 2 FE 00 02 INC $0200,X |
Clobbers Z&N; and requires writable $200-$2FF |
EA ... NOP × 2 FE 00 03 INC $0300,X |
Clobbers Z&N; and requires writable $300-$3FF |
EA ... NOP × 2 FE 00 04 INC $0400,X |
Clobbers Z&N; and requires writable $400-$4FF |
EA ... NOP × 2 FE 00 05 INC $0500,X |
Clobbers Z&N; and requires writable $500-$5FF |
EA ... NOP × 2 FE 00 06 INC $0600,X |
Clobbers Z&N; and requires writable $600-$6FF |
EA ... NOP × 2 FE 00 07 INC $0700,X |
Clobbers Z&N; and requires writable $700-$7FF |
6 bytes | |
18 ... CLC × 4 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 4 50 00 BVC *+2 |
Clobbers V |
85 xx STA @zptemp EA ... NOP × 4 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 4 |
Requires support for unofficial opcodes |
7 bytes | |
4C xx xx JMP *+3 EA ... NOP × 4 |
Not relocatable code |
12 cycles
3 bytes | |
---|---|
20 xx xx JSR @rts12 |
Requires @rts12; and writes in stack |
68 ... PLA × 3 |
Clobbers A, S, and Z&N |
4 bytes | |
36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N |
08 PHP E6 xx INC @zptemp 28 PLP |
Requires @zptemp; and writes in stack |
48 ... PHA × 4 |
Clobbers S; and writes in stack |
5 bytes | |
08 PHP 18 CLC 90 00 BCC *+2 28 PLP |
Writes in stack |
6 bytes | |
EA ... NOP × 6 |
No requirements |
JSR-RTS
causes 12 cycles of delay. But it does write a function return address in the stack, which may be unwanted in some applications. S is not modified.- Again,
ROL-ROR
does not have side effects (as long as an interrupt does not happen in the middle), except for Z+N.
13 cycles
2 bytes | |
---|---|
00 00 BRK 0 |
Requires dummy interrupt handler; and writes in stack |
4 bytes | |
08 PHP F6 F6 INC $F6,X 28 PLP |
Requires @zptemp, and writable $00-$FF; and writes in stack |
F6 F6 INC $F6,X 68 PLA 48 PHA |
Clobbers A, and Z&N; and requires @zptemp, and writable $00-$FF |
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 |
EA NOP E6 xx INC @zptemp F6 F6 INC $F6,X |
Clobbers Z&N; and requires @zptemp, and writable $00-$FF |
6 bytes | |
C5 C5 CMP $C5 26 26 ROL $26 66 26 ROR $26 |
Clobbers Z&N, and C |
24 24 BIT $24 26 26 ROL $26 66 26 ROR $26 |
Clobbers Z&N, and V |
A6 A6 LDX $A6 26 26 ROL $26 66 26 ROR $26 |
Clobbers X, and Z&N |
A4 A4 LDY $A4 26 26 ROL $26 66 26 ROR $26 |
Clobbers Y, and Z&N |
85 xx STA @zptemp 26 26 ROL $26 66 26 ROR $26 |
Clobbers Z&N; and requires @zptemp |
EA ... NOP × 3 FE 00 02 INC $0200,X |
Clobbers Z&N; and requires writable $200-$2FF |
EA ... NOP × 3 FE 00 03 INC $0300,X |
Clobbers Z&N; and requires writable $300-$3FF |
EA ... NOP × 3 FE 00 04 INC $0400,X |
Clobbers Z&N; and requires writable $400-$4FF |
EA ... NOP × 3 FE 00 05 INC $0500,X |
Clobbers Z&N; and requires writable $500-$5FF |
EA ... NOP × 3 FE 00 06 INC $0600,X |
Clobbers Z&N; and requires writable $600-$6FF |
EA ... NOP × 3 FE 00 07 INC $0700,X |
Clobbers Z&N; and requires writable $700-$7FF |
04 04 NOP $04 26 26 ROL $26 66 26 ROR $26 |
Clobbers Z&N; and requires support for unofficial opcodes |
7 bytes | |
18 ... CLC × 5 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 5 50 00 BVC *+2 |
Clobbers V |
4C xx xx JMP *+3 26 26 ROL $26 66 26 ROR $26 |
Clobbers Z&N; and not relocatable code |
85 xx STA @zptemp EA ... NOP × 5 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 5 |
Requires support for unofficial opcodes |
8 bytes | |
4C xx xx JMP *+3 EA ... NOP × 5 |
Not relocatable code |
14 cycles
3 bytes | |
---|---|
20 xx xx JSR @rts14 |
Requires @rts12, and @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 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N |
7 bytes | |
EA ... NOP × 7 |
No requirements |
15 cycles
3 bytes | |
---|---|
20 xx xx JSR @rts15 |
Requires @rts12, and @rts15; and writes in stack |
EA NOP 00 00 BRK 0 |
Requires dummy interrupt handler; and writes in stack |
4 bytes | |
68 PLA 48 PHA 68 ... PLA × 2 |
Clobbers A, S, and Z&N |
48 PHA 20 xx xx JSR @rts12 |
Clobbers S; requires @rts12; and writes in stack |
5 bytes | |
08 PHP BA TSX 28 PLP 9A TXS 28 PLP |
Clobbers X; and writes in stack |
68 PLA 48 PHA BA TSX 68 PLA 9A TXS |
Clobbers A, X, and Z&N; and unsafe for interrupts |
EA NOP 08 PHP F6 F6 INC $F6,X 28 PLP |
Requires @zptemp, and writable $00-$FF; and writes in stack |
EA NOP F6 F6 INC $F6,X 68 PLA 48 PHA |
Clobbers A, and Z&N; and requires @zptemp, and writable $00-$FF |
C5 C5 CMP $C5 20 xx xx JSR @rts12 |
Clobbers Z&N, and C; requires @rts12; and writes in stack |
24 24 BIT $24 20 xx xx JSR @rts12 |
Clobbers Z&N, and V; requires @rts12; and writes in stack |
A5 A5 LDA $A5 20 xx xx JSR @rts12 |
Clobbers A, and Z&N; requires @rts12; and writes in stack |
A4 A4 LDY $A4 20 xx xx JSR @rts12 |
Clobbers Y, and Z&N; requires @rts12; and writes in stack |
85 xx STA @zptemp 20 xx xx JSR @rts12 |
Requires @zptemp, and @rts12; and writes in stack |
04 04 NOP $04 20 xx xx JSR @rts12 |
Requires @rts12, and support for unofficial opcodes; and writes in stack |
48 ... PHA × 5 |
Clobbers S; and writes in stack |
6 bytes | |
C5 C5 CMP $C5 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N, and C |
24 24 BIT $24 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N, and V |
08 PHP 28 PLP EA ... NOP × 4 |
Writes in stack |
A5 A5 LDA $A5 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers A, and Z&N |
A6 A6 LDX $A6 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers X, and Z&N |
A4 A4 LDY $A4 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Y, and Z&N |
E6 xx INC @zptemp 26 26 ROL $26 66 26 ROR $26 |
Clobbers Z&N; and requires @zptemp |
04 04 NOP $04 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N; and requires support for unofficial opcodes |
7 bytes | |
4C xx xx JMP *+3 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N; and not relocatable code |
FE 00 02 INC $0200,X EA ... NOP × 4 |
Clobbers Z&N; and requires writable $200-$2FF |
FE 00 03 INC $0300,X EA ... NOP × 4 |
Clobbers Z&N; and requires writable $300-$3FF |
FE 00 04 INC $0400,X EA ... NOP × 4 |
Clobbers Z&N; and requires writable $400-$4FF |
FE 00 05 INC $0500,X EA ... NOP × 4 |
Clobbers Z&N; and requires writable $500-$5FF |
FE 00 06 INC $0600,X EA ... NOP × 4 |
Clobbers Z&N; and requires writable $600-$6FF |
FE 00 07 INC $0700,X EA ... NOP × 4 |
Clobbers Z&N; and requires writable $700-$7FF |
8 bytes | |
18 ... CLC × 6 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 6 50 00 BVC *+2 |
Clobbers V |
85 xx STA @zptemp EA ... NOP × 6 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 6 |
Requires support for unofficial opcodes |
9 bytes | |
4C xx xx JMP *+3 EA ... NOP × 6 |
Not relocatable code |
16 cycles
3 bytes | |
---|---|
48 PHA 00 00 BRK 0 |
Clobbers S; requires dummy interrupt handler; and writes in stack |
4 bytes | |
EA NOP 20 xx xx JSR @rts14 |
Requires @rts12, and @rts14; and writes in stack |
C5 C5 CMP $C5 00 00 BRK 0 |
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack |
24 24 BIT $24 00 00 BRK 0 |
Clobbers Z&N, and V; requires dummy interrupt handler; and writes in stack |
A5 A5 LDA $A5 00 00 BRK 0 |
Clobbers A, and Z&N; requires dummy interrupt handler; and writes in stack |
A6 A6 LDX $A6 00 00 BRK 0 |
Clobbers X, and Z&N; requires dummy interrupt handler; and writes in stack |
A4 A4 LDY $A4 00 00 BRK 0 |
Clobbers Y, and Z&N; 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 |
04 04 NOP $04 00 00 BRK 0 |
Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack |
68 ... PLA × 4 |
Clobbers A, S, and Z&N |
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 FD BNE *-1 |
Clobbers X, and Z&N |
A0 03 LDY #3 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
6 bytes | |
EA ... NOP × 2 36 36 ROL $36,X 76 36 ROR $36,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 @rts12, and @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 @rts12, and @rts14; and writes in stack |
5 bytes | |
E6 xx INC @zptemp 20 xx xx JSR @rts12 |
Clobbers Z&N; requires @zptemp, and @rts12; and writes in stack |
C5 C5 CMP $C5 20 xx xx JSR @rts14 |
Clobbers Z&N, and C; requires @rts12, and @rts14; and writes in stack |
24 24 BIT $24 20 xx xx JSR @rts14 |
Clobbers Z&N, and V; requires @rts12, and @rts14; and writes in stack |
A5 A5 LDA $A5 20 xx xx JSR @rts14 |
Clobbers A, and Z&N; requires @rts12, and @rts14; and writes in stack |
A6 A6 LDX $A6 20 xx xx JSR @rts14 |
Clobbers X, and Z&N; requires @rts12, and @rts14; and writes in stack |
A4 A4 LDY $A4 20 xx xx JSR @rts14 |
Clobbers Y, and Z&N; requires @rts12, and @rts14; and writes in stack |
85 xx STA @zptemp 20 xx xx JSR @rts14 |
Requires @zptemp, @rts12, and @rts14; and writes in stack |
04 04 NOP $04 20 xx xx JSR @rts14 |
Requires @rts12, @rts14, and support for unofficial opcodes; and writes in stack |
48 PHA 08 PHP \ × 2 28 PLP / |
Clobbers S; and writes in stack |
EA NOP 68 PLA 48 PHA 68 ... PLA × 2 |
Clobbers A, S, and Z&N |
6 bytes | |
08 PHP 26 26 ROL $26 66 26 ROR $26 28 PLP |
Writes in stack |
68 PLA 48 PHA 26 26 ROL $26 66 26 ROR $26 |
Clobbers A, and Z&N |
E6 xx INC @zptemp 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N; and requires @zptemp |
7 bytes | |
EA NOP C5 C5 CMP $C5 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N, and C |
EA NOP 24 24 BIT $24 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N, and V |
EA NOP A6 A6 LDX $A6 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers X, and Z&N |
EA NOP A4 A4 LDY $A4 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Y, and Z&N |
FE 00 02 INC $0200,X 26 26 ROL $26 66 26 ROR $26 |
Clobbers Z&N; and requires writable $200-$2FF |
FE 00 03 INC $0300,X 26 26 ROL $26 66 26 ROR $26 |
Clobbers Z&N; and requires writable $300-$3FF |
FE 00 04 INC $0400,X 26 26 ROL $26 66 26 ROR $26 |
Clobbers Z&N; and requires writable $400-$4FF |
FE 00 05 INC $0500,X 26 26 ROL $26 66 26 ROR $26 |
Clobbers Z&N; and requires writable $500-$5FF |
FE 00 06 INC $0600,X 26 26 ROL $26 66 26 ROR $26 |
Clobbers Z&N; and requires writable $600-$6FF |
FE 00 07 INC $0700,X 26 26 ROL $26 66 26 ROR $26 |
Clobbers Z&N; and requires writable $700-$7FF |
EA NOP 04 04 NOP $04 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N; and requires support for unofficial opcodes |
8 bytes | |
EA NOP 4C xx xx JMP *+3 36 36 ROL $36,X 76 36 ROR $36,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 |
85 xx STA @zptemp EA ... NOP × 7 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 7 |
Requires support for unofficial opcodes |
10 bytes | |
4C xx xx JMP *+3 EA ... NOP × 7 |
Not relocatable code |
18 cycles
4 bytes | |
---|---|
E6 xx INC @zptemp 00 00 BRK 0 |
Clobbers Z&N; requires @zptemp, and dummy interrupt handler; and writes in stack |
48 PHA 20 xx xx JSR @rts15 |
Clobbers S; requires @rts12, and @rts15; and writes in stack |
68 PLA 20 xx xx JSR @rts14 |
Clobbers A, S, and Z&N; requires @rts12, and @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 | |
F6 F6 INC $F6,X 20 xx xx JSR @rts12 |
Clobbers Z&N; requires @zptemp, @rts12, and writable $00-$FF; and writes in stack |
EA ... NOP × 2 20 xx xx JSR @rts14 |
Requires @rts12, and @rts14; and writes in stack |
C5 C5 CMP $C5 20 xx xx JSR @rts15 |
Clobbers Z&N, and C; requires @rts12, and @rts15; and writes in stack |
24 24 BIT $24 20 xx xx JSR @rts15 |
Clobbers Z&N, and V; requires @rts12, and @rts15; and writes in stack |
A5 A5 LDA $A5 20 xx xx JSR @rts15 |
Clobbers A, and Z&N; requires @rts12, and @rts15; and writes in stack |
A6 A6 LDX $A6 20 xx xx JSR @rts15 |
Clobbers X, and Z&N; requires @rts12, and @rts15; and writes in stack |
A4 A4 LDY $A4 20 xx xx JSR @rts15 |
Clobbers Y, and Z&N; requires @rts12, and @rts15; and writes in stack |
85 xx STA @zptemp 20 xx xx JSR @rts15 |
Requires @zptemp, @rts12, and @rts15; 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 |
04 04 NOP $04 20 xx xx JSR @rts15 |
Requires @rts12, @rts15, and support for unofficial opcodes; 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 A5 A5 LDA $A5 00 00 BRK 0 |
Clobbers A, and Z&N; requires dummy interrupt handler; and writes in stack |
EA NOP A6 A6 LDX $A6 00 00 BRK 0 |
Clobbers X, and Z&N; requires dummy interrupt handler; and writes in stack |
EA NOP A4 A4 LDY $A4 00 00 BRK 0 |
Clobbers Y, and Z&N; 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 |
EA NOP 04 04 NOP $04 00 00 BRK 0 |
Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack |
EA NOP 68 ... PLA × 4 |
Clobbers A, S, and Z&N |
48 ... PHA × 2 20 xx xx JSR @rts12 |
Clobbers S; requires @rts12; and writes in stack |
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 A2 03 LDX #3 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
EA NOP A0 03 LDY #3 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
F6 F6... INC $F6,X× 3 |
Clobbers Z&N; and requires @zptemp, and writable $00-$FF |
7 bytes | |
EA ... NOP × 3 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N |
9 bytes | |
EA ... NOP × 9 |
No requirements |
19 cycles
4 bytes | |
---|---|
F6 F6 INC $F6,X 00 00 BRK 0 |
Clobbers Z&N; requires @zptemp, dummy interrupt handler, and writable $00-$FF; and writes in stack |
68 PLA 20 xx xx JSR @rts15 |
Clobbers A, S, and Z&N; requires @rts12, and @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 × 3 00 00 BRK 0 |
Requires dummy interrupt handler; and writes in stack |
68 PLA 48 PHA 68 ... PLA × 3 |
Clobbers A, S, and Z&N |
6 bytes | |
08 PHP 36 36 ROL $36,X 76 36 ROR $36,X 28 PLP |
Writes in stack |
68 PLA 48 PHA 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers A, and Z&N |
7 bytes | |
A6 A6 LDX $A6 A2 03 LDX #3 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
A4 A4 LDY $A4 A0 03 LDY #3 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
EA NOP E6 xx INC @zptemp 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N; and requires @zptemp |
FE 00 02 INC $0200,X 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N; and requires writable $200-$2FF |
FE 00 03 INC $0300,X 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N; and requires writable $300-$3FF |
FE 00 04 INC $0400,X 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N; and requires writable $400-$4FF |
FE 00 05 INC $0500,X 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N; and requires writable $500-$5FF |
FE 00 06 INC $0600,X 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N; and requires writable $600-$6FF |
FE 00 07 INC $0700,X 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N; and requires writable $700-$7FF |
8 bytes | |
C5 C5 CMP $C5 EA ... NOP × 2 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N, and C |
24 24 BIT $24 EA ... NOP × 2 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N, and V |
04 04 NOP $04 EA ... NOP × 2 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N; and requires support for unofficial opcodes |
9 bytes | |
4C xx xx JMP *+3 EA ... NOP × 2 36 36 ROL $36,X 76 36 ROR $36,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 |
85 xx STA @zptemp EA ... NOP × 8 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 8 |
Requires support for unofficial opcodes |
11 bytes | |
4C xx xx JMP *+3 EA ... NOP × 8 |
Not relocatable code |
20 cycles
4 bytes | |
---|---|
08 PHP 28 PLP 00 00 BRK 0 |
Requires dummy interrupt handler; and writes in stack |
5 bytes | |
A9 2A LDA #$2A ;hides 'ROL A' 18 CLC 10 FC BPL *-2 |
Clobbers A, Z&N, and C |
E6 xx INC @zptemp 20 xx xx JSR @rts15 |
Clobbers Z&N; requires @zptemp, @rts12, and @rts15; and writes in stack |
F6 F6 INC $F6,X 20 xx xx JSR @rts14 |
Clobbers Z&N; requires @zptemp, @rts12, @rts14, and writable $00-$FF; and writes in stack |
68 ... PLA × 5 |
Clobbers A, S, and Z&N |
48 ... PHA × 2 20 xx xx JSR @rts14 |
Clobbers S; requires @rts12, and @rts14; and writes in stack |
EA NOP 48 PHA 20 xx xx JSR @rts15 |
Clobbers S; requires @rts12, and @rts15; and writes in stack |
6 bytes | |
BA TSX 68 ... PLA × 4 9A TXS |
Clobbers A, X, and Z&N; and unsafe for interrupts |
08 PHP 28 PLP 08 PHP F6 F6 INC $F6,X 28 PLP |
Requires @zptemp, and writable $00-$FF; and writes in stack |
F6 F6 INC $F6,X 68 PLA \ × 2 48 PHA / |
Clobbers A, and Z&N; and requires @zptemp, and writable $00-$FF |
EA ... NOP × 3 20 xx xx JSR @rts14 |
Requires @rts12, and @rts14; and writes in stack |
18 CLC 90 00 BCC *+2 20 xx xx JSR @rts15 |
Clobbers C; requires @rts12, and @rts15; and writes in stack |
B8 CLV 50 00 BVC *+2 20 xx xx JSR @rts15 |
Clobbers V; requires @rts12, and @rts15; and writes in stack |
EA NOP A5 A5 LDA $A5 20 xx xx JSR @rts15 |
Clobbers A, and Z&N; requires @rts12, and @rts15; and writes in stack |
EA NOP A6 A6 LDX $A6 20 xx xx JSR @rts15 |
Clobbers X, and Z&N; requires @rts12, and @rts15; and writes in stack |
EA NOP A4 A4 LDY $A4 20 xx xx JSR @rts15 |
Clobbers Y, and Z&N; requires @rts12, and @rts15; and writes in stack |
EA NOP 85 xx STA @zptemp 20 xx xx JSR @rts15 |
Requires @zptemp, @rts12, and @rts15; and writes in stack |
EA NOP 04 04 NOP $04 20 xx xx JSR @rts15 |
Requires @rts12, @rts15, and support for unofficial opcodes; and writes in stack |
48 ... PHA × 2 08 PHP \ × 2 28 PLP / |
Clobbers S; and writes in stack |
7 bytes | |
EA ... NOP × 3 08 PHP \ × 2 28 PLP / |
Writes in stack |
EA ... NOP × 3 68 PLA \ × 2 48 PHA / |
Clobbers A, and Z&N |
EA ... NOP × 2 A2 03 LDX #3 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
EA ... NOP × 2 A0 03 LDY #3 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
EA NOP F6 F6... INC $F6,X× 3 |
Clobbers Z&N; and requires @zptemp, and writable $00-$FF |
8 bytes | |
26 26 ROL $26 \ × 2 66 26 ROR $26 / |
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 | |
18 CLC A9 2A LDA #$2A ;hides 'ROL A' 90 FD BCC *-1 |
Clobbers A, Z&N, and C |
A2 04 LDX #4 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
A0 04 LDY #4 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
08 PHP 28 PLP 20 xx xx JSR @rts14 |
Requires @rts12, and @rts14; and writes in stack |
F6 F6 INC $F6,X 20 xx xx JSR @rts15 |
Clobbers Z&N; requires @zptemp, @rts12, @rts15, and writable $00-$FF; and writes in stack |
EA NOP F6 F6 INC $F6,X 00 00 BRK 0 |
Clobbers Z&N; requires @zptemp, dummy interrupt handler, and writable $00-$FF; and writes in stack |
48 ... PHA × 2 20 xx xx JSR @rts15 |
Clobbers S; requires @rts12, and @rts15; and writes in stack |
EA NOP 48 ... PHA × 2 00 00 BRK 0 |
Clobbers S; requires dummy interrupt handler; and writes in stack |
6 bytes | |
08 PHP \ × 3 28 PLP / |
Writes in stack |
68 PLA \ × 3 48 PHA / |
Clobbers A, and Z&N |
8 bytes | |
EA ... NOP × 2 E6 xx INC @zptemp 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N; and requires @zptemp |
EA NOP FE 00 02 INC $0200,X 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N; and requires writable $200-$2FF |
EA NOP FE 00 03 INC $0300,X 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N; and requires writable $300-$3FF |
EA NOP FE 00 04 INC $0400,X 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N; and requires writable $400-$4FF |
EA NOP FE 00 05 INC $0500,X 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N; and requires writable $500-$5FF |
EA NOP FE 00 06 INC $0600,X 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N; and requires writable $600-$6FF |
EA NOP FE 00 07 INC $0700,X 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N; and requires writable $700-$7FF |
9 bytes | |
C5 C5 CMP $C5 EA ... NOP × 3 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N, and C |
24 24 BIT $24 EA ... NOP × 3 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N, and V |
04 04 NOP $04 EA ... NOP × 3 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N; and requires support for unofficial opcodes |
10 bytes | |
4C xx xx JMP *+3 EA ... NOP × 3 36 36 ROL $36,X 76 36 ROR $36,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 |
85 xx STA @zptemp EA ... NOP × 9 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 9 |
Requires support for unofficial opcodes |
12 bytes | |
4C xx xx JMP *+3 EA ... NOP × 9 |
Not relocatable code |
22 cycles
5 bytes | |
---|---|
08 PHP 28 PLP 20 xx xx JSR @rts15 |
Requires @rts12, and @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 @rts12, and @rts14; and writes in stack |
6 bytes | |
18 CLC A9 2A LDA #$2A ;hides 'ROL A' 18 CLC 10 FC BPL *-2 |
Clobbers A, Z&N, and C |
A2 03 LDX #3 EA NOP CA DEX D0 FC BNE *-2 |
Clobbers X, and Z&N |
A0 03 LDY #3 EA NOP 88 DEY D0 FC BNE *-2 |
Clobbers Y, and Z&N |
EA NOP F6 F6 INC $F6,X 20 xx xx JSR @rts14 |
Clobbers Z&N; requires @zptemp, @rts12, @rts14, and writable $00-$FF; and writes in stack |
EA NOP 68 ... PLA × 5 |
Clobbers A, S, and Z&N |
48 PHA 08 PHP 28 PLP 20 xx xx JSR @rts12 |
Clobbers S; requires @rts12; and writes in stack |
7 bytes | |
08 PHP BA TSX 08 PHP 28 ... PLP × 2 9A TXS 28 PLP |
Clobbers X; and writes in stack |
EA NOP 08 PHP 28 PLP 08 PHP F6 F6 INC $F6,X 28 PLP |
Requires @zptemp, and writable $00-$FF; and writes in stack |
EA NOP F6 F6 INC $F6,X 68 PLA \ × 2 48 PHA / |
Clobbers A, and Z&N; and requires @zptemp, and writable $00-$FF |
08 PHP 24 24 BIT $24 28 PLP 20 xx xx JSR @rts12 |
Requires @rts12; and writes in stack |
48 PHA 08 PHP 36 36 ROL $36,X 76 36 ROR $36,X 28 PLP |
Clobbers S; and writes in stack |
8 bytes | |
26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N |
08 PHP 24 24 BIT $24 36 36 ROL $36,X 76 36 ROR $36,X 28 PLP |
Writes in stack |
11 bytes | |
EA ... NOP × 11 |
No requirements |
23 cycles
5 bytes | |
---|---|
A9 2A LDA #$2A ;hides 'ROL A' 48 PHA 10 FC BPL *-2 |
Clobbers A, S, Z&N, and C; and writes in stack |
68 ... PLA × 2 20 xx xx JSR @rts15 |
Clobbers A, S, and Z&N; requires @rts12, and @rts15; 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 | |
18 ... CLC × 2 A9 2A LDA #$2A ;hides 'ROL A' 90 FD BCC *-1 |
Clobbers A, Z&N, and C |
EA NOP A2 04 LDX #4 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
EA NOP A0 04 LDY #4 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
EA NOP 08 PHP 28 PLP 20 xx xx JSR @rts14 |
Requires @rts12, and @rts14; and writes in stack |
EA NOP F6 F6 INC $F6,X 20 xx xx JSR @rts15 |
Clobbers Z&N; requires @zptemp, @rts12, @rts15, and writable $00-$FF; and writes in stack |
08 PHP 24 24 BIT $24 28 PLP 00 00 BRK 0 |
Requires dummy interrupt handler; and writes in stack |
68 PLA 48 PHA 68 ... PLA × 4 |
Clobbers A, S, and Z&N |
EA NOP 48 ... PHA × 2 20 xx xx JSR @rts15 |
Clobbers S; requires @rts12, and @rts15; and writes in stack |
7 bytes | |
EA NOP 08 PHP \ × 3 28 PLP / |
Writes in stack |
EA NOP 68 PLA \ × 3 48 PHA / |
Clobbers A, and Z&N |
8 bytes | |
E6 xx INC @zptemp F6 F6... INC $F6,X× 3 |
Clobbers Z&N; and requires @zptemp, and writable $00-$FF |
9 bytes | |
E6 xx INC @zptemp EA ... NOP × 3 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N; and requires @zptemp |
EA ... NOP × 2 FE 00 02 INC $0200,X 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N; and requires writable $200-$2FF |
EA ... NOP × 2 FE 00 03 INC $0300,X 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N; and requires writable $300-$3FF |
EA ... NOP × 2 FE 00 04 INC $0400,X 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N; and requires writable $400-$4FF |
EA ... NOP × 2 FE 00 05 INC $0500,X 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N; and requires writable $500-$5FF |
EA ... NOP × 2 FE 00 06 INC $0600,X 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N; and requires writable $600-$6FF |
EA ... NOP × 2 FE 00 07 INC $0700,X 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N; and requires writable $700-$7FF |
10 bytes | |
C5 C5 CMP $C5 26 26 ROL $26 \ × 2 66 26 ROR $26 / |
Clobbers Z&N, and C |
24 24 BIT $24 26 26 ROL $26 \ × 2 66 26 ROR $26 / |
Clobbers Z&N, and V |
04 04 NOP $04 26 26 ROL $26 \ × 2 66 26 ROR $26 / |
Clobbers Z&N; and requires support for unofficial opcodes |
11 bytes | |
4C xx xx JMP *+3 26 26 ROL $26 \ × 2 66 26 ROR $26 / |
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 |
85 xx STA @zptemp EA ... NOP × 10 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 10 |
Requires support for unofficial opcodes |
13 bytes | |
4C xx xx JMP *+3 EA ... NOP × 10 |
Not relocatable code |
24 cycles
4 bytes | |
---|---|
A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 |
Clobbers A, Z&N, and C |
5 bytes | |
48 PHA 68 ... PLA × 2 00 00 BRK 0 |
Clobbers A, S, and Z&N; requires dummy interrupt handler; and writes in stack |
6 bytes | |
20 xx xx JSR @rts12× 2 |
Requires @rts12; and writes in stack |
EA ... NOP × 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 A2 04 LDX #4 CA DEX D0 FD BNE *-1 |
Clobbers X, S, and Z&N; and writes in stack |
48 PHA A0 04 LDY #4 88 DEY D0 FD BNE *-1 |
Clobbers Y, S, and Z&N; and writes in stack |
7 bytes | |
A6 A6 LDX $A6 A2 04 LDX #4 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
A4 A4 LDY $A4 A0 04 LDY #4 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
48 PHA 08 PHP \ × 3 28 PLP / |
Clobbers S; and writes in stack |
8 bytes | |
36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N |
08 PHP 28 PLP 08 PHP 26 26 ROL $26 66 26 ROR $26 28 PLP |
Writes in stack |
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 36 ROL $36,X 76 36 ROR $36,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 |
68 PLA 18 CLC A9 2A LDA #$2A ;hides 'ROL A' 90 FD BCC *-1 |
Clobbers A, S, Z&N, and C |
A2 03 LDX #3 48 PHA CA DEX D0 FC BNE *-2 |
Clobbers X, S, and Z&N; and writes in stack |
A0 03 LDY #3 48 PHA 88 DEY D0 FC BNE *-2 |
Clobbers Y, S, and Z&N; and writes in stack |
68 PLA A2 04 LDX #4 CA DEX D0 FD BNE *-1 |
Clobbers A, X, S, and Z&N |
68 PLA A0 04 LDY #4 88 DEY D0 FD BNE *-1 |
Clobbers A, Y, S, and Z&N |
48 PHA 08 PHP 28 PLP 20 xx xx JSR @rts15 |
Clobbers S; requires @rts12, and @rts15; and writes in stack |
48 PHA 68 ... PLA × 2 20 xx xx JSR @rts14 |
Clobbers A, S, and Z&N; requires @rts12, and @rts14; and writes in stack |
48 ... PHA × 4 00 00 BRK 0 |
Clobbers S; requires dummy interrupt handler; and writes in stack |
7 bytes | |
EA ... NOP × 2 18 CLC A9 2A LDA #$2A ;hides 'ROL A' 90 FD BCC *-1 |
Clobbers A, Z&N, and C |
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 A2 04 LDX #4 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
EA ... NOP × 2 A0 04 LDY #4 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
20 xx xx JSR @rts12 08 PHP F6 F6 INC $F6,X 28 PLP |
Requires @zptemp, @rts12, and writable $00-$FF; and writes in stack |
EA ... NOP × 2 08 PHP 28 PLP 20 xx xx JSR @rts14 |
Requires @rts12, and @rts14; and writes in stack |
08 PHP 24 24 BIT $24 28 PLP 20 xx xx JSR @rts15 |
Requires @rts12, and @rts15; 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 |
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 |
EA NOP 08 PHP 24 24 BIT $24 28 PLP 00 00 BRK 0 |
Requires dummy interrupt handler; and writes in stack |
EA NOP 68 PLA 48 PHA 68 ... PLA × 4 |
Clobbers A, S, and Z&N |
48 ... PHA × 2 08 PHP 28 PLP 20 xx xx JSR @rts12 |
Clobbers S; requires @rts12; and writes in stack |
8 bytes | |
EA ... NOP × 2 08 PHP \ × 3 28 PLP / |
Writes in stack |
EA ... NOP × 2 68 PLA \ × 3 48 PHA / |
Clobbers A, and Z&N |
9 bytes | |
EA NOP E6 xx INC @zptemp F6 F6... INC $F6,X× 3 |
Clobbers Z&N; and requires @zptemp, and writable $00-$FF |
10 bytes | |
C5 C5 CMP $C5 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N, and C |
24 24 BIT $24 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N, and V |
E6 xx INC @zptemp 26 26 ROL $26 \ × 2 66 26 ROR $26 / |
Clobbers Z&N; and requires @zptemp |
EA ... NOP × 3 FE 00 02 INC $0200,X 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N; and requires writable $200-$2FF |
EA ... NOP × 3 FE 00 03 INC $0300,X 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N; and requires writable $300-$3FF |
EA ... NOP × 3 FE 00 04 INC $0400,X 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N; and requires writable $400-$4FF |
EA ... NOP × 3 FE 00 05 INC $0500,X 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N; and requires writable $500-$5FF |
EA ... NOP × 3 FE 00 06 INC $0600,X 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N; and requires writable $600-$6FF |
EA ... NOP × 3 FE 00 07 INC $0700,X 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N; and requires writable $700-$7FF |
04 04 NOP $04 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N; and requires support for unofficial opcodes |
11 bytes | |
4C xx xx JMP *+3 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X 76 36 ROR $36,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 |
85 xx STA @zptemp EA ... NOP × 11 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 11 |
Requires support for unofficial opcodes |
14 bytes | |
4C xx xx JMP *+3 EA ... NOP × 11 |
Not relocatable code |
26 cycles
4 bytes | |
---|---|
00 00... BRK 0 × 2 |
Requires dummy interrupt handler; and writes in stack |
5 bytes | |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 |
Clobbers A, Z&N, and C |
A2 05 LDX #5 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
A0 05 LDY #5 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
6 bytes | |
20 xx xx JSR @rts12 20 xx xx JSR @rts14 |
Requires @rts12, and @rts14; and writes in stack |
48 PHA 68 ... PLA × 2 20 xx xx JSR @rts15 |
Clobbers A, S, and Z&N; requires @rts12, and @rts15; and writes in stack |
7 bytes | |
EA NOP 20 xx xx JSR @rts12× 2 |
Requires @rts12; and writes in stack |
EA NOP 68 ... PLA × 6 |
Clobbers A, S, and Z&N |
8 bytes | |
08 PHP 28 PLP 08 PHP 36 36 ROL $36,X 76 36 ROR $36,X 28 PLP |
Writes in stack |
36 36 ROL $36,X 76 36 ROR $36,X 68 PLA \ × 2 48 PHA / |
Clobbers A, and Z&N |
9 bytes | |
EA NOP 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N |
13 bytes | |
EA ... NOP × 13 |
No requirements |
27 cycles
5 bytes | |
---|---|
A9 LDA #0 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
00 00 BRK 0 20 xx xx JSR @rts14 |
Requires dummy interrupt handler, @rts12, 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 |
6 bytes | |
A5 A5 LDA $A5 A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 |
Clobbers A, Z&N, and C |
20 xx xx JSR @rts12 20 xx xx JSR @rts15 |
Requires @rts12, and @rts15; and writes in stack |
00 00 BRK 0 08 PHP \ × 2 28 PLP / |
Requires dummy interrupt handler; and writes in stack |
7 bytes | |
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 A9 2A LDA #$2A ;hides 'ROL A' 18 CLC 10 FC BPL *-2 28 PLP |
Clobbers A; and writes in stack |
A2 04 LDX #4 CA DEX D0 FD BNE *-1 F6 xx INC @zptemp,X |
Clobbers X, and Z&N; and requires @zptemp |
F6 F6 INC $F6,X A0 04 LDY #4 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N; and requires @zptemp, and writable $00-$FF |
08 PHP F6 F6 INC $F6,X 28 PLP 20 xx xx JSR @rts14 |
Requires @zptemp, @rts12, @rts14, and writable $00-$FF; 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 |
68 PLA 48 PHA 68 ... PLA × 5 |
Clobbers A, S, and Z&N |
48 ... PHA × 2 A2 04 LDX #4 CA DEX D0 FD BNE *-1 |
Clobbers X, S, and Z&N; and writes in stack |
48 ... PHA × 2 A0 04 LDY #4 88 DEY D0 FD BNE *-1 |
Clobbers Y, S, and Z&N; and writes in stack |
48 PHA 20 xx xx JSR @rts12× 2 |
Clobbers S; requires @rts12; and writes in stack |
8 bytes | |
EA ... NOP × 3 A2 04 LDX #4 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
EA ... NOP × 3 A0 04 LDY #4 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
08 PHP F6 F6 INC $F6,X 28 PLP \ × 2 08 PHP / 28 PLP |
Requires @zptemp, and writable $00-$FF; and writes in stack |
F6 F6 INC $F6,X 68 PLA \ × 3 48 PHA / |
Clobbers A, and Z&N; and requires @zptemp, and writable $00-$FF |
24 24 BIT $24 20 xx xx JSR @rts12× 2 |
Clobbers Z&N, and V; requires @rts12; and writes in stack |
20 xx xx JSR @rts12 08 PHP BA TSX 28 PLP 9A TXS 28 PLP |
Clobbers X; requires @rts12; and writes in stack |
85 xx STA @zptemp 20 xx xx JSR @rts12× 2 |
Requires @zptemp, and @rts12; and writes in stack |
EA ... NOP × 3 08 PHP 28 PLP 20 xx xx JSR @rts14 |
Requires @rts12, and @rts14; and writes in stack |
04 04 NOP $04 20 xx xx JSR @rts12× 2 |
Requires @rts12, and support for unofficial opcodes; and writes in stack |
48 ... PHA × 2 08 PHP \ × 3 28 PLP / |
Clobbers S; 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 C5 CMP $C5 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N, and C |
24 24 BIT $24 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N, and V |
E6 xx INC @zptemp 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N; and requires @zptemp |
04 04 NOP $04 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
11 bytes | |
4C xx xx JMP *+3 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and not relocatable code |
FE 00 02 INC $0200,X 26 26 ROL $26 \ × 2 66 26 ROR $26 / |
Clobbers Z&N; and requires writable $200-$2FF |
FE 00 03 INC $0300,X 26 26 ROL $26 \ × 2 66 26 ROR $26 / |
Clobbers Z&N; and requires writable $300-$3FF |
FE 00 04 INC $0400,X 26 26 ROL $26 \ × 2 66 26 ROR $26 / |
Clobbers Z&N; and requires writable $400-$4FF |
FE 00 05 INC $0500,X 26 26 ROL $26 \ × 2 66 26 ROR $26 / |
Clobbers Z&N; and requires writable $500-$5FF |
FE 00 06 INC $0600,X 26 26 ROL $26 \ × 2 66 26 ROR $26 / |
Clobbers Z&N; and requires writable $600-$6FF |
FE 00 07 INC $0700,X 26 26 ROL $26 \ × 2 66 26 ROR $26 / |
Clobbers Z&N; and requires writable $700-$7FF |
14 bytes | |
18 ... CLC × 12 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 12 50 00 BVC *+2 |
Clobbers V |
85 xx STA @zptemp EA ... NOP × 12 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 12 |
Requires support for unofficial opcodes |
15 bytes | |
4C xx xx JMP *+3 EA ... NOP × 12 |
Not relocatable code |
28 cycles
5 bytes | |
---|---|
A9 LDA #1 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
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 |
6 bytes | |
EA ... NOP × 2 A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 |
Clobbers A, Z&N, and C |
EA NOP A2 05 LDX #5 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
EA NOP A0 05 LDY #5 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
20 xx xx JSR @rts14× 2 |
Requires @rts12, and @rts14; and writes in stack |
7 bytes | |
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 |
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 A2 04 LDX #4 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 04 LDY #4 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; and writes in stack |
08 PHP F6 F6 INC $F6,X 28 PLP 20 xx xx JSR @rts15 |
Requires @zptemp, @rts12, @rts15, and writable $00-$FF; and writes in stack |
68 ... PLA × 7 |
Clobbers A, S, and Z&N |
48 ... PHA × 2 08 PHP 28 PLP 20 xx xx JSR @rts15 |
Clobbers S; requires @rts12, and @rts15; and writes in stack |
8 bytes | |
08 PHP \ × 4 28 PLP / |
Writes in stack |
68 PLA \ × 4 48 PHA / |
Clobbers A, and Z&N |
10 bytes | |
EA ... NOP × 2 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N |
14 bytes | |
EA ... NOP × 14 |
No requirements |
29 cycles
5 bytes | |
---|---|
A9 LDA #2 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
48 PHA 00 00... BRK 0 × 2 |
Clobbers S; requires dummy interrupt handler; and writes in stack |
6 bytes | |
18 CLC A9 2A LDA #$2A ;hides 'ROL A' EA NOP 90 FC BCC *-2 |
Clobbers A, Z&N, and C |
A2 04 LDX #4 EA NOP CA DEX D0 FC BNE *-2 |
Clobbers X, and Z&N |
A0 04 LDY #4 EA NOP 88 DEY D0 FC BNE *-2 |
Clobbers Y, and Z&N |
20 xx xx JSR @rts14 20 xx xx JSR @rts15 |
Requires @rts12, @rts14, and @rts15; and writes in stack |
C5 C5 CMP $C5 00 00... BRK 0 × 2 |
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack |
24 24 BIT $24 00 00... BRK 0 × 2 |
Clobbers Z&N, and V; requires dummy interrupt handler; and writes in stack |
A5 A5 LDA $A5 00 00... BRK 0 × 2 |
Clobbers A, and Z&N; requires dummy interrupt handler; and writes in stack |
85 xx STA @zptemp 00 00... BRK 0 × 2 |
Requires @zptemp, and dummy interrupt handler; and writes in stack |
EA NOP 00 00 BRK 0 20 xx xx JSR @rts14 |
Requires dummy interrupt handler, @rts12, and @rts14; and writes in stack |
04 04 NOP $04 00 00... BRK 0 × 2 |
Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack |
7 bytes | |
EA NOP 20 xx xx JSR @rts12 20 xx xx JSR @rts15 |
Requires @rts12, and @rts15; and writes in stack |
EA NOP 00 00 BRK 0 08 PHP \ × 2 28 PLP / |
Requires dummy interrupt handler; and writes in stack |
48 PHA 20 xx xx JSR @rts12 20 xx xx JSR @rts14 |
Clobbers S; requires @rts12, and @rts14; and writes in stack |
8 bytes | |
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 |
08 PHP 18 CLC A9 2A LDA #$2A ;hides 'ROL A' 18 CLC 10 FC BPL *-2 28 PLP |
Clobbers A; and writes in stack |
08 PHP A2 03 LDX #3 EA NOP CA DEX D0 FC BNE *-2 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 03 LDY #3 EA NOP 88 DEY D0 FC BNE *-2 28 PLP |
Clobbers Y; 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 |
24 24 BIT $24 20 xx xx JSR @rts12 20 xx xx JSR @rts14 |
Clobbers Z&N, and V; requires @rts12, and @rts14; and writes in stack |
85 xx STA @zptemp 20 xx xx JSR @rts12 20 xx xx JSR @rts14 |
Requires @zptemp, @rts12, and @rts14; and writes in stack |
04 04 NOP $04 20 xx xx JSR @rts12 20 xx xx JSR @rts14 |
Requires @rts12, @rts14, and support for unofficial opcodes; and writes in stack |
EA NOP 68 PLA 48 PHA 68 ... PLA × 5 |
Clobbers A, S, and Z&N |
EA NOP 48 PHA 20 xx xx JSR @rts12× 2 |
Clobbers S; requires @rts12; and writes in stack |
9 bytes | |
EA NOP 08 PHP F6 F6 INC $F6,X 28 PLP \ × 2 08 PHP / 28 PLP |
Requires @zptemp, and writable $00-$FF; and writes in stack |
EA NOP F6 F6 INC $F6,X 68 PLA \ × 3 48 PHA / |
Clobbers A, and Z&N; and requires @zptemp, and writable $00-$FF |
20 xx xx JSR @rts12 08 PHP 26 26 ROL $26 66 26 ROR $26 28 PLP |
Requires @rts12; and writes in stack |
48 PHA 08 PHP 28 PLP 08 PHP 36 36 ROL $36,X 76 36 ROR $36,X 28 PLP |
Clobbers S; and writes in stack |
10 bytes | |
08 PHP 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X 76 36 ROR $36,X 28 PLP |
Writes in stack |
68 PLA 48 PHA 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers A, and Z&N |
E6 xx INC @zptemp 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires @zptemp |
11 bytes | |
EA NOP C5 C5 CMP $C5 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N, and C |
EA NOP 24 24 BIT $24 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N, and V |
FE 00 02 INC $0200,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N; and requires writable $200-$2FF |
FE 00 03 INC $0300,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N; and requires writable $300-$3FF |
FE 00 04 INC $0400,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N; and requires writable $400-$4FF |
FE 00 05 INC $0500,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N; and requires writable $500-$5FF |
FE 00 06 INC $0600,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N; and requires writable $600-$6FF |
FE 00 07 INC $0700,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X 76 36 ROR $36,X |
Clobbers Z&N; and requires writable $700-$7FF |
EA NOP 04 04 NOP $04 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
12 bytes | |
EA NOP 4C xx xx JMP *+3 36 36 ROL $36,X \ × 2 76 36 ROR $36,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 |
85 xx STA @zptemp EA ... NOP × 13 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 13 |
Requires support for unofficial opcodes |
16 bytes | |
4C xx xx JMP *+3 EA ... NOP × 13 |
Not relocatable code |
30 cycles
5 bytes | |
---|---|
A9 LDA #3 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
68 PLA 00 00... BRK 0 × 2 |
Clobbers A, S, and Z&N; requires dummy interrupt handler; and writes in stack |
6 bytes | |
F6 F6 INC $F6,X A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 |
Clobbers A, Z&N, and C; and requires @zptemp, and writable $00-$FF |
20 xx xx JSR @rts15× 2 |
Requires @rts12, and @rts15; and writes in stack |
EA ... NOP × 2 00 00... BRK 0 × 2 |
Requires dummy interrupt handler; and writes in stack |
EA NOP 68 PLA A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 |
Clobbers A, S, Z&N, and C |
68 PLA A2 05 LDX #5 CA DEX D0 FD BNE *-1 |
Clobbers A, X, S, and Z&N |
68 PLA A0 05 LDY #5 88 DEY D0 FD BNE *-1 |
Clobbers A, Y, S, and Z&N |
7 bytes | |
EA ... NOP × 3 A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 |
Clobbers A, Z&N, and C |
EA ... NOP × 2 A2 05 LDX #5 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
EA ... NOP × 2 A0 05 LDY #5 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
EA NOP 20 xx xx JSR @rts14× 2 |
Requires @rts12, and @rts14; and writes in stack |
8 bytes | |
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 |
08 PHP 18 ... CLC × 2 A9 2A LDA #$2A ;hides 'ROL A' 90 FD BCC *-1 28 PLP |
Clobbers A; and writes in stack |
EA NOP 08 PHP A2 04 LDX #4 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
EA NOP 08 PHP A0 04 LDY #4 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; and writes in stack |
F6 F6 INC $F6,X 20 xx xx JSR @rts12× 2 |
Clobbers Z&N; requires @zptemp, @rts12, and writable $00-$FF; and writes in stack |
EA NOP 68 ... PLA × 7 |
Clobbers A, S, and Z&N |
48 ... PHA × 2 20 xx xx JSR @rts12× 2 |
Clobbers S; requires @rts12; and writes in stack |
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 |
10 bytes | |
F6 F6... INC $F6,X× 5 |
Clobbers Z&N; and requires @zptemp, and writable $00-$FF |
11 bytes | |
EA ... NOP × 3 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N |
15 bytes | |
EA ... NOP × 15 |
No requirements |
31 cycles
5 bytes | |
---|---|
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 90 FD BCC *-1 |
Clobbers A, Z&N, and C |
A2 06 LDX #6 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
A0 06 LDY #6 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
6 bytes | |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 68 PLA |
Clobbers Z&N, and C; and writes in stack |
08 PHP A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 28 PLP |
Clobbers A; 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 @rts12, @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 85 xx STA @zptemp 00 00... BRK 0 × 2 |
Requires @zptemp, and dummy interrupt handler; and writes in stack |
EA ... NOP × 2 00 00 BRK 0 20 xx xx JSR @rts14 |
Requires dummy interrupt handler, @rts12, and @rts14; and writes in stack |
EA NOP 04 04 NOP $04 00 00... BRK 0 × 2 |
Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack |
48 PHA 20 xx xx JSR @rts14× 2 |
Clobbers S; requires @rts12, and @rts14; and writes in stack |
8 bytes | |
08 PHP 28 PLP 20 xx xx JSR @rts12× 2 |
Requires @rts12; and writes in stack |
EA ... NOP × 2 00 00 BRK 0 08 PHP \ × 2 28 PLP / |
Requires dummy interrupt handler; and writes in stack |
68 PLA 48 PHA 68 ... PLA × 6 |
Clobbers A, S, and Z&N |
48 PHA 08 PHP A2 04 LDX #4 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X, and S; and writes in stack |
48 PHA 08 PHP A0 04 LDY #4 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y, and S; and writes in stack |
9 bytes | |
08 PHP A6 A6 LDX $A6 A2 04 LDX #4 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
08 PHP A4 A4 LDY $A4 A0 04 LDY #4 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; and writes in stack |
48 PHA 08 PHP \ × 4 28 PLP / |
Clobbers S; and writes in stack |
10 bytes | |
08 PHP 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 28 PLP |
Writes in stack |
68 PLA 48 PHA 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers A, and Z&N |
11 bytes | |
EA NOP E6 xx INC @zptemp 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires @zptemp |
FE 00 02 INC $0200,X 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $200-$2FF |
FE 00 03 INC $0300,X 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $300-$3FF |
FE 00 04 INC $0400,X 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $400-$4FF |
FE 00 05 INC $0500,X 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $500-$5FF |
FE 00 06 INC $0600,X 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $600-$6FF |
FE 00 07 INC $0700,X 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $700-$7FF |
12 bytes | |
EA ... NOP × 2 C5 C5 CMP $C5 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N, and C |
EA ... NOP × 2 24 24 BIT $24 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N, and V |
EA ... NOP × 2 04 04 NOP $04 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
13 bytes | |
EA ... NOP × 2 4C xx xx JMP *+3 36 36 ROL $36,X \ × 2 76 36 ROR $36,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 |
85 xx STA @zptemp EA ... NOP × 14 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 14 |
Requires support for unofficial opcodes |
17 bytes | |
4C xx xx JMP *+3 EA ... NOP × 14 |
Not relocatable code |
32 cycles
5 bytes | |
---|---|
A9 LDA #5 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A2 05 LDX #5 ;hides 'ORA zp' CA DEX ;first loop only CA DEX D0 FB BNE *-3 |
Clobbers A, X, and Z&N |
A0 05 LDY #5 ;hides 'ORA zp' 88 DEY ;first loop only 88 DEY D0 FB BNE *-3 |
Clobbers A, Y, and Z&N |
F6 F6 INC $F6,X 00 00... BRK 0 × 2 |
Clobbers Z&N; requires @zptemp, dummy interrupt handler, and writable $00-$FF; and writes in stack |
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 | |
A9 2A LDA #$2A ;hides 'ROL A' EA ... NOP × 2 18 CLC 10 FA BPL *-4 |
Clobbers A, Z&N, and C |
A2 05 LDX #5 CA DEX D0 FD BNE *-1 F6 xx INC @zptemp,X |
Clobbers X, and Z&N; and requires @zptemp |
F6 F6 INC $F6,X A0 05 LDY #5 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N; and requires @zptemp, and writable $00-$FF |
EA NOP 20 xx xx JSR @rts15× 2 |
Requires @rts12, and @rts15; and writes in stack |
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 |
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 |
EA ... NOP × 3 00 00... BRK 0 × 2 |
Requires dummy interrupt handler; and writes in stack |
48 ... PHA × 2 A2 05 LDX #5 CA DEX D0 FD BNE *-1 |
Clobbers X, S, and Z&N; and writes in stack |
48 ... PHA × 2 A0 05 LDY #5 88 DEY D0 FD BNE *-1 |
Clobbers Y, S, and Z&N; and writes in stack |
68 PLA 20 xx xx JSR @rts14× 2 |
Clobbers A, S, and Z&N; requires @rts12, and @rts14; and writes in stack |
8 bytes | |
A6 A6 LDX $A6 A2 04 LDX #4 EA NOP CA DEX D0 FC BNE *-2 |
Clobbers X, and Z&N |
A4 A4 LDY $A4 A0 04 LDY #4 EA NOP 88 DEY D0 FC BNE *-2 |
Clobbers Y, and Z&N |
EA ... NOP × 2 20 xx xx JSR @rts14× 2 |
Requires @rts12, and @rts14; and writes in stack |
68 ... PLA × 8 |
Clobbers A, S, and Z&N |
9 bytes | |
48 PHA A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only 08 PHP 28 PLP 10 FA BPL *-4 68 PLA |
Clobbers Z&N; and writes in stack |
EA ... NOP × 2 08 PHP 18 CLC A9 2A LDA #$2A ;hides 'ROL A' 90 FD BCC *-1 28 PLP |
Clobbers A; and writes in stack |
08 PHP A2 03 LDX #3 C5 C5 CMP $C5 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 03 LDY #3 C5 C5 CMP $C5 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
08 PHP 28 PLP 20 xx xx JSR @rts12 08 PHP F6 F6 INC $F6,X 28 PLP |
Requires @zptemp, @rts12, and writable $00-$FF; 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 |
EA NOP 48 ... PHA × 2 20 xx xx JSR @rts12× 2 |
Clobbers S; requires @rts12; 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 |
11 bytes | |
EA NOP F6 F6... INC $F6,X× 5 |
Clobbers Z&N; and requires @zptemp, and writable $00-$FF |
12 bytes | |
36 36 ROL $36,X 76 36 ROR $36,X 26 26 ROL $26 \ × 2 66 26 ROR $26 / |
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 | |
18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' 90 FD BCC *-1 |
Clobbers A, Z&N, and C |
EA NOP A2 06 LDX #6 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
EA NOP A0 06 LDY #6 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
08 PHP 28 PLP 00 00... BRK 0 × 2 |
Requires dummy interrupt handler; and writes in stack |
7 bytes | |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 68 PLA |
Clobbers Z&N, and C; and writes in stack |
08 PHP 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 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 05 LDY #5 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; and writes in stack |
48 PHA 20 xx xx JSR @rts15× 2 |
Clobbers S; requires @rts12, and @rts15; and writes in stack |
8 bytes | |
08 PHP 28 PLP 20 xx xx JSR @rts12 20 xx xx JSR @rts14 |
Requires @rts12, and @rts14; and writes in stack |
24 24 BIT $24 20 xx xx JSR @rts15× 2 |
Clobbers Z&N, and V; requires @rts12, and @rts15; and writes in stack |
85 xx STA @zptemp 20 xx xx JSR @rts15× 2 |
Requires @zptemp, @rts12, and @rts15; and writes in stack |
04 04 NOP $04 20 xx xx JSR @rts15× 2 |
Requires @rts12, @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 68 PLA 48 PHA 68 ... PLA × 6 |
Clobbers A, S, and Z&N |
10 bytes | |
08 PHP \ × 2 28 PLP / 08 PHP 36 36 ROL $36,X 76 36 ROR $36,X 28 PLP |
Writes in stack |
36 36 ROL $36,X 76 36 ROR $36,X 68 PLA \ × 3 48 PHA / |
Clobbers A, and Z&N |
12 bytes | |
EA ... NOP × 2 E6 xx INC @zptemp 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires @zptemp |
EA NOP FE 00 02 INC $0200,X 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $200-$2FF |
EA NOP FE 00 03 INC $0300,X 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $300-$3FF |
EA NOP FE 00 04 INC $0400,X 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $400-$4FF |
EA NOP FE 00 05 INC $0500,X 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $500-$5FF |
EA NOP FE 00 06 INC $0600,X 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $600-$6FF |
EA NOP FE 00 07 INC $0700,X 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $700-$7FF |
13 bytes | |
C5 C5 CMP $C5 EA ... NOP × 3 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N, and C |
24 24 BIT $24 EA ... NOP × 3 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N, and V |
04 04 NOP $04 EA ... NOP × 3 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
14 bytes | |
4C xx xx JMP *+3 EA ... NOP × 3 36 36 ROL $36,X \ × 2 76 36 ROR $36,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 |
85 xx STA @zptemp EA ... NOP × 15 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 15 |
Requires support for unofficial opcodes |
18 bytes | |
4C xx xx JMP *+3 EA ... NOP × 15 |
Not relocatable code |
34 cycles
5 bytes | |
---|---|
A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 10 FC BPL *-2 |
Clobbers A, Z&N, and C |
A0 88 LDY #136 ;hides 'DEY' 88 DEY 30 FC BMI *-2 |
Clobbers Y, and Z&N |
6 bytes | |
48 PHA A2 06 LDX #6 CA DEX D0 FD BNE *-1 |
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 A6 LDX $A6 A2 06 LDX #6 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
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 |
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 |
EA NOP F6 F6 INC $F6,X 00 00... BRK 0 × 2 |
Clobbers Z&N; requires @zptemp, dummy interrupt handler, and writable $00-$FF; and writes in stack |
08 PHP 28 PLP 00 00 BRK 0 20 xx xx JSR @rts14 |
Requires dummy interrupt handler, @rts12, and @rts14; 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 |
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 |
EA NOP 48 ... PHA × 2 00 00... BRK 0 × 2 |
Clobbers S; requires dummy interrupt handler; and writes in stack |
8 bytes | |
C5 C5 CMP $C5 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 68 PLA |
Clobbers Z&N, and C; and writes in stack |
08 PHP A5 A5 LDA $A5 A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 28 PLP |
Clobbers A; and writes in stack |
EA ... NOP × 2 20 xx xx JSR @rts15× 2 |
Requires @rts12, and @rts15; and writes in stack |
F6 F6 INC $F6,X 20 xx xx JSR @rts14× 2 |
Clobbers Z&N; requires @zptemp, @rts12, @rts14, and writable $00-$FF; 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 @rts12, and @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 |
10 bytes | |
F6 F6 INC $F6,X 68 PLA \ × 4 48 PHA / |
Clobbers A, and Z&N; and requires @zptemp, and writable $00-$FF |
11 bytes | |
EA ... NOP × 3 68 PLA \ × 4 48 PHA / |
Clobbers A, and Z&N |
12 bytes | |
26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 2 76 36 ROR $36,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 | |
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 |
A0 88 LDY #136 ;hides 'DEY' 88 ... DEY × 2 30 FB BMI *-3 |
Clobbers Y, and Z&N |
A2 F8 LDX #248 ;hides 'SED' E8 ... INX × 2 D0 FB BNE *-3 |
Clobbers X, Z&N, and D |
68 PLA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 90 FD BCC *-1 |
Clobbers A, S, Z&N, and C |
68 PLA A2 06 LDX #6 CA DEX D0 FD BNE *-1 |
Clobbers A, X, S, and Z&N |
7 bytes | |
EA ... NOP × 2 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 90 FD BCC *-1 |
Clobbers A, Z&N, and C |
EA ... NOP × 2 A2 06 LDX #6 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
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 |
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 |
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 |
8 bytes | |
EA ... NOP × 2 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 68 PLA |
Clobbers Z&N, and C; and writes in stack |
EA ... NOP × 2 08 PHP A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 28 PLP |
Clobbers A; and writes in stack |
EA NOP 08 PHP A2 05 LDX #5 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
EA NOP 08 PHP A0 05 LDY #5 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; and writes in stack |
08 PHP 28 PLP 20 xx xx JSR @rts14× 2 |
Requires @rts12, and @rts14; and writes in stack |
E6 xx INC @zptemp 20 xx xx JSR @rts15× 2 |
Clobbers Z&N; requires @zptemp, @rts12, and @rts15; and writes in stack |
EA NOP 48 PHA 20 xx xx JSR @rts15× 2 |
Clobbers S; requires @rts12, and @rts15; and writes in stack |
9 bytes | |
08 PHP 48 PHA 18 CLC A9 2A LDA #$2A ;hides 'ROL A' 90 FD BCC *-1 68 PLA 28 PLP |
Writes in stack |
68 PLA 48 PHA 68 ... PLA × 7 |
Clobbers A, S, and Z&N |
10 bytes | |
68 PLA \ × 5 48 PHA / |
Clobbers A, and Z&N |
12 bytes | |
E6 xx INC @zptemp F6 F6... INC $F6,X× 5 |
Clobbers Z&N; and requires @zptemp, and writable $00-$FF |
13 bytes | |
E6 xx INC @zptemp EA ... NOP × 3 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires @zptemp |
EA ... NOP × 2 FE 00 02 INC $0200,X 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $200-$2FF |
EA ... NOP × 2 FE 00 03 INC $0300,X 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $300-$3FF |
EA ... NOP × 2 FE 00 04 INC $0400,X 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $400-$4FF |
EA ... NOP × 2 FE 00 05 INC $0500,X 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $500-$5FF |
EA ... NOP × 2 FE 00 06 INC $0600,X 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $600-$6FF |
EA ... NOP × 2 FE 00 07 INC $0700,X 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $700-$7FF |
14 bytes | |
C5 C5 CMP $C5 36 36 ROL $36,X 76 36 ROR $36,X 26 26 ROL $26 \ × 2 66 26 ROR $26 / |
Clobbers Z&N, and C |
24 24 BIT $24 36 36 ROL $36,X 76 36 ROR $36,X 26 26 ROL $26 \ × 2 66 26 ROR $26 / |
Clobbers Z&N, and V |
04 04 NOP $04 36 36 ROL $36,X 76 36 ROR $36,X 26 26 ROL $26 \ × 2 66 26 ROR $26 / |
Clobbers Z&N; and requires support for unofficial opcodes |
15 bytes | |
4C xx xx JMP *+3 36 36 ROL $36,X 76 36 ROR $36,X 26 26 ROL $26 \ × 2 66 26 ROR $26 / |
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 |
85 xx STA @zptemp EA ... NOP × 16 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 16 |
Requires support for unofficial opcodes |
19 bytes | |
4C xx xx JMP *+3 EA ... NOP × 16 |
Not relocatable code |
36 cycles
5 bytes | |
---|---|
A9 E9 LDA #$E9 ;hides 'SBC #$2A' 2A ROL A ;first loop only B0 FC BCS *-2 |
Clobbers A, Z&N, C, and V |
A2 07 LDX #7 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
A0 07 LDY #7 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
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 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 |
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 08 PHP 28 PLP 00 00... BRK 0 × 2 |
Clobbers S; requires dummy interrupt handler; and writes in stack |
8 bytes | |
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 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 A2 04 LDX #4 EA NOP CA DEX D0 FC BNE *-2 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 04 LDY #4 EA NOP 88 DEY D0 FC BNE *-2 28 PLP |
Clobbers Y; and writes in stack |
F6 F6 INC $F6,X 20 xx xx JSR @rts15× 2 |
Clobbers Z&N; requires @zptemp, @rts12, @rts15, and writable $00-$FF; and writes in stack |
08 PHP 28 PLP 20 xx xx JSR @rts14 20 xx xx JSR @rts15 |
Requires @rts12, @rts14, and @rts15; and writes in stack |
08 PHP 24 24 BIT $24 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 @rts12, and @rts15; and writes in stack |
9 bytes | |
20 xx xx JSR @rts12× 3 |
Requires @rts12; and writes in stack |
68 ... PLA × 9 |
Clobbers A, S, and Z&N |
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 |
11 bytes | |
EA NOP F6 F6 INC $F6,X 68 PLA \ × 4 48 PHA / |
Clobbers A, and Z&N; and requires @zptemp, and writable $00-$FF |
12 bytes | |
36 36 ROL $36,X \ × 3 76 36 ROR $36,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 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 10 FC BPL *-2 |
Clobbers A, S, Z&N, and C; and writes in stack |
48 PHA A0 88 LDY #136 ;hides 'DEY' 88 DEY 30 FC BMI *-2 |
Clobbers Y, S, and Z&N; and writes in stack |
A2 04 LDX #4 68 PLA CA DEX D0 FC BNE *-2 |
Clobbers A, X, S, and Z&N |
A0 04 LDY #4 68 PLA 88 DEY D0 FC BNE *-2 |
Clobbers A, Y, S, and Z&N |
7 bytes | |
A5 A5 LDA $A5 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 10 FC BPL *-2 |
Clobbers A, Z&N, and C |
A2 04 LDX #4 EA ... NOP × 2 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A0 04 LDY #4 EA ... NOP × 2 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
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 |
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 |
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 |
8 bytes | |
F6 F6 INC $F6,X 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 68 PLA |
Clobbers Z&N, and C; requires @zptemp, and writable $00-$FF; and writes in stack |
08 PHP F6 F6 INC $F6,X A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 28 PLP |
Clobbers A; requires @zptemp, and writable $00-$FF; and writes in stack |
08 PHP 28 PLP 20 xx xx JSR @rts15× 2 |
Requires @rts12, and @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 × 3 A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 68 PLA |
Clobbers S, Z&N, and C; 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 |
9 bytes | |
EA ... NOP × 3 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 68 PLA |
Clobbers Z&N, and C; and writes in stack |
EA ... NOP × 3 08 PHP A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 28 PLP |
Clobbers A; and writes in stack |
EA ... NOP × 2 08 PHP A2 05 LDX #5 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
EA ... NOP × 2 08 PHP A0 05 LDY #5 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; and writes in stack |
EA NOP 08 PHP 28 PLP 20 xx xx JSR @rts14× 2 |
Requires @rts12, and @rts14; and writes in stack |
10 bytes | |
08 PHP 48 PHA 18 ... CLC × 2 A9 2A LDA #$2A ;hides 'ROL A' 90 FD BCC *-1 68 PLA 28 PLP |
Writes in stack |
EA NOP 68 PLA 48 PHA 68 ... PLA × 7 |
Clobbers A, S, and Z&N |
11 bytes | |
EA NOP 68 PLA \ × 5 48 PHA / |
Clobbers A, and Z&N |
13 bytes | |
EA NOP E6 xx INC @zptemp F6 F6... INC $F6,X× 5 |
Clobbers Z&N; and requires @zptemp, and writable $00-$FF |
14 bytes | |
C5 C5 CMP $C5 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N, and C |
24 24 BIT $24 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N, and V |
E6 xx INC @zptemp 36 36 ROL $36,X 76 36 ROR $36,X 26 26 ROL $26 \ × 2 66 26 ROR $26 / |
Clobbers Z&N; and requires @zptemp |
EA ... NOP × 3 FE 00 02 INC $0200,X 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $200-$2FF |
EA ... NOP × 3 FE 00 03 INC $0300,X 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $300-$3FF |
EA ... NOP × 3 FE 00 04 INC $0400,X 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $400-$4FF |
EA ... NOP × 3 FE 00 05 INC $0500,X 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $500-$5FF |
EA ... NOP × 3 FE 00 06 INC $0600,X 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $600-$6FF |
EA ... NOP × 3 FE 00 07 INC $0700,X 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $700-$7FF |
04 04 NOP $04 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
15 bytes | |
4C xx xx JMP *+3 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 2 76 36 ROR $36,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 |
85 xx STA @zptemp EA ... NOP × 17 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 17 |
Requires support for unofficial opcodes |
20 bytes | |
4C xx xx JMP *+3 EA ... NOP × 17 |
Not relocatable code |
38 cycles
5 bytes | |
---|---|
A9 LDA #11 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
38 SEC A9 69 LDA #$69 ;hides 'ADC #$EA' EA NOP ;first loop only 10 FC BPL *-2 |
Clobbers A, Z&N, C, and V |
EA NOP A2 07 LDX #7 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
EA NOP A0 07 LDY #7 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
68 PLA A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 10 FC BPL *-2 |
Clobbers A, S, Z&N, and C |
7 bytes | |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 90 FD BCC *-1 68 PLA |
Clobbers Z&N, and C; and writes in stack |
EA ... NOP × 2 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 10 FC BPL *-2 |
Clobbers A, Z&N, and C |
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 A2 06 LDX #6 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 06 LDY #6 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; and writes in stack |
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 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers A, and Z&N |
13 bytes | |
EA NOP 36 36 ROL $36,X \ × 3 76 36 ROR $36,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 A2 07 LDX #7 CA DEX D0 FD BNE *-1 |
Clobbers X, S, and Z&N; and writes in stack |
48 PHA A0 07 LDY #7 88 DEY D0 FD BNE *-1 |
Clobbers Y, S, and Z&N; and writes in stack |
7 bytes | |
A6 A6 LDX $A6 A2 07 LDX #7 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
A4 A4 LDY $A4 A0 07 LDY #7 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
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 |
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 |
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 @rts12, and @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 | |
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 |
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 |
08 PHP A2 05 LDX #5 CA DEX D0 FD BNE *-1 F6 xx INC @zptemp,X 28 PLP |
Clobbers X; requires @zptemp; and writes in stack |
08 PHP F6 F6 INC $F6,X A0 05 LDY #5 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; requires @zptemp, and writable $00-$FF; and writes in stack |
20 xx xx JSR @rts15 20 xx xx JSR @rts12× 2 |
Requires @rts12, and @rts15; 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 |
48 ... PHA × 2 08 PHP A2 05 LDX #5 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X, and S; and writes in stack |
48 ... PHA × 2 08 PHP A0 05 LDY #5 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y, and S; and writes in stack |
10 bytes | |
08 PHP A6 A6 LDX $A6 A2 04 LDX #4 EA NOP CA DEX D0 FC BNE *-2 28 PLP |
Clobbers X; and writes in stack |
08 PHP A4 A4 LDY $A4 A0 04 LDY #4 EA NOP 88 DEY D0 FC BNE *-2 28 PLP |
Clobbers Y; and writes in stack |
EA ... NOP × 2 08 PHP 28 PLP 20 xx xx JSR @rts14× 2 |
Requires @rts12, and @rts14; and writes in stack |
68 PLA 48 PHA 68 ... PLA × 8 |
Clobbers A, S, and Z&N |
48 PHA 20 xx xx JSR @rts12× 3 |
Clobbers S; requires @rts12; and writes in stack |
11 bytes | |
EA ... NOP × 2 08 PHP 48 PHA 18 CLC A9 2A LDA #$2A ;hides 'ROL A' 90 FD BCC *-1 68 PLA 28 PLP |
Writes in stack |
12 bytes | |
EA ... NOP × 2 68 PLA \ × 5 48 PHA / |
Clobbers A, and Z&N |
14 bytes | |
C5 C5 CMP $C5 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N, and C |
24 24 BIT $24 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N, and V |
E6 xx INC @zptemp 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires @zptemp |
04 04 NOP $04 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
15 bytes | |
4C xx xx JMP *+3 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N; and not relocatable code |
FE 00 02 INC $0200,X 36 36 ROL $36,X 76 36 ROR $36,X 26 26 ROL $26 \ × 2 66 26 ROR $26 / |
Clobbers Z&N; and requires writable $200-$2FF |
FE 00 03 INC $0300,X 36 36 ROL $36,X 76 36 ROR $36,X 26 26 ROL $26 \ × 2 66 26 ROR $26 / |
Clobbers Z&N; and requires writable $300-$3FF |
FE 00 04 INC $0400,X 36 36 ROL $36,X 76 36 ROR $36,X 26 26 ROL $26 \ × 2 66 26 ROR $26 / |
Clobbers Z&N; and requires writable $400-$4FF |
FE 00 05 INC $0500,X 36 36 ROL $36,X 76 36 ROR $36,X 26 26 ROL $26 \ × 2 66 26 ROR $26 / |
Clobbers Z&N; and requires writable $500-$5FF |
FE 00 06 INC $0600,X 36 36 ROL $36,X 76 36 ROR $36,X 26 26 ROL $26 \ × 2 66 26 ROR $26 / |
Clobbers Z&N; and requires writable $600-$6FF |
FE 00 07 INC $0700,X 36 36 ROL $36,X 76 36 ROR $36,X 26 26 ROL $26 \ × 2 66 26 ROR $26 / |
Clobbers Z&N; and requires writable $700-$7FF |
20 bytes | |
18 ... CLC × 18 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 18 50 00 BVC *+2 |
Clobbers V |
85 xx STA @zptemp EA ... NOP × 18 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 18 |
Requires support for unofficial opcodes |
21 bytes | |
4C xx xx JMP *+3 EA ... NOP × 18 |
Not relocatable code |
40 cycles
5 bytes | |
---|---|
A9 LDA #13 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A2 05 LDX #5 ;hides 'ORA zp' EA NOP CA DEX D0 FB BNE *-3 |
Clobbers A, X, and Z&N |
A0 05 LDY #5 ;hides 'ORA zp' EA NOP 88 DEY D0 FB BNE *-3 |
Clobbers A, Y, and Z&N |
68 PLA A9 E9 LDA #$E9 ;hides 'SBC #$2A' 2A ROL A ;first loop only B0 FC BCS *-2 |
Clobbers A, S, Z&N, C, and V |
7 bytes | |
EA NOP 38 SEC A9 69 LDA #$69 ;hides 'ADC #$EA' EA NOP ;first loop only 10 FC BPL *-2 |
Clobbers A, Z&N, C, and V |
EA ... NOP × 2 A2 07 LDX #7 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
EA ... NOP × 2 A0 07 LDY #7 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
F6 F6 INC $F6,X A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 10 FC BPL *-2 |
Clobbers A, Z&N, and C; and requires @zptemp, and writable $00-$FF |
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 |
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 |
00 00... BRK 0 × 2 20 xx xx JSR @rts14 |
Requires dummy interrupt handler, @rts12, 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 |
8 bytes | |
48 PHA 18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' 90 FD BCC *-1 68 PLA |
Clobbers Z&N, and C; and writes in stack |
EA ... NOP × 3 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 10 FC BPL *-2 |
Clobbers A, Z&N, and C |
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 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
EA NOP 08 PHP A0 06 LDY #6 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; and writes in stack |
00 00... BRK 0 × 2 08 PHP \ × 2 28 PLP / |
Requires dummy interrupt handler; and writes in stack |
9 bytes | |
08 PHP 48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 68 PLA 28 PLP |
Writes in stack |
10 bytes | |
68 ... PLA × 10 |
Clobbers A, S, and Z&N |
12 bytes | |
36 36 ROL $36,X 76 36 ROR $36,X 68 PLA \ × 4 48 PHA / |
Clobbers A, and Z&N |
14 bytes | |
EA ... NOP × 2 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N |
20 bytes | |
EA ... NOP × 20 |
No requirements |
41 cycles
5 bytes | |
---|---|
18 CLC A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 |
Clobbers A, Z&N, and C |
A2 08 LDX #8 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
A0 08 LDY #8 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
7 bytes | |
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 |
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 |
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 FD BNE *-1 28 PLP |
Clobbers X, and S; and writes in stack |
9 bytes | |
08 PHP A6 A6 LDX $A6 A2 06 LDX #6 CA DEX D0 FD BNE *-1 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 |
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 |
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 |
10 bytes | |
08 PHP C5 C5 CMP $C5 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 68 PLA 28 PLP |
Writes in stack |
11 bytes | |
EA NOP 68 PLA 48 PHA 68 ... PLA × 8 |
Clobbers A, S, and Z&N |
12 bytes | |
F6 F6 INC $F6,X 68 PLA \ × 5 48 PHA / |
Clobbers A, and Z&N; and requires @zptemp, and writable $00-$FF |
13 bytes | |
EA ... NOP × 3 68 PLA \ × 5 48 PHA / |
Clobbers A, and Z&N |
14 bytes | |
E6 xx INC @zptemp 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N; and requires @zptemp |
15 bytes | |
EA NOP C5 C5 CMP $C5 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N, and C |
EA NOP 24 24 BIT $24 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N, and V |
FE 00 02 INC $0200,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $200-$2FF |
FE 00 03 INC $0300,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $300-$3FF |
FE 00 04 INC $0400,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $400-$4FF |
FE 00 05 INC $0500,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $500-$5FF |
FE 00 06 INC $0600,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $600-$6FF |
FE 00 07 INC $0700,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $700-$7FF |
EA NOP 04 04 NOP $04 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
16 bytes | |
EA NOP 4C xx xx JMP *+3 36 36 ROL $36,X \ × 3 76 36 ROR $36,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 |
85 xx STA @zptemp EA ... NOP × 19 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 19 |
Requires support for unofficial opcodes |
22 bytes | |
4C xx xx JMP *+3 EA ... NOP × 19 |
Not relocatable code |
42 cycles
5 bytes | |
---|---|
A9 LDA #15 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 |
Clobbers A, S, Z&N, and C; and writes in stack |
6 bytes | |
A5 A5 LDA $A5 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 |
A2 07 LDX #7 CA DEX D0 FD BNE *-1 F6 xx INC @zptemp,X |
Clobbers X, and Z&N; and requires @zptemp |
F6 F6 INC $F6,X A0 07 LDY #7 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N; and requires @zptemp, and writable $00-$FF |
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 |
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 × 2 A2 07 LDX #7 CA DEX D0 FD BNE *-1 |
Clobbers X, S, and Z&N; and writes in stack |
48 ... PHA × 2 A0 07 LDY #7 88 DEY D0 FD BNE *-1 |
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 |
8 bytes | |
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 |
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 |
EA ... NOP × 3 A2 07 LDX #7 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
EA ... NOP × 3 A0 07 LDY #7 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
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 |
24 24 BIT $24 00 00... BRK 0 × 3 |
Clobbers Z&N, and V; requires dummy interrupt handler; and writes in stack |
85 xx STA @zptemp 00 00... BRK 0 × 3 |
Requires @zptemp, and dummy interrupt handler; and writes in stack |
EA NOP 00 00... BRK 0 × 2 20 xx xx JSR @rts14 |
Requires dummy interrupt handler, @rts12, and @rts14; and writes in stack |
04 04 NOP $04 00 00... BRK 0 × 3 |
Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack |
9 bytes | |
20 xx xx JSR @rts14× 3 |
Requires @rts12, and @rts14; and writes in stack |
20 xx xx JSR @rts12 20 xx xx JSR @rts15× 2 |
Requires @rts12, and @rts15; 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 |
EA NOP 00 00... BRK 0 × 2 08 PHP \ × 2 28 PLP / |
Requires dummy interrupt handler; and writes in stack |
10 bytes | |
EA ... NOP × 2 08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 68 PLA 28 PLP |
Writes in stack |
11 bytes | |
EA NOP 68 ... PLA × 10 |
Clobbers A, S, and Z&N |
12 bytes | |
68 PLA \ × 6 48 PHA / |
Clobbers A, and Z&N |
14 bytes | |
F6 F6... INC $F6,X× 7 |
Clobbers Z&N; and requires @zptemp, and writable $00-$FF |
15 bytes | |
EA ... NOP × 3 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N |
21 bytes | |
EA ... NOP × 21 |
No requirements |
43 cycles
5 bytes | |
---|---|
A9 LDA #16 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
68 PLA A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 |
Clobbers A, S, Z&N, and C |
6 bytes | |
EA ... NOP × 2 A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 |
Clobbers A, Z&N, and C |
A2 06 LDX #6 EA NOP CA DEX D0 FC BNE *-2 |
Clobbers X, and Z&N |
A0 06 LDY #6 EA NOP 88 DEY D0 FC BNE *-2 |
Clobbers Y, and Z&N |
7 bytes | |
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 |
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 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 07 LDY #7 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; and writes in stack |
8 bytes | |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 10 FC BPL *-2 68 PLA |
Clobbers Z&N, and C; and writes in stack |
EA ... NOP × 2 00 00... BRK 0 × 3 |
Requires dummy interrupt handler; and writes in stack |
9 bytes | |
20 xx xx JSR @rts15 20 xx xx JSR @rts14× 2 |
Requires @rts12, @rts14, and @rts15; and writes in stack |
08 PHP 48 PHA A9 LDA #2 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP 48 PHA 18 CLC A9 2A LDA #$2A ;hides 'ROL A' EA NOP 90 FC BCC *-2 68 PLA 28 PLP |
Writes in stack |
11 bytes | |
68 PLA 48 PHA 68 ... PLA × 9 |
Clobbers A, S, and Z&N |
13 bytes | |
A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 8 10 F4 BPL *-10 |
Clobbers A, and Z&N |
15 bytes | |
EA NOP E6 xx INC @zptemp 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N; and requires @zptemp |
FE 00 02 INC $0200,X 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $200-$2FF |
FE 00 03 INC $0300,X 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $300-$3FF |
FE 00 04 INC $0400,X 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $400-$4FF |
FE 00 05 INC $0500,X 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $500-$5FF |
FE 00 06 INC $0600,X 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $600-$6FF |
FE 00 07 INC $0700,X 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $700-$7FF |
16 bytes | |
EA ... NOP × 2 C5 C5 CMP $C5 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N, and C |
EA ... NOP × 2 24 24 BIT $24 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N, and V |
EA ... NOP × 2 04 04 NOP $04 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
17 bytes | |
EA ... NOP × 2 4C xx xx JMP *+3 36 36 ROL $36,X \ × 3 76 36 ROR $36,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 |
85 xx STA @zptemp EA ... NOP × 20 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 20 |
Requires support for unofficial opcodes |
23 bytes | |
4C xx xx JMP *+3 EA ... NOP × 20 |
Not relocatable code |
44 cycles
5 bytes | |
---|---|
A9 LDA #17 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC 10 FB BPL *-3 |
Clobbers A, Z&N, and C |
A0 88 LDY #136 ;hides 'DEY' EA NOP 88 DEY 30 FB BMI *-3 |
Clobbers Y, and Z&N |
48 PHA A2 08 LDX #8 CA DEX D0 FD BNE *-1 |
Clobbers X, S, and Z&N; and writes in stack |
7 bytes | |
A6 A6 LDX $A6 A2 08 LDX #8 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
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 |
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 |
8 bytes | |
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 |
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 |
E6 xx INC @zptemp 00 00... BRK 0 × 3 |
Clobbers Z&N; requires @zptemp, and dummy interrupt handler; 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 |
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 |
EA NOP 48 PHA 00 00... BRK 0 × 3 |
Clobbers S; requires dummy interrupt handler; and writes in stack |
9 bytes | |
C5 C5 CMP $C5 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 |
08 PHP A5 A5 LDA $A5 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 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 04 LDY #4 EA ... NOP × 2 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
20 xx xx JSR @rts14 20 xx xx JSR @rts15× 2 |
Requires @rts12, @rts14, and @rts15; 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 |
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 85 xx STA @zptemp 00 00... BRK 0 × 3 |
Requires @zptemp, and dummy interrupt handler; and writes in stack |
EA ... NOP × 2 00 00... BRK 0 × 2 20 xx xx JSR @rts14 |
Requires dummy interrupt handler, @rts12, and @rts14; and writes in stack |
EA NOP 04 04 NOP $04 00 00... BRK 0 × 3 |
Requires dummy interrupt handler, and support for unofficial opcodes; and writes in stack |
10 bytes | |
08 PHP F6 F6 INC $F6,X 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 68 PLA 28 PLP |
Requires @zptemp, and writable $00-$FF; and writes in stack |
EA NOP 20 xx xx JSR @rts14× 3 |
Requires @rts12, and @rts14; and writes in stack |
EA NOP 20 xx xx JSR @rts12 20 xx xx JSR @rts15× 2 |
Requires @rts12, and @rts15; and writes in stack |
EA ... NOP × 2 00 00... BRK 0 × 2 08 PHP \ × 2 28 PLP / |
Requires dummy interrupt handler; and writes in stack |
48 ... PHA × 2 08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 68 PLA 28 PLP |
Clobbers S; and writes in stack |
11 bytes | |
EA ... NOP × 3 08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 68 PLA 28 PLP |
Writes in stack |
68 ... PLA × 11 |
Clobbers A, S, and Z&N |
13 bytes | |
EA NOP 68 PLA \ × 6 48 PHA / |
Clobbers A, and Z&N |
15 bytes | |
EA NOP F6 F6... INC $F6,X× 7 |
Clobbers Z&N; and requires @zptemp, and writable $00-$FF |
16 bytes | |
26 26 ROL $26 \ × 2 66 26 ROR $26 / 36 36 ROL $36,X \ × 2 76 36 ROR $36,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 | |
F6 F6 INC $F6,X A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 |
Clobbers A, Z&N, and C; and requires @zptemp, and writable $00-$FF |
EA NOP 68 PLA A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 |
Clobbers A, S, Z&N, and C |
68 PLA A2 08 LDX #8 CA DEX D0 FD BNE *-1 |
Clobbers A, X, S, and Z&N |
68 PLA A0 08 LDY #8 88 DEY D0 FD BNE *-1 |
Clobbers A, Y, S, and Z&N |
7 bytes | |
EA ... NOP × 3 A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 |
Clobbers A, Z&N, and C |
EA ... NOP × 2 A2 08 LDX #8 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
EA ... NOP × 2 A0 08 LDY #8 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
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 |
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 |
8 bytes | |
48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$EA' EA NOP ;first loop only 10 FC BPL *-2 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
08 PHP 38 SEC A9 69 LDA #$69 ;hides 'ADC #$EA' EA NOP ;first loop only 10 FC BPL *-2 28 PLP |
Clobbers A; and writes in stack |
EA NOP 08 PHP A2 07 LDX #7 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
EA NOP 08 PHP A0 07 LDY #7 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; and writes in stack |
F6 F6 INC $F6,X 00 00... BRK 0 × 3 |
Clobbers Z&N; requires @zptemp, dummy interrupt handler, and writable $00-$FF; and writes in stack |
48 ... PHA × 2 00 00... BRK 0 × 3 |
Clobbers S; requires dummy interrupt handler; and writes in stack |
9 bytes | |
08 PHP 48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 90 FD BCC *-1 68 PLA 28 PLP |
Writes in stack |
12 bytes | |
EA NOP 68 PLA 48 PHA 68 ... PLA × 9 |
Clobbers A, S, and Z&N |
14 bytes | |
36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 68 PLA \ × 3 48 PHA / |
Clobbers A, and Z&N |
16 bytes | |
EA ... NOP × 2 E6 xx INC @zptemp 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N; and requires @zptemp |
EA NOP FE 00 02 INC $0200,X 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $200-$2FF |
EA NOP FE 00 03 INC $0300,X 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $300-$3FF |
EA NOP FE 00 04 INC $0400,X 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $400-$4FF |
EA NOP FE 00 05 INC $0500,X 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $500-$5FF |
EA NOP FE 00 06 INC $0600,X 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $600-$6FF |
EA NOP FE 00 07 INC $0700,X 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $700-$7FF |
17 bytes | |
EA ... NOP × 3 C5 C5 CMP $C5 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N, and C |
EA ... NOP × 3 24 24 BIT $24 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N, and V |
EA ... NOP × 3 04 04 NOP $04 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
18 bytes | |
26 26... ROL $26 × 9 |
Clobbers Z&N |
23 bytes | |
18 ... CLC × 21 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 21 50 00 BVC *+2 |
Clobbers V |
85 xx STA @zptemp EA ... NOP × 21 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 21 |
Requires support for unofficial opcodes |
24 bytes | |
4C xx xx JMP *+3 EA ... NOP × 21 |
Not relocatable code |
46 cycles
5 bytes | |
---|---|
A2 09 LDX #9 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
A0 09 LDY #9 88 DEY D0 FD BNE *-1 |
Clobbers Y, 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 | |
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 |
08 PHP A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 28 PLP |
Clobbers A; and writes in stack |
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 FD BNE *-1 28 PLP |
Clobbers X, and S; and writes in stack |
48 PHA 08 PHP A0 07 LDY #7 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y, and S; and writes in stack |
9 bytes | |
08 PHP A6 A6 LDX $A6 A2 07 LDX #7 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
08 PHP A4 A4 LDY $A4 A0 07 LDY #7 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; and writes in stack |
08 PHP 48 PHA A9 LDA #5 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
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 @rts12, and @rts14; and writes in stack |
EA NOP 20 xx xx JSR @rts14 20 xx xx JSR @rts15× 2 |
Requires @rts12, @rts14, and @rts15; 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 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 3 76 36 ROR $36,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; and unsafe for interrupts |
A2 08 LDX #8 CA DEX D0 FD BNE *-1 F6 xx INC @zptemp,X |
Clobbers X, and Z&N; and requires @zptemp |
EA NOP F6 F6 INC $F6,X A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 |
Clobbers A, Z&N, and C; and requires @zptemp, and writable $00-$FF |
F6 F6 INC $F6,X A0 08 LDY #8 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N; and requires @zptemp, and writable $00-$FF |
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 |
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 |
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 |
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 |
48 ... PHA × 2 A2 08 LDX #8 CA DEX D0 FD BNE *-1 |
Clobbers X, S, and Z&N; and writes in stack |
48 ... PHA × 2 A0 08 LDY #8 88 DEY D0 FD BNE *-1 |
Clobbers Y, S, and Z&N; and writes in stack |
EA NOP 68 PLA A2 08 LDX #8 CA DEX D0 FD BNE *-1 |
Clobbers A, X, S, and Z&N |
EA NOP 68 PLA A0 08 LDY #8 88 DEY D0 FD BNE *-1 |
Clobbers A, Y, S, and Z&N |
8 bytes | |
A5 A5 LDA $A5 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC 10 FB BPL *-3 |
Clobbers A, Z&N, and C |
EA ... NOP × 3 A2 08 LDX #8 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
EA ... NOP × 3 A0 08 LDY #8 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
08 PHP A2 05 LDX #5 ;hides 'ORA zp' EA NOP CA DEX D0 FB BNE *-3 28 PLP |
Clobbers A, and X; and writes in stack |
08 PHP A0 05 LDY #5 ;hides 'ORA zp' EA NOP 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers A, and Y; and writes in stack |
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 48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$EA' EA NOP ;first loop only 10 FC BPL *-2 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
EA NOP 08 PHP 38 SEC A9 69 LDA #$69 ;hides 'ADC #$EA' EA NOP ;first loop only 10 FC BPL *-2 28 PLP |
Clobbers A; and writes in stack |
EA ... NOP × 2 08 PHP A2 07 LDX #7 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
EA ... NOP × 2 08 PHP A0 07 LDY #7 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; and writes in stack |
F6 F6 INC $F6,X 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 10 FC BPL *-2 68 PLA |
Clobbers Z&N, and C; requires @zptemp, and writable $00-$FF; 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 |
EA NOP F6 F6 INC $F6,X 00 00... BRK 0 × 3 |
Clobbers Z&N; requires @zptemp, dummy interrupt handler, and writable $00-$FF; and writes in stack |
08 PHP 28 PLP 00 00... BRK 0 × 2 20 xx xx JSR @rts14 |
Requires dummy interrupt handler, @rts12, 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 |
10 bytes | |
08 PHP 48 PHA 18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' 90 FD BCC *-1 68 PLA 28 PLP |
Writes in stack |
12 bytes | |
68 PLA 48 PHA 68 ... PLA × 10 |
Clobbers A, S, and Z&N |
14 bytes | |
36 36 ROL $36,X 76 36 ROR $36,X 68 PLA \ × 5 48 PHA / |
Clobbers A, and Z&N |
16 bytes | |
E6 xx INC @zptemp F6 F6... INC $F6,X× 7 |
Clobbers Z&N; and requires @zptemp, and writable $00-$FF |
17 bytes | |
EA ... NOP × 3 E6 xx INC @zptemp 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N; and requires @zptemp |
EA ... NOP × 2 FE 00 02 INC $0200,X 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $200-$2FF |
EA ... NOP × 2 FE 00 03 INC $0300,X 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $300-$3FF |
EA ... NOP × 2 FE 00 04 INC $0400,X 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $400-$4FF |
EA ... NOP × 2 FE 00 05 INC $0500,X 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $500-$5FF |
EA ... NOP × 2 FE 00 06 INC $0600,X 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $600-$6FF |
EA ... NOP × 2 FE 00 07 INC $0700,X 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $700-$7FF |
18 bytes | |
C5 C5 CMP $C5 26 26 ROL $26 \ × 2 66 26 ROR $26 / 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N, and C |
24 24 BIT $24 26 26 ROL $26 \ × 2 66 26 ROR $26 / 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N, and V |
04 04 NOP $04 26 26 ROL $26 \ × 2 66 26 ROR $26 / 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
19 bytes | |
EA NOP 26 26... ROL $26 × 9 |
Clobbers Z&N |
24 bytes | |
18 ... CLC × 22 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 22 50 00 BVC *+2 |
Clobbers V |
85 xx STA @zptemp EA ... NOP × 22 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 22 |
Requires support for unofficial opcodes |
25 bytes | |
4C xx xx JMP *+3 EA ... NOP × 22 |
Not relocatable code |
48 cycles
5 bytes | |
---|---|
A9 LDA #21 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
EA NOP A2 09 LDX #9 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
EA NOP A0 09 LDY #9 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
7 bytes | |
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 |
08 PHP 18 CLC A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 28 PLP |
Clobbers A; and writes in stack |
08 PHP A2 08 LDX #8 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 08 LDY #8 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; and writes in stack |
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 |
14 bytes | |
F6 F6 INC $F6,X 68 PLA \ × 6 48 PHA / |
Clobbers A, and Z&N; and requires @zptemp, and writable $00-$FF |
15 bytes | |
EA ... NOP × 3 68 PLA \ × 6 48 PHA / |
Clobbers A, and Z&N |
16 bytes | |
36 36 ROL $36,X \ × 4 76 36 ROR $36,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 | |
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 |
A2 06 LDX #6 48 PHA CA DEX D0 FC BNE *-2 |
Clobbers X, S, and Z&N; and writes in stack |
7 bytes | |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 24 24 BIT $24 90 FB BCC *-3 |
Clobbers A, Z&N, C, and V |
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 |
A6 A6 LDX $A6 A2 09 LDX #9 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
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 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 |
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 |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 04 04 NOP $04 90 FB BCC *-3 |
Clobbers A, Z&N, and C; and requires support for unofficial opcodes |
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 |
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 |
8 bytes | |
C5 C5 CMP $C5 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 26 ROL $26 66 26 ROR $26 A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 |
Clobbers A, Z&N, and C |
08 PHP A5 A5 LDA $A5 A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 28 PLP |
Clobbers A; and writes in stack |
9 bytes | |
08 PHP A2 07 LDX #7 CA DEX D0 FD BNE *-1 F6 xx INC @zptemp,X 28 PLP |
Clobbers X; requires @zptemp; and writes in stack |
08 PHP F6 F6 INC $F6,X A0 07 LDY #7 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; requires @zptemp, and writable $00-$FF; 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 |
48 ... PHA × 2 08 PHP A2 07 LDX #7 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X, and S; and writes in stack |
48 ... PHA × 2 08 PHP A0 07 LDY #7 88 DEY D0 FD BNE *-1 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 |
10 bytes | |
08 PHP 48 PHA A9 2A LDA #$2A ;hides 'ROL A' 08 PHP 28 PLP 10 FB BPL *-3 68 PLA 28 PLP |
Writes in stack |
13 bytes | |
EA NOP 68 PLA 48 PHA 68 ... PLA × 10 |
Clobbers A, S, and Z&N |
14 bytes | |
68 PLA \ × 7 48 PHA / |
Clobbers A, and Z&N |
17 bytes | |
EA NOP E6 xx INC @zptemp F6 F6... INC $F6,X× 7 |
Clobbers Z&N; and requires @zptemp, and writable $00-$FF |
18 bytes | |
C5 C5 CMP $C5 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N, and C |
24 24 BIT $24 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N, and V |
E6 xx INC @zptemp 26 26 ROL $26 \ × 2 66 26 ROR $26 / 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires @zptemp |
EA ... NOP × 3 FE 00 02 INC $0200,X 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $200-$2FF |
EA ... NOP × 3 FE 00 03 INC $0300,X 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $300-$3FF |
EA ... NOP × 3 FE 00 04 INC $0400,X 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $400-$4FF |
EA ... NOP × 3 FE 00 05 INC $0500,X 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $500-$5FF |
EA ... NOP × 3 FE 00 06 INC $0600,X 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $600-$6FF |
EA ... NOP × 3 FE 00 07 INC $0700,X 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $700-$7FF |
04 04 NOP $04 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
19 bytes | |
4C xx xx JMP *+3 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N; and not relocatable code |
20 bytes | |
EA ... NOP × 2 26 26... ROL $26 × 9 |
Clobbers Z&N |
25 bytes | |
18 ... CLC × 23 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 23 50 00 BVC *+2 |
Clobbers V |
85 xx STA @zptemp EA ... NOP × 23 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 23 |
Requires support for unofficial opcodes |
26 bytes | |
4C xx xx JMP *+3 EA ... NOP × 23 |
Not relocatable code |
50 cycles
5 bytes | |
---|---|
A9 LDA #23 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
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 |
A2 07 LDX #7 EA NOP CA DEX D0 FC BNE *-2 |
Clobbers X, and Z&N |
A0 07 LDY #7 EA NOP 88 DEY D0 FC BNE *-2 |
Clobbers Y, and Z&N |
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 |
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 |
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 |
68 ... PLA × 2 48 PHA A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 |
Clobbers A, S, Z&N, and C |
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 |
8 bytes | |
EA ... NOP × 2 48 PHA A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 68 PLA |
Clobbers Z&N, and C; and writes in stack |
EA ... NOP × 2 68 PLA 48 PHA A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 |
Clobbers A, Z&N, and C |
EA ... NOP × 2 08 PHP A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 28 PLP |
Clobbers A; and writes in stack |
08 PHP A2 06 LDX #6 EA NOP CA DEX D0 FC BNE *-2 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 06 LDY #6 EA NOP 88 DEY D0 FC BNE *-2 28 PLP |
Clobbers Y; and writes in stack |
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 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N |
25 bytes | |
EA ... NOP × 25 |
No requirements |
51 cycles
5 bytes | |
---|---|
A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 30 FC BMI *-2 |
Clobbers A, Z&N, C, and V |
A2 0A LDX #10 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
A0 0A LDY #10 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
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 |
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 |
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 |
68 ... PLA × 3 A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 |
Clobbers A, S, Z&N, and C |
8 bytes | |
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 36 ROL $36,X 76 36 ROR $36,X A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 |
Clobbers A, Z&N, and C |
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 08 PHP A2 08 LDX #8 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X, and S; and writes in stack |
9 bytes | |
08 PHP A6 A6 LDX $A6 A2 08 LDX #8 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; 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 |
20 xx xx JSR @rts12 00 00... BRK 0 × 3 |
Requires dummy interrupt handler, and @rts12; 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 C5 CMP $C5 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 10 FC BPL *-2 68 PLA 28 PLP |
Writes in stack |
13 bytes | |
68 PLA 48 PHA 68 ... PLA × 11 |
Clobbers A, S, and Z&N |
15 bytes | |
EA NOP 68 PLA \ × 7 48 PHA / |
Clobbers A, and Z&N |
18 bytes | |
C5 C5 CMP $C5 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N, and C |
24 24 BIT $24 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N, and V |
E6 xx INC @zptemp 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N; and requires @zptemp |
04 04 NOP $04 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
19 bytes | |
4C xx xx JMP *+3 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N; and not relocatable code |
FE 00 02 INC $0200,X 26 26 ROL $26 \ × 2 66 26 ROR $26 / 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $200-$2FF |
FE 00 03 INC $0300,X 26 26 ROL $26 \ × 2 66 26 ROR $26 / 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $300-$3FF |
FE 00 04 INC $0400,X 26 26 ROL $26 \ × 2 66 26 ROR $26 / 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $400-$4FF |
FE 00 05 INC $0500,X 26 26 ROL $26 \ × 2 66 26 ROR $26 / 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $500-$5FF |
FE 00 06 INC $0600,X 26 26 ROL $26 \ × 2 66 26 ROR $26 / 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $600-$6FF |
FE 00 07 INC $0700,X 26 26 ROL $26 \ × 2 66 26 ROR $26 / 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $700-$7FF |
21 bytes | |
EA ... NOP × 3 26 26... ROL $26 × 9 |
Clobbers Z&N |
26 bytes | |
18 ... CLC × 24 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 24 50 00 BVC *+2 |
Clobbers V |
85 xx STA @zptemp EA ... NOP × 24 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 24 |
Requires support for unofficial opcodes |
27 bytes | |
4C xx xx JMP *+3 EA ... NOP × 24 |
Not relocatable code |
52 cycles
5 bytes | |
---|---|
A9 LDA #25 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
48 PHA A0 88 LDY #136 ;hides 'DEY' 30 FD BMI *-1 |
Clobbers Y, S, and Z&N; and writes in stack |
6 bytes | |
A4 A4 LDY $A4 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 | |
38 SEC A9 69 LDA #$69 ;hides 'ADC #$EA' EA NOP ;first loop only EA NOP 10 FB BPL *-3 |
Clobbers A, Z&N, C, and V |
EA NOP A2 07 LDX #7 EA NOP CA DEX D0 FC BNE *-2 |
Clobbers X, and Z&N |
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 |
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 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 |
8 bytes | |
F6 F6 INC $F6,X 48 PHA A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 68 PLA |
Clobbers Z&N, and C; requires @zptemp, and writable $00-$FF; and writes in stack |
F6 F6 INC $F6,X 68 PLA 48 PHA A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 |
Clobbers A, Z&N, and C; and requires @zptemp, and writable $00-$FF |
08 PHP F6 F6 INC $F6,X A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 28 PLP |
Clobbers A; requires @zptemp, and writable $00-$FF; and writes in stack |
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 × 3 A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 68 PLA |
Clobbers S, Z&N, and C; and writes in stack |
68 ... PLA × 2 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC 10 FB BPL *-3 |
Clobbers A, S, Z&N, and C |
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 |
9 bytes | |
EA ... NOP × 3 48 PHA A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 68 PLA |
Clobbers Z&N, and C; and writes in stack |
18 CLC A9 4A LDA #$4A ;hides 'LSR A' 36 36 ROL $36,X 76 36 ROR $36,X 90 F9 BCC *-5 |
Clobbers A, Z&N, and C |
EA ... NOP × 3 08 PHP A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 28 PLP |
Clobbers A; and writes in stack |
EA ... NOP × 2 08 PHP A2 08 LDX #8 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
EA ... NOP × 2 08 PHP A0 08 LDY #8 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; and writes in stack |
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 FC BPL *-2 68 PLA 28 PLP |
Writes in stack |
13 bytes | |
68 ... PLA × 13 |
Clobbers A, S, and Z&N |
16 bytes | |
36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 68 PLA \ × 4 48 PHA / |
Clobbers A, and Z&N |
18 bytes | |
EA ... NOP × 2 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N |
26 bytes | |
EA ... NOP × 26 |
No requirements |
53 cycles
5 bytes | |
---|---|
A9 LDA #26 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
68 PLA A0 88 LDY #136 ;hides 'DEY' 30 FD BMI *-1 |
Clobbers A, Y, S, and Z&N |
6 bytes | |
18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 30 FC BMI *-2 |
Clobbers A, Z&N, C, and V |
EA NOP A2 0A LDX #10 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
EA NOP A0 0A LDY #10 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
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 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 09 LDY #9 88 DEY D0 FD BNE *-1 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 @rts12, and @rts14; 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 |
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 |
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 |
8 bytes | |
08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 68 PLA 28 PLP |
Writes in stack |
68 PLA \ × 2 48 PHA / A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 |
Clobbers A, Z&N, and C |
14 bytes | |
EA NOP 68 PLA 48 PHA 68 ... PLA × 11 |
Clobbers A, S, and Z&N |
16 bytes | |
EA ... NOP × 2 68 PLA \ × 7 48 PHA / |
Clobbers A, and Z&N |
18 bytes | |
E6 xx INC @zptemp 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N; and requires @zptemp |
19 bytes | |
EA NOP C5 C5 CMP $C5 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N, and C |
EA NOP 24 24 BIT $24 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N, and V |
FE 00 02 INC $0200,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $200-$2FF |
FE 00 03 INC $0300,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $300-$3FF |
FE 00 04 INC $0400,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $400-$4FF |
FE 00 05 INC $0500,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $500-$5FF |
FE 00 06 INC $0600,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $600-$6FF |
FE 00 07 INC $0700,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $700-$7FF |
EA NOP 04 04 NOP $04 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
20 bytes | |
EA NOP 4C xx xx JMP *+3 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N; and not relocatable code |
22 bytes | |
EA ... NOP × 4 26 26... ROL $26 × 9 |
Clobbers Z&N |
27 bytes | |
18 ... CLC × 25 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 25 50 00 BVC *+2 |
Clobbers V |
85 xx STA @zptemp EA ... NOP × 25 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 25 |
Requires support for unofficial opcodes |
28 bytes | |
4C xx xx JMP *+3 EA ... NOP × 25 |
Not relocatable code |
54 cycles
5 bytes | |
---|---|
A9 LDA #27 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
E6 xx INC @zptemp A0 88 LDY #136 ;hides 'DEY' 30 FD BMI *-1 |
Clobbers Y, and Z&N; and requires @zptemp |
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 |
48 PHA A2 0A LDX #10 CA DEX D0 FD BNE *-1 |
Clobbers X, S, and Z&N; and writes in stack |
48 PHA A0 0A LDY #10 88 DEY D0 FD BNE *-1 |
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 |
7 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 2 18 CLC 10 FA BPL *-4 |
Clobbers A, Z&N, and C |
A6 A6 LDX $A6 A2 0A LDX #10 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
A4 A4 LDY $A4 A0 0A LDY #10 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
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 |
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 |
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; writes in stack; and unsafe for interrupts |
08 PHP A2 08 LDX #8 CA DEX D0 FD BNE *-1 F6 xx INC @zptemp,X 28 PLP |
Clobbers X; requires @zptemp; and writes in stack |
EA NOP F6 F6 INC $F6,X 48 PHA A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 68 PLA |
Clobbers Z&N, and C; requires @zptemp, and writable $00-$FF; and writes in stack |
08 PHP EA NOP F6 F6 INC $F6,X A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 28 PLP |
Clobbers A; requires @zptemp, and writable $00-$FF; and writes in stack |
08 PHP F6 F6 INC $F6,X A0 08 LDY #8 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; requires @zptemp, and writable $00-$FF; 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 |
EA NOP 00 00... BRK 0 × 4 |
Requires dummy interrupt handler; 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 |
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 A2 08 LDX #8 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X, and S; and writes in stack |
48 ... PHA × 2 08 PHP A0 08 LDY #8 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y, and S; and writes in stack |
10 bytes | |
C5 C5 CMP $C5 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 |
08 PHP A5 A5 LDA $A5 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC 10 FB BPL *-3 28 PLP |
Clobbers A; and writes in stack |
EA ... NOP × 3 08 PHP A2 08 LDX #8 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
EA ... NOP × 3 08 PHP A0 08 LDY #8 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; 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 FC BPL *-2 68 PLA 28 PLP |
Writes in stack |
14 bytes | |
EA NOP 68 ... PLA × 13 |
Clobbers A, S, and Z&N |
16 bytes | |
36 36 ROL $36,X 76 36 ROR $36,X 68 PLA \ × 6 48 PHA / |
Clobbers A, and Z&N |
18 bytes | |
36 36... ROL $36,X× 9 |
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 |
A2 F8 LDX #248 ;hides 'SED' E8 INX D0 FC BNE *-2 |
Clobbers X, Z&N, and D |
A0 F8 LDY #248 ;hides 'SED' C8 INY D0 FC BNE *-2 |
Clobbers Y, Z&N, and D |
6 bytes | |
F6 F6 INC $F6,X A0 88 LDY #136 ;hides 'DEY' 30 FD BMI *-1 |
Clobbers Y, and Z&N; and requires @zptemp, and writable $00-$FF |
48 ... PHA × 2 A0 88 LDY #136 ;hides 'DEY' 30 FD BMI *-1 |
Clobbers Y, S, and Z&N; and writes in stack |
A2 06 LDX #6 68 PLA CA DEX D0 FC BNE *-2 |
Clobbers A, X, S, and Z&N |
A0 06 LDY #6 68 PLA 88 DEY D0 FC BNE *-2 |
Clobbers A, Y, S, and Z&N |
7 bytes | |
A2 06 LDX #6 EA ... NOP × 2 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A0 06 LDY #6 EA ... NOP × 2 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
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 |
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 |
8 bytes | |
EA NOP 08 PHP A2 09 LDX #9 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
EA NOP 08 PHP A0 09 LDY #9 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; and writes in stack |
9 bytes | |
08 PHP 48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 68 PLA 28 PLP |
Writes in stack |
14 bytes | |
68 PLA 48 PHA 68 ... PLA × 12 |
Clobbers A, S, and Z&N |
16 bytes | |
A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 11 10 F1 BPL *-13 |
Clobbers A, and Z&N |
19 bytes | |
EA NOP E6 xx INC @zptemp 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N; and requires @zptemp |
FE 00 02 INC $0200,X 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $200-$2FF |
FE 00 03 INC $0300,X 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $300-$3FF |
FE 00 04 INC $0400,X 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $400-$4FF |
FE 00 05 INC $0500,X 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $500-$5FF |
FE 00 06 INC $0600,X 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $600-$6FF |
FE 00 07 INC $0700,X 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $700-$7FF |
20 bytes | |
EA ... NOP × 2 C5 C5 CMP $C5 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N, and C |
EA ... NOP × 2 24 24 BIT $24 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N, and V |
EA ... NOP × 2 04 04 NOP $04 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
21 bytes | |
EA ... NOP × 2 4C xx xx JMP *+3 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N; and not relocatable code |
22 bytes | |
26 26 ROL $26 66 26 ROR $26 26 26... ROL $26 × 9 |
Clobbers Z&N |
28 bytes | |
18 ... CLC × 26 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 26 50 00 BVC *+2 |
Clobbers V |
85 xx STA @zptemp EA ... NOP × 26 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 26 |
Requires support for unofficial opcodes |
29 bytes | |
4C xx xx JMP *+3 EA ... NOP × 26 |
Not relocatable code |
56 cycles
5 bytes | |
---|---|
A2 0B LDX #11 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
A0 0B LDY #11 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
A9 LDA #29 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
08 PHP A0 88 LDY #136 ;hides 'DEY' 30 FD BMI *-1 28 PLP |
Clobbers Y; and writes in stack |
7 bytes | |
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 |
A9 2A LDA #$2A ;hides 'ROL A' 20 xx xx JSR @rts14 10 FA BPL *-4 |
Clobbers A, Z&N, and C; requires @rts12, and @rts14; 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 |
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 |
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 |
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 FD BNE *-1 28 PLP |
Clobbers X, and S; and writes in stack |
9 bytes | |
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 |
08 PHP 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 24 24 BIT $24 90 FB BCC *-3 28 PLP |
Clobbers A; and writes in stack |
08 PHP A2 06 LDX #6 C5 C5 CMP $C5 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; 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 |
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 |
10 bytes | |
08 PHP C5 C5 CMP $C5 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 |
19 bytes | |
EA NOP 36 36... ROL $36,X× 9 |
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 | |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 |
Clobbers A, Z&N, and C |
A2 08 LDX #8 EA NOP CA DEX D0 FC BNE *-2 |
Clobbers X, and Z&N |
A0 08 LDY #8 EA NOP 88 DEY D0 FC BNE *-2 |
Clobbers Y, and Z&N |
7 bytes | |
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 |
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 |
8 bytes | |
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 |
08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$2A' 2A ROL A ;first loop only EA NOP B0 FB BCS *-3 28 PLP |
Clobbers A; and writes in stack |
08 PHP A2 07 LDX #7 EA NOP CA DEX D0 FC BNE *-2 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 07 LDY #7 EA NOP 88 DEY D0 FC BNE *-2 28 PLP |
Clobbers Y; and writes in stack |
9 bytes | |
48 PHA A9 2A LDA #$2A ;hides 'ROL A' 20 xx xx JSR @rts12 10 FA BPL *-4 68 PLA |
Clobbers Z&N, and C; requires @rts12; and writes in stack |
08 PHP 48 PHA A9 LDA #16 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
EA ... NOP × 2 08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 68 PLA 28 PLP |
Writes in stack |
15 bytes | |
EA NOP 68 PLA 48 PHA 68 ... PLA × 12 |
Clobbers A, S, and Z&N |
17 bytes | |
EA NOP A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 11 10 F1 BPL *-13 |
Clobbers A, and Z&N |
20 bytes | |
C5 C5 CMP $C5 36 36... ROL $36,X× 9 |
Clobbers Z&N, and C |
24 24 BIT $24 36 36... ROL $36,X× 9 |
Clobbers Z&N, and V |
85 xx STA @zptemp 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires @zptemp |
EA NOP FE 00 02 INC $0200,X 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $200-$2FF |
EA NOP FE 00 03 INC $0300,X 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $300-$3FF |
EA NOP FE 00 04 INC $0400,X 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $400-$4FF |
EA NOP FE 00 05 INC $0500,X 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $500-$5FF |
EA NOP FE 00 06 INC $0600,X 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $600-$6FF |
EA NOP FE 00 07 INC $0700,X 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $700-$7FF |
04 04 NOP $04 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires support for unofficial opcodes |
21 bytes | |
4C xx xx JMP *+3 36 36... ROL $36,X× 9 |
Clobbers Z&N; and not relocatable code |
22 bytes | |
36 36 ROL $36,X 76 36 ROR $36,X 26 26... ROL $26 × 9 |
Clobbers Z&N |
29 bytes | |
18 ... CLC × 27 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 27 50 00 BVC *+2 |
Clobbers V |
85 xx STA @zptemp EA ... NOP × 27 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 27 |
Requires support for unofficial opcodes |
30 bytes | |
4C xx xx JMP *+3 EA ... NOP × 27 |
Not relocatable code |
58 cycles
5 bytes | |
---|---|
A9 LDA #31 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
EA NOP A2 0B LDX #11 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
EA NOP A0 0B LDY #11 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
38 SEC A9 EB LDA #$EB ;hides 'SBC #$1A' 1A NOP ;first loop only B0 FC BCS *-2 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
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 |
7 bytes | |
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 |
A5 A5 LDA $A5 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 |
Clobbers A, Z&N, and C |
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 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 0A LDY #10 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; 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 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 4 76 36 ROR $36,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 |
68 PLA A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 |
Clobbers A, S, Z&N, and C |
48 PHA A2 0B LDX #11 CA DEX D0 FD BNE *-1 |
Clobbers X, S, and Z&N; and writes in stack |
48 PHA A0 0B LDY #11 88 DEY D0 FD BNE *-1 |
Clobbers Y, S, and Z&N; and writes in stack |
68 PLA A2 F8 LDX #248 ;hides 'SED' E8 INX D0 FC BNE *-2 |
Clobbers A, X, S, Z&N, and D |
68 PLA A0 F8 LDY #248 ;hides 'SED' C8 INY D0 FC BNE *-2 |
Clobbers A, Y, S, Z&N, and D |
7 bytes | |
EA ... NOP × 2 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 |
Clobbers A, Z&N, and C |
A6 A6 LDX $A6 A2 0B LDX #11 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
A4 A4 LDY $A4 A0 0B LDY #11 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
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 |
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 08 PHP A0 88 LDY #136 ;hides 'DEY' 30 FD BMI *-1 28 PLP |
Clobbers Y, and S; and writes in stack |
8 bytes | |
08 PHP A4 A4 LDY $A4 A0 88 LDY #136 ;hides 'DEY' 30 FD BMI *-1 28 PLP |
Clobbers Y; 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 |
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 |
9 bytes | |
48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$EA' EA NOP ;first loop only EA NOP 10 FB BPL *-3 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
08 PHP 38 SEC A9 69 LDA #$69 ;hides 'ADC #$EA' EA NOP ;first loop only EA NOP 10 FB BPL *-3 28 PLP |
Clobbers A; and writes in stack |
EA NOP 08 PHP A2 07 LDX #7 EA NOP CA DEX D0 FC BNE *-2 28 PLP |
Clobbers X; 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 | |
08 PHP F6 F6 INC $F6,X 48 PHA A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 68 PLA 28 PLP |
Requires @zptemp, and writable $00-$FF; and writes in stack |
48 PHA 18 CLC A9 2A LDA #$2A ;hides 'ROL A' 20 xx xx JSR @rts12 10 FA BPL *-4 68 PLA |
Clobbers Z&N, and C; requires @rts12; and writes in stack |
08 PHP 28 PLP 00 00... BRK 0 × 4 |
Requires dummy interrupt handler; and writes in stack |
48 ... PHA × 2 08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 68 PLA 28 PLP |
Clobbers S; and writes in stack |
11 bytes | |
EA ... NOP × 3 08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 68 PLA 28 PLP |
Writes in stack |
15 bytes | |
68 PLA 48 PHA 68 ... PLA × 13 |
Clobbers A, S, and Z&N |
17 bytes | |
A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 12 10 F0 BPL *-14 |
Clobbers A, and Z&N |
20 bytes | |
E6 xx INC @zptemp 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires @zptemp |
21 bytes | |
EA NOP C5 C5 CMP $C5 36 36... ROL $36,X× 9 |
Clobbers Z&N, and C |
EA NOP 24 24 BIT $24 36 36... ROL $36,X× 9 |
Clobbers Z&N, and V |
EA ... NOP × 2 FE 00 02 INC $0200,X 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $200-$2FF |
EA ... NOP × 2 FE 00 03 INC $0300,X 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $300-$3FF |
EA ... NOP × 2 FE 00 04 INC $0400,X 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $400-$4FF |
EA ... NOP × 2 FE 00 05 INC $0500,X 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $500-$5FF |
EA ... NOP × 2 FE 00 06 INC $0600,X 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $600-$6FF |
EA ... NOP × 2 FE 00 07 INC $0700,X 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $700-$7FF |
EA NOP 04 04 NOP $04 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires support for unofficial opcodes |
22 bytes | |
EA NOP 4C xx xx JMP *+3 36 36... ROL $36,X× 9 |
Clobbers Z&N; and not relocatable code |
23 bytes | |
EA NOP 36 36 ROL $36,X 76 36 ROR $36,X 26 26... ROL $26 × 9 |
Clobbers Z&N |
30 bytes | |
18 ... CLC × 28 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 28 50 00 BVC *+2 |
Clobbers V |
85 xx STA @zptemp EA ... NOP × 28 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 28 |
Requires support for unofficial opcodes |
31 bytes | |
4C xx xx JMP *+3 EA ... NOP × 28 |
Not relocatable code |
60 cycles
5 bytes | |
---|---|
A9 LDA #33 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
68 PLA A2 0B LDX #11 CA DEX D0 FD BNE *-1 |
Clobbers A, X, S, and Z&N |
68 PLA A0 0B LDY #11 88 DEY D0 FD BNE *-1 |
Clobbers A, Y, S, and Z&N |
7 bytes | |
EA ... NOP × 2 A2 0B LDX #11 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
EA ... NOP × 2 A0 0B LDY #11 88 DEY D0 FD BNE *-1 |
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 |
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 |
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 |
EA NOP 38 SEC A9 EB LDA #$EB ;hides 'SBC #$1A' 1A NOP ;first loop only B0 FC BCS *-2 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
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 |
8 bytes | |
48 PHA 18 CLC 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 |
EA NOP A5 A5 LDA $A5 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 |
Clobbers A, Z&N, and C |
08 PHP 18 CLC 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 |
EA NOP 08 PHP A2 0A LDX #10 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
EA NOP 08 PHP A0 0A LDY #10 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; 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 @rts12, and @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 36 ROL $36,X \ × 5 76 36 ROR $36,X / |
Clobbers Z&N |
30 bytes | |
EA ... NOP × 30 |
No requirements |
61 cycles
5 bytes | |
---|---|
A2 0C LDX #12 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
A0 0C LDY #12 88 DEY D0 FD BNE *-1 |
Clobbers Y, 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 |
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 |
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 |
EA NOP 68 PLA A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 |
Clobbers A, S, Z&N, and C |
8 bytes | |
EA ... NOP × 3 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 |
Clobbers A, Z&N, and C |
08 PHP E6 xx INC @zptemp A0 88 LDY #136 ;hides 'DEY' 30 FD BMI *-1 28 PLP |
Clobbers Y; requires @zptemp; and writes in stack |
48 ... PHA × 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 08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 30 FC BMI *-2 28 PLP |
Clobbers A, and S; and writes in stack |
48 PHA 08 PHP A2 0A LDX #10 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X, and S; and writes in stack |
48 PHA 08 PHP A0 0A LDY #10 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y, and S; and writes in stack |
9 bytes | |
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 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 A6 LDX $A6 A2 0A LDX #10 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
08 PHP A4 A4 LDY $A4 A0 0A LDY #10 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; 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 | |
08 PHP EA NOP F6 F6 INC $F6,X 48 PHA A9 0A LDA #$0A ;hides 'ASL A' D0 FD BNE *-1 68 PLA 28 PLP |
Requires @zptemp, and writable $00-$FF; and writes in stack |
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 C5 CMP $C5 48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC 10 FB BPL *-3 68 PLA 28 PLP |
Writes in stack |
16 bytes | |
EA NOP 68 PLA 48 PHA 68 ... PLA × 13 |
Clobbers A, S, and Z&N |
18 bytes | |
36 36 ROL $36,X 76 36 ROR $36,X 68 PLA \ × 7 48 PHA / |
Clobbers A, and Z&N |
21 bytes | |
EA NOP E6 xx INC @zptemp 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires @zptemp |
FE 00 02 INC $0200,X 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $200-$2FF |
FE 00 03 INC $0300,X 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $300-$3FF |
FE 00 04 INC $0400,X 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $400-$4FF |
FE 00 05 INC $0500,X 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $500-$5FF |
FE 00 06 INC $0600,X 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $600-$6FF |
FE 00 07 INC $0700,X 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $700-$7FF |
22 bytes | |
C5 C5 CMP $C5 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N, and C |
24 24 BIT $24 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N, and V |
04 04 NOP $04 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
23 bytes | |
4C xx xx JMP *+3 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N; and not relocatable code |
24 bytes | |
EA ... NOP × 2 36 36 ROL $36,X 76 36 ROR $36,X 26 26... ROL $26 × 9 |
Clobbers Z&N |
31 bytes | |
18 ... CLC × 29 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 29 50 00 BVC *+2 |
Clobbers V |
85 xx STA @zptemp EA ... NOP × 29 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 29 |
Requires support for unofficial opcodes |
32 bytes | |
4C xx xx JMP *+3 EA ... NOP × 29 |
Not relocatable code |
62 cycles
5 bytes | |
---|---|
A2 88 LDX #136 ;hides 'DEY' CA DEX 30 FC BMI *-2 |
Clobbers X, Y, and Z&N |
A9 LDA #35 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
00 00 BRK 0 A0 88 LDY #136 ;hides 'DEY' 30 FD BMI *-1 |
Clobbers Y, and Z&N; requires dummy interrupt handler; and writes in stack |
7 bytes | |
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 |
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 |
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 |
A2 0B LDX #11 CA DEX D0 FD BNE *-1 F6 xx INC @zptemp,X |
Clobbers X, and Z&N; and requires @zptemp |
F6 F6 INC $F6,X A0 0B LDY #11 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N; and requires @zptemp, and writable $00-$FF |
EA NOP 68 PLA A2 0B LDX #11 CA DEX D0 FD BNE *-1 |
Clobbers A, X, S, and Z&N |
EA NOP 68 PLA A0 0B LDY #11 88 DEY D0 FD BNE *-1 |
Clobbers A, Y, S, and Z&N |
8 bytes | |
EA ... NOP × 3 A2 0B LDX #11 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
EA ... NOP × 3 A0 0B LDY #11 88 DEY D0 FD BNE *-1 |
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 36 ROL $36,X \ × 5 76 36 ROR $36,X / |
Clobbers Z&N |
31 bytes | |
EA ... NOP × 31 |
No requirements |
63 cycles
5 bytes | |
---|---|
A9 LDA #36 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
A9 0A LDA #$0A ;hides 'ASL A' 48 PHA D0 FC BNE *-2 |
Clobbers A, S, Z&N, and C; and writes in stack |
6 bytes | |
EA NOP A2 0C LDX #12 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
EA NOP A0 0C LDY #12 88 DEY D0 FD BNE *-1 |
Clobbers Y, 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 04 NOP $04 D0 FB BNE *-3 |
Clobbers A, Z&N, and C; and requires support for unofficial opcodes |
7 bytes | |
38 SEC A9 0C LDA #12 E9 01 SBC #1 D0 FB BNE *-3 |
Clobbers A, Z&N, C, and V |
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 |
08 PHP A2 0B LDX #11 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 0B LDY #11 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; 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 |
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 |
68 ... PLA × 2 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 |
Clobbers A, S, Z&N, and C |
8 bytes | |
EA ... NOP × 2 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 |
9 bytes | |
EA ... NOP × 4 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 |
Clobbers A, Z&N, and C |
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 |
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 |
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 @rts12, and @rts14; and writes in stack |
08 PHP A9 2A LDA #$2A ;hides 'ROL A' 20 xx xx JSR @rts14 10 FA BPL *-4 28 PLP |
Clobbers A; requires @rts12, and @rts14; 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 |
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 × 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 |
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 |
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 |
10 bytes | |
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 |
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 |
11 bytes | |
08 PHP 48 PHA 18 CLC A9 2A LDA #$2A ;hides 'ROL A' 08 PHP 28 PLP 90 FB BCC *-3 68 PLA 28 PLP |
Writes in stack |
16 bytes | |
68 PLA 48 PHA 68 ... PLA × 14 |
Clobbers A, S, and Z&N |
18 bytes | |
68 PLA \ × 9 48 PHA / |
Clobbers A, and Z&N |
22 bytes | |
C5 C5 CMP $C5 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / |
Clobbers Z&N, and C |
24 24 BIT $24 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / |
Clobbers Z&N, and V |
E6 xx INC @zptemp 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N; and requires @zptemp |
EA NOP FE 00 02 INC $0200,X 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $200-$2FF |
EA NOP FE 00 03 INC $0300,X 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $300-$3FF |
EA NOP FE 00 04 INC $0400,X 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $400-$4FF |
EA NOP FE 00 05 INC $0500,X 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $500-$5FF |
EA NOP FE 00 06 INC $0600,X 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $600-$6FF |
EA NOP FE 00 07 INC $0700,X 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $700-$7FF |
04 04 NOP $04 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
23 bytes | |
4C xx xx JMP *+3 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / |
Clobbers Z&N; and not relocatable code |
25 bytes | |
EA ... NOP × 3 36 36 ROL $36,X 76 36 ROR $36,X 26 26... ROL $26 × 9 |
Clobbers Z&N |
32 bytes | |
18 ... CLC × 30 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 30 50 00 BVC *+2 |
Clobbers V |
85 xx STA @zptemp EA ... NOP × 30 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 30 |
Requires support for unofficial opcodes |
33 bytes | |
4C xx xx JMP *+3 EA ... NOP × 30 |
Not relocatable code |
64 cycles
5 bytes | |
---|---|
A9 LDA #37 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A2 09 LDX #9 EA NOP CA DEX D0 FC BNE *-2 |
Clobbers X, and Z&N |
A0 09 LDY #9 EA NOP 88 DEY D0 FC BNE *-2 |
Clobbers Y, and Z&N |
7 bytes | |
A9 E9 LDA #$E9 ;hides 'SBC #$2A' 2A ROL A ;first loop only EA ... NOP × 2 B0 FA BCS *-4 |
Clobbers A, Z&N, C, and V |
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 |
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 |
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 |
8 bytes | |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 68 PLA |
Clobbers Z&N, and C; and writes in stack |
A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 3 18 CLC 10 F9 BPL *-5 |
Clobbers A, Z&N, and C |
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 FC BNE *-2 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 08 LDY #8 EA NOP 88 DEY D0 FC BNE *-2 28 PLP |
Clobbers Y; and writes in stack |
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 | |
26 26 ROL $26 66 26 ROR $26 36 36... ROL $36,X× 9 |
Clobbers Z&N |
32 bytes | |
EA ... NOP × 32 |
No requirements |
- From 64 cycles onwards, these tables quit considering writing into stack as a drawback.
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 | |
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 |
A2 08 LDX #8 48 PHA CA DEX D0 FC BNE *-2 |
Clobbers X, S, and Z&N; and writes in stack |
A0 08 LDY #8 48 PHA 88 DEY D0 FC BNE *-2 |
Clobbers Y, S, and Z&N; and writes in stack |
68 PLA A2 0C LDX #12 CA DEX D0 FD BNE *-1 |
Clobbers A, X, S, and Z&N |
68 PLA A0 0C LDY #12 88 DEY D0 FD BNE *-1 |
Clobbers A, Y, S, and Z&N |
7 bytes | |
EA ... NOP × 2 A2 0C LDX #12 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
EA ... NOP × 2 A0 0C LDY #12 88 DEY D0 FD BNE *-1 |
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 |
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 |
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 |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 04 04 NOP $04 D0 FB BNE *-3 |
Clobbers A, Z&N, and C; and requires support for unofficial opcodes |
8 bytes | |
EA NOP 38 SEC A9 0C LDA #12 E9 01 SBC #1 D0 FB BNE *-3 |
Clobbers A, Z&N, C, and V |
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 |
EA NOP 08 PHP A2 0B LDX #11 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
EA NOP 08 PHP A0 0B LDY #11 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; and writes in stack |
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 @rts12, and @rts15; and writes in stack |
48 PHA 38 SEC A9 EB LDA #$EB ;hides 'SBC #$1A' 1A NOP ;first loop only B0 FC BCS *-2 68 PLA |
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
08 PHP 38 SEC A9 EB LDA #$EB ;hides 'SBC #$1A' 1A NOP ;first loop only B0 FC BCS *-2 28 PLP |
Clobbers A; requires support for unofficial opcodes; and writes in stack |
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 × 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 |
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 |
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 26 ROL $26 66 26 ROR $26 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 |
Clobbers A, Z&N, and C |
17 bytes | |
EA NOP 68 PLA 48 PHA 68 ... PLA × 14 |
Clobbers A, S, and Z&N |
19 bytes | |
EA NOP 68 PLA \ × 9 48 PHA / |
Clobbers A, and Z&N |
22 bytes | |
E6 xx INC @zptemp 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / |
Clobbers Z&N; and requires @zptemp |
23 bytes | |
EA NOP C5 C5 CMP $C5 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / |
Clobbers Z&N, and C |
EA NOP 24 24 BIT $24 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / |
Clobbers Z&N, and V |
FE 00 02 INC $0200,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $200-$2FF |
FE 00 03 INC $0300,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $300-$3FF |
FE 00 04 INC $0400,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $400-$4FF |
FE 00 05 INC $0500,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $500-$5FF |
FE 00 06 INC $0600,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $600-$6FF |
FE 00 07 INC $0700,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $700-$7FF |
EA NOP 04 04 NOP $04 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
24 bytes | |
EA NOP 4C xx xx JMP *+3 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / |
Clobbers Z&N; and not relocatable code |
26 bytes | |
26 26 ROL $26 \ × 2 66 26 ROR $26 / 26 26... ROL $26 × 9 |
Clobbers Z&N |
33 bytes | |
18 ... CLC × 31 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 31 50 00 BVC *+2 |
Clobbers V |
85 xx STA @zptemp EA ... NOP × 31 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 31 |
Requires support for unofficial opcodes |
34 bytes | |
4C xx xx JMP *+3 EA ... NOP × 31 |
Not relocatable code |
66 cycles
5 bytes | |
---|---|
A2 0D LDX #13 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
A0 0D LDY #13 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
A9 LDA #39 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 48 PHA D0 FC BNE *-2 |
Clobbers A, S, Z&N, and C; and writes in stack |
7 bytes | |
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 |
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 |
8 bytes | |
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 FA BNE *-4 |
Clobbers A, Z&N, C, and V |
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 |
A5 A5 LDA $A5 A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp D0 FB BNE *-3 |
Clobbers A, Z&N, and C; and requires @zptemp |
04 04 NOP $04 A9 0A LDA #$0A ;hides 'ASL A' 04 04 NOP $04 D0 FB BNE *-3 |
Clobbers A, Z&N, and C; and requires support for unofficial opcodes |
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 |
48 PHA 08 PHP A2 0B LDX #11 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X, and S; and writes in stack |
48 PHA 08 PHP A0 0B LDY #11 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y, and S; and writes in stack |
9 bytes | |
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 A6 A6 LDX $A6 A2 0B LDX #11 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
08 PHP A4 A4 LDY $A4 A0 0B LDY #11 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; and writes in stack |
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 FB BPL *-3 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 |
22 bytes | |
36 36 ROL $36,X 76 36 ROR $36,X 36 36... ROL $36,X× 9 |
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 |
A2 0C LDX #12 CA DEX D0 FD BNE *-1 F6 xx INC @zptemp,X |
Clobbers X, and Z&N; and requires @zptemp |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' F6 F6 INC $F6,X 90 FB BCC *-3 |
Clobbers A, Z&N, and C; and requires @zptemp, and writable $00-$FF |
A0 06 LDY #6 F6 F6 INC $F6,X 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N; and requires @zptemp, and writable $00-$FF |
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 |
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 |
A2 06 LDX #6 48 ... PHA × 2 CA DEX D0 FB BNE *-3 |
Clobbers X, S, and Z&N; and writes in stack |
A0 06 LDY #6 48 ... PHA × 2 88 DEY D0 FB BNE *-3 |
Clobbers Y, S, and Z&N; and writes in stack |
A2 06 LDX #6 EA NOP 68 PLA CA DEX D0 FB BNE *-3 |
Clobbers A, X, S, and Z&N |
A0 06 LDY #6 EA NOP 68 PLA 88 DEY D0 FB BNE *-3 |
Clobbers A, Y, S, and Z&N |
68 PLA A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp D0 FB BNE *-3 |
Clobbers A, S, Z&N, and C; and requires @zptemp |
68 PLA A9 0A LDA #$0A ;hides 'ASL A' 04 04 NOP $04 D0 FB BNE *-3 |
Clobbers A, S, Z&N, and C; and requires support for unofficial opcodes |
8 bytes | |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 3 90 FA BCC *-4 |
Clobbers A, Z&N, and C |
A6 A6 LDX $A6 A2 09 LDX #9 EA NOP CA DEX D0 FC BNE *-2 |
Clobbers X, and Z&N |
A4 A4 LDY $A4 A0 09 LDY #9 EA NOP 88 DEY D0 FC BNE *-2 |
Clobbers Y, and Z&N |
9 bytes | |
98 TYA 48 PHA A0 0B LDY #11 88 DEY D0 FD BNE *-1 68 PLA A8 TAY |
Clobbers A, and Z&N; and writes in stack |
EA ... NOP × 2 08 PHP A2 0B LDX #11 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
EA ... NOP × 2 08 PHP A0 0B LDY #11 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; 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 |
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 |
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 |
EA NOP 48 PHA 38 SEC A9 EB LDA #$EB ;hides 'SBC #$1A' 1A NOP ;first loop only B0 FC BCS *-2 68 PLA |
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
EA NOP 08 PHP 38 SEC A9 EB LDA #$EB ;hides 'SBC #$1A' 1A NOP ;first loop only B0 FC BCS *-2 28 PLP |
Clobbers A; requires support for unofficial opcodes; 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 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 |
10 bytes | |
08 PHP 48 PHA 18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 30 FC BMI *-2 68 PLA 28 PLP |
Writes in stack |
17 bytes | |
68 PLA 48 PHA 68 ... PLA × 15 |
Clobbers A, S, and Z&N |
19 bytes | |
A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 14 10 EE BPL *-16 |
Clobbers A, and Z&N |
23 bytes | |
EA NOP E6 xx INC @zptemp 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / |
Clobbers Z&N; and requires @zptemp |
FE 00 02 INC $0200,X 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $200-$2FF |
FE 00 03 INC $0300,X 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $300-$3FF |
FE 00 04 INC $0400,X 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $400-$4FF |
FE 00 05 INC $0500,X 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $500-$5FF |
FE 00 06 INC $0600,X 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $600-$6FF |
FE 00 07 INC $0700,X 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $700-$7FF |
24 bytes | |
C5 C5 CMP $C5 26 26 ROL $26 66 26 ROR $26 36 36... ROL $36,X× 9 |
Clobbers Z&N, and C |
24 24 BIT $24 26 26 ROL $26 66 26 ROR $26 36 36... ROL $36,X× 9 |
Clobbers Z&N, and V |
04 04 NOP $04 26 26 ROL $26 66 26 ROR $26 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires support for unofficial opcodes |
25 bytes | |
4C xx xx JMP *+3 26 26 ROL $26 66 26 ROR $26 36 36... ROL $36,X× 9 |
Clobbers Z&N; and not relocatable code |
26 bytes | |
26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X 76 36 ROR $36,X 26 26... ROL $26 × 9 |
Clobbers Z&N |
34 bytes | |
18 ... CLC × 32 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 32 50 00 BVC *+2 |
Clobbers V |
85 xx STA @zptemp EA ... NOP × 32 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 32 |
Requires support for unofficial opcodes |
35 bytes | |
4C xx xx JMP *+3 EA ... NOP × 32 |
Not relocatable code |
68 cycles
5 bytes | |
---|---|
A9 LDA #41 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
EA NOP A2 0D LDX #13 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
EA NOP A0 0D LDY #13 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
7 bytes | |
38 SEC A9 0D LDA #13 E9 01 SBC #1 D0 FB BNE *-3 |
Clobbers A, Z&N, C, and V |
08 PHP A2 0C LDX #12 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 0C LDY #12 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; 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 |
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 |
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 |
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 | |
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 |
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 |
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 |
EA NOP 04 04 NOP $04 A9 0A LDA #$0A ;hides 'ASL A' 04 04 NOP $04 D0 FB BNE *-3 |
Clobbers A, Z&N, and C; and requires support for unofficial opcodes |
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 |
10 bytes | |
EA ... NOP × 3 68 PLA 48 PHA 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 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 30 FC BMI *-2 68 PLA 28 PLP |
Clobbers S; and writes in stack |
11 bytes | |
08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 2 18 CLC 10 FA BPL *-4 68 PLA 28 PLP |
Writes in stack |
17 bytes | |
68 ... PLA × 17 |
Clobbers A, S, and Z&N |
20 bytes | |
36 36 ROL $36,X 76 36 ROR $36,X 68 PLA \ × 8 48 PHA / |
Clobbers A, and Z&N |
23 bytes | |
EA NOP 36 36 ROL $36,X 76 36 ROR $36,X 36 36... ROL $36,X× 9 |
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 FD BNE *-1 |
Clobbers X, S, and Z&N; and writes in stack |
7 bytes | |
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 |
A6 A6 LDX $A6 A2 0D LDX #13 CA DEX D0 FD BNE *-1 |
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 |
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 |
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 |
8 bytes | |
F6 F6 INC $F6,X A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp D0 FB BNE *-3 |
Clobbers A, Z&N, and C; and requires @zptemp, and writable $00-$FF |
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 04 NOP $04 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 36 ROL $36,X 76 36 ROR $36,X 90 F9 BCC *-5 |
Clobbers A, Z&N, and C |
18 bytes | |
EA NOP 68 PLA 48 PHA 68 ... PLA × 15 |
Clobbers A, S, and Z&N |
20 bytes | |
EA NOP A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 14 10 EE BPL *-16 |
Clobbers A, and Z&N |
24 bytes | |
C5 C5 CMP $C5 36 36 ROL $36,X 76 36 ROR $36,X 36 36... ROL $36,X× 9 |
Clobbers Z&N, and C |
24 24 BIT $24 36 36 ROL $36,X 76 36 ROR $36,X 36 36... ROL $36,X× 9 |
Clobbers Z&N, and V |
E6 xx INC @zptemp 26 26 ROL $26 66 26 ROR $26 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires @zptemp |
EA NOP FE 00 02 INC $0200,X 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $200-$2FF |
EA NOP FE 00 03 INC $0300,X 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $300-$3FF |
EA NOP FE 00 04 INC $0400,X 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $400-$4FF |
EA NOP FE 00 05 INC $0500,X 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $500-$5FF |
EA NOP FE 00 06 INC $0600,X 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $600-$6FF |
EA NOP FE 00 07 INC $0700,X 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $700-$7FF |
04 04 NOP $04 36 36 ROL $36,X 76 36 ROR $36,X 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires support for unofficial opcodes |
25 bytes | |
4C xx xx JMP *+3 36 36 ROL $36,X 76 36 ROR $36,X 36 36... ROL $36,X× 9 |
Clobbers Z&N; and not relocatable code |
26 bytes | |
36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 26 26... ROL $26 × 9 |
Clobbers Z&N |
35 bytes | |
18 ... CLC × 33 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 33 50 00 BVC *+2 |
Clobbers V |
85 xx STA @zptemp EA ... NOP × 33 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 33 |
Requires support for unofficial opcodes |
36 bytes | |
4C xx xx JMP *+3 EA ... NOP × 33 |
Not relocatable code |
70 cycles
5 bytes | |
---|---|
A9 LDA #43 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
68 PLA A2 0D LDX #13 CA DEX D0 FD BNE *-1 |
Clobbers A, X, S, and Z&N |
68 PLA A0 0D LDY #13 88 DEY D0 FD BNE *-1 |
Clobbers A, Y, S, and Z&N |
7 bytes | |
EA ... NOP × 2 A2 0D LDX #13 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
EA ... NOP × 2 A0 0D LDY #13 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
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 |
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 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 |
8 bytes | |
EA NOP 38 SEC A9 0D LDA #13 E9 01 SBC #1 D0 FB BNE *-3 |
Clobbers A, Z&N, C, and V |
EA NOP 08 PHP A2 0C LDX #12 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
EA NOP 08 PHP A0 0C LDY #12 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; 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 |
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 |
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 @rts12, and @rts15; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 04 04 NOP $04 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 04 NOP $04 D0 FB BNE *-3 |
Clobbers A, Z&N, and C; and requires support for unofficial opcodes |
08 PHP A9 0A LDA #$0A ;hides 'ASL A' 04 04 NOP $04 D0 FB BNE *-3 28 PLP |
Clobbers A; requires support for unofficial opcodes; and writes in stack |
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 |
9 bytes | |
48 PHA 38 SEC A9 0C LDA #12 E9 01 SBC #1 D0 FB BNE *-3 68 PLA |
Clobbers Z&N, C, and V; 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 |
08 PHP 38 SEC A9 0C LDA #12 E9 01 SBC #1 D0 FB BNE *-3 28 PLP |
Clobbers A; and writes in stack |
68 PLA 48 PHA 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 |
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 |
68 PLA 48 PHA 68 ... PLA × 2 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 |
Clobbers A, S, Z&N, and C |
10 bytes | |
EA ... NOP × 2 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 |
A5 A5 LDA $A5 18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 3 90 FA BCC *-4 |
Clobbers A, Z&N, and C |
11 bytes | |
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 |
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 @rts12, and @rts14; 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 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / |
Clobbers Z&N |
35 bytes | |
EA ... NOP × 35 |
No requirements |
71 cycles
5 bytes | |
---|---|
A2 0E LDX #14 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
A0 0E LDY #14 88 DEY D0 FD BNE *-1 |
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 | |
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 |
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 |
8 bytes | |
08 PHP A2 09 LDX #9 EA NOP CA DEX D0 FC BNE *-2 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 09 LDY #9 EA NOP 88 DEY D0 FC BNE *-2 28 PLP |
Clobbers Y; and writes in stack |
9 bytes | |
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 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 |
08 PHP 48 PHA A9 LDA #30 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
08 PHP 48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 68 PLA 28 PLP |
Writes in stack |
18 bytes | |
68 PLA 48 PHA 68 ... PLA × 16 |
Clobbers A, S, and Z&N |
21 bytes | |
36 36 ROL $36,X 76 36 ROR $36,X A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 12 10 F0 BPL *-14 |
Clobbers A, and Z&N |
24 bytes | |
E6 xx INC @zptemp 36 36 ROL $36,X 76 36 ROR $36,X 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires @zptemp |
25 bytes | |
EA NOP C5 C5 CMP $C5 36 36 ROL $36,X 76 36 ROR $36,X 36 36... ROL $36,X× 9 |
Clobbers Z&N, and C |
EA NOP 24 24 BIT $24 36 36 ROL $36,X 76 36 ROR $36,X 36 36... ROL $36,X× 9 |
Clobbers Z&N, and V |
FE 00 02 INC $0200,X 26 26 ROL $26 66 26 ROR $26 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $200-$2FF |
FE 00 03 INC $0300,X 26 26 ROL $26 66 26 ROR $26 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $300-$3FF |
FE 00 04 INC $0400,X 26 26 ROL $26 66 26 ROR $26 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $400-$4FF |
FE 00 05 INC $0500,X 26 26 ROL $26 66 26 ROR $26 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $500-$5FF |
FE 00 06 INC $0600,X 26 26 ROL $26 66 26 ROR $26 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $600-$6FF |
FE 00 07 INC $0700,X 26 26 ROL $26 66 26 ROR $26 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $700-$7FF |
EA NOP 04 04 NOP $04 36 36 ROL $36,X 76 36 ROR $36,X 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires support for unofficial opcodes |
26 bytes | |
EA NOP 4C xx xx JMP *+3 36 36 ROL $36,X 76 36 ROR $36,X 36 36... ROL $36,X× 9 |
Clobbers Z&N; and not relocatable code |
27 bytes | |
EA NOP 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 26 26... ROL $26 × 9 |
Clobbers Z&N |
36 bytes | |
18 ... CLC × 34 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 34 50 00 BVC *+2 |
Clobbers V |
85 xx STA @zptemp EA ... NOP × 34 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 34 |
Requires support for unofficial opcodes |
37 bytes | |
4C xx xx JMP *+3 EA ... NOP × 34 |
Not relocatable code |
72 cycles
5 bytes | |
---|---|
A9 LDA #45 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
48 PHA A0 88 LDY #136 ;hides 'DEY' EA NOP 30 FC BMI *-2 |
Clobbers Y, S, and Z&N; and writes in stack |
48 PHA A2 0A LDX #10 ;hides 'ASL A' CA DEX D0 FC BNE *-2 |
Clobbers A, X, S, Z&N, and C; and writes in stack |
7 bytes | |
A4 A4 LDY $A4 A0 88 LDY #136 ;hides 'DEY' EA NOP 30 FC BMI *-2 |
Clobbers Y, and Z&N |
A6 A6 LDX $A6 A2 0A LDX #10 ;hides 'ASL A' CA DEX D0 FC BNE *-2 |
Clobbers A, X, Z&N, and C |
A2 0D LDX #13 CA DEX D0 FD BNE *-1 F6 xx INC @zptemp,X |
Clobbers X, and Z&N; and requires @zptemp |
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 |
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 × 2 A2 0D LDX #13 CA DEX D0 FD BNE *-1 |
Clobbers X, S, and Z&N; and writes in stack |
EA NOP 68 PLA A2 0D LDX #13 CA DEX D0 FD BNE *-1 |
Clobbers A, X, S, and Z&N |
8 bytes | |
EA ... NOP × 3 A2 0D LDX #13 CA DEX D0 FD BNE *-1 |
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 |
68 PLA 38 SEC A9 0D LDA #13 E9 01 SBC #1 D0 FB BNE *-3 |
Clobbers A, S, Z&N, C, and V |
48 ... PHA × 3 A9 0A LDA #$0A ;hides 'ASL A' 48 PHA D0 FC BNE *-2 |
Clobbers A, S, Z&N, and C; and writes in stack |
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 |
9 bytes | |
EA ... NOP × 2 38 SEC A9 0D LDA #13 E9 01 SBC #1 D0 FB BNE *-3 |
Clobbers A, Z&N, C, and V |
98 TYA 48 PHA A0 0C LDY #12 88 DEY D0 FD BNE *-1 68 PLA A8 TAY |
Clobbers A, and Z&N; and writes in stack |
08 PHP A2 08 LDX #8 C5 C5 CMP $C5 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 08 LDY #8 C5 C5 CMP $C5 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' 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' 85 xx STA @zptemp D0 FB BNE *-3 28 PLP |
Clobbers A; requires @zptemp; and writes in stack |
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 |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 04 04 NOP $04 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 04 NOP $04 D0 FB BNE *-3 |
Clobbers A, Z&N, and C; and requires support for unofficial opcodes |
08 PHP 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 04 04 NOP $04 D0 FB BNE *-3 28 PLP |
Clobbers A; requires support for unofficial opcodes; and writes in stack |
10 bytes | |
EA NOP 48 PHA 38 SEC A9 0C LDA #12 E9 01 SBC #1 D0 FB BNE *-3 68 PLA |
Clobbers Z&N, C, and V; 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 |
EA NOP 08 PHP 38 SEC A9 0C LDA #12 E9 01 SBC #1 D0 FB BNE *-3 28 PLP |
Clobbers A; and writes in stack |
EA NOP 68 PLA 48 PHA 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 |
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 @rts12, and @rts15; and writes in stack |
08 PHP 48 PHA 38 SEC A9 EB LDA #$EB ;hides 'SBC #$1A' 1A NOP ;first loop only B0 FC BCS *-2 68 PLA 28 PLP |
Requires support for unofficial opcodes; 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 |
EA NOP 68 PLA 48 PHA 68 ... PLA × 2 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 |
Clobbers A, S, Z&N, and C |
11 bytes | |
08 PHP 28 PLP 08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 30 FC BMI *-2 68 PLA 28 PLP |
Writes in stack |
A5 A5 LDA $A5 18 CLC A9 2A LDA #$2A ;hides 'ROL A' 36 36 ROL $36,X 76 36 ROR $36,X 90 F9 BCC *-5 |
Clobbers A, Z&N, and C |
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 36 ROL $36,X \ × 6 76 36 ROR $36,X / |
Clobbers Z&N |
36 bytes | |
EA ... NOP × 36 |
No requirements |
73 cycles
5 bytes | |
---|---|
A9 LDA #46 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
EA NOP A2 0E LDX #14 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
EA NOP A0 0E LDY #14 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only D0 FC BNE *-2 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
7 bytes | |
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 A2 0D LDX #13 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 0D LDY #13 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; 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 |
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 |
9 bytes | |
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 |
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' 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' 04 04 NOP $04 D0 FB BNE *-3 68 PLA |
Clobbers S, Z&N, and C; requires support for unofficial opcodes; and writes in stack |
48 PHA 08 PHP A9 0A LDA #$0A ;hides 'ASL A' 04 04 NOP $04 D0 FB BNE *-3 28 PLP |
Clobbers A, and S; requires support for unofficial opcodes; and writes in stack |
10 bytes | |
08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 10 FB BPL *-3 68 PLA 28 PLP |
Writes in stack |
19 bytes | |
EA NOP 68 PLA 48 PHA 68 ... PLA × 16 |
Clobbers A, S, and Z&N |
21 bytes | |
68 PLA \ × 2 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 |
25 bytes | |
EA NOP E6 xx INC @zptemp 36 36 ROL $36,X 76 36 ROR $36,X 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires @zptemp |
FE 00 02 INC $0200,X 36 36 ROL $36,X 76 36 ROR $36,X 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $200-$2FF |
FE 00 03 INC $0300,X 36 36 ROL $36,X 76 36 ROR $36,X 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $300-$3FF |
FE 00 04 INC $0400,X 36 36 ROL $36,X 76 36 ROR $36,X 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $400-$4FF |
FE 00 05 INC $0500,X 36 36 ROL $36,X 76 36 ROR $36,X 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $500-$5FF |
FE 00 06 INC $0600,X 36 36 ROL $36,X 76 36 ROR $36,X 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $600-$6FF |
FE 00 07 INC $0700,X 36 36 ROL $36,X 76 36 ROR $36,X 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $700-$7FF |
26 bytes | |
C5 C5 CMP $C5 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / |
Clobbers Z&N, and C |
24 24 BIT $24 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / |
Clobbers Z&N, and V |
04 04 NOP $04 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
27 bytes | |
4C xx xx JMP *+3 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / |
Clobbers Z&N; and not relocatable code |
28 bytes | |
EA ... NOP × 2 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 26 26... ROL $26 × 9 |
Clobbers Z&N |
37 bytes | |
18 ... CLC × 35 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 35 50 00 BVC *+2 |
Clobbers V |
85 xx STA @zptemp EA ... NOP × 35 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 35 |
Requires support for unofficial opcodes |
38 bytes | |
4C xx xx JMP *+3 EA ... NOP × 35 |
Not relocatable code |
74 cycles
5 bytes | |
---|---|
A9 LDA #47 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
48 PHA A2 0E LDX #14 CA DEX D0 FD BNE *-1 |
Clobbers X, S, and Z&N; and writes in stack |
48 PHA A0 0E LDY #14 88 DEY D0 FD BNE *-1 |
Clobbers Y, S, and Z&N; and writes in stack |
7 bytes | |
A6 A6 LDX $A6 A2 0E LDX #14 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
A4 A4 LDY $A4 A0 0E LDY #14 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
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 |
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 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 |
8 bytes | |
A5 A5 LDA $A5 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 A2 0C LDX #12 CA DEX D0 FD BNE *-1 F6 xx INC @zptemp,X 28 PLP |
Clobbers X; requires @zptemp; and writes in stack |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' F6 F6 INC $F6,X 90 FB BCC *-3 68 PLA |
Clobbers Z&N, and C; requires @zptemp, and writable $00-$FF; and writes in stack |
08 PHP 18 CLC A9 0A LDA #$0A ;hides 'ASL A' F6 F6 INC $F6,X 90 FB BCC *-3 28 PLP |
Clobbers A; requires @zptemp, and writable $00-$FF; and writes in stack |
08 PHP A0 06 LDY #6 F6 F6 INC $F6,X 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; requires @zptemp, and writable $00-$FF; 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 |
48 PHA 08 PHP A2 09 LDX #9 EA NOP CA DEX D0 FC BNE *-2 28 PLP |
Clobbers X, and S; and writes in stack |
48 PHA 08 PHP A0 09 LDY #9 EA NOP 88 DEY D0 FC BNE *-2 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 04 NOP $04 D0 FB BNE *-3 28 PLP |
Clobbers A, S, and Z&N; requires support for unofficial opcodes; and writes in stack |
10 bytes | |
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 |
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 C5 CMP $C5 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
EA NOP 08 PHP A0 08 LDY #8 C5 C5 CMP $C5 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
11 bytes | |
48 PHA 98 TYA 48 PHA A0 0B LDY #11 88 DEY D0 FD BNE *-1 68 PLA A8 TAY 68 PLA |
Clobbers Z&N; and writes in stack |
08 PHP E6 xx INC @zptemp 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 18 CLC D0 FC BNE *-2 68 PLA 28 PLP |
Requires @zptemp; and writes in stack |
EA NOP 08 PHP 48 PHA 38 SEC A9 EB LDA #$EB ;hides 'SBC #$1A' 1A NOP ;first loop only B0 FC BCS *-2 68 PLA 28 PLP |
Requires support for unofficial opcodes; 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 |
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 36 ROL $36,X \ × 6 76 36 ROR $36,X / |
Clobbers Z&N |
37 bytes | |
EA ... NOP × 37 |
No requirements |
75 cycles
5 bytes | |
---|---|
A9 LDA #48 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
68 PLA A2 0E LDX #14 CA DEX D0 FD BNE *-1 |
Clobbers A, X, S, and Z&N |
68 PLA A0 0E LDY #14 88 DEY D0 FD BNE *-1 |
Clobbers A, Y, S, and Z&N |
7 bytes | |
EA ... NOP × 2 A2 0E LDX #14 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
EA ... NOP × 2 A0 0E LDY #14 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
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 |
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 |
EA NOP 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only D0 FC BNE *-2 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
68 PLA A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 |
Clobbers A, S, Z&N, and C |
8 bytes | |
EA ... NOP × 2 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 |
Clobbers A, Z&N, and C |
EA NOP 08 PHP A2 0D LDX #13 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
EA NOP 08 PHP A0 0D LDY #13 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; and writes in stack |
9 bytes | |
48 PHA 38 SEC A9 0D LDA #13 E9 01 SBC #1 D0 FB BNE *-3 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
08 PHP 38 SEC A9 0D LDA #13 E9 01 SBC #1 D0 FB BNE *-3 28 PLP |
Clobbers A; 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 |
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 |
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 04 NOP $04 D0 FB BNE *-3 68 PLA |
Clobbers S, Z&N, and C; requires support for unofficial opcodes; and writes in stack |
11 bytes | |
08 PHP 48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 10 FB BPL *-3 68 PLA 28 PLP |
Writes in stack |
19 bytes | |
68 PLA 48 PHA 68 ... PLA × 17 |
Clobbers A, S, and Z&N |
22 bytes | |
36 36 ROL $36,X 76 36 ROR $36,X 68 PLA \ × 9 48 PHA / |
Clobbers A, and Z&N |
26 bytes | |
C5 C5 CMP $C5 36 36 ROL $36,X \ × 6 76 36 ROR $36,X / |
Clobbers Z&N, and C |
24 24 BIT $24 36 36 ROL $36,X \ × 6 76 36 ROR $36,X / |
Clobbers Z&N, and V |
E6 xx INC @zptemp 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / |
Clobbers Z&N; and requires @zptemp |
EA NOP FE 00 02 INC $0200,X 36 36 ROL $36,X 76 36 ROR $36,X 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $200-$2FF |
EA NOP FE 00 03 INC $0300,X 36 36 ROL $36,X 76 36 ROR $36,X 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $300-$3FF |
EA NOP FE 00 04 INC $0400,X 36 36 ROL $36,X 76 36 ROR $36,X 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $400-$4FF |
EA NOP FE 00 05 INC $0500,X 36 36 ROL $36,X 76 36 ROR $36,X 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $500-$5FF |
EA NOP FE 00 06 INC $0600,X 36 36 ROL $36,X 76 36 ROR $36,X 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $600-$6FF |
EA NOP FE 00 07 INC $0700,X 36 36 ROL $36,X 76 36 ROR $36,X 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $700-$7FF |
04 04 NOP $04 36 36 ROL $36,X \ × 6 76 36 ROR $36,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
27 bytes | |
4C xx xx JMP *+3 36 36 ROL $36,X \ × 6 76 36 ROR $36,X / |
Clobbers Z&N; and not relocatable code |
29 bytes | |
EA ... NOP × 3 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 26 26... ROL $26 × 9 |
Clobbers Z&N |
38 bytes | |
18 ... CLC × 36 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 36 50 00 BVC *+2 |
Clobbers V |
85 xx STA @zptemp EA ... NOP × 36 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 36 |
Requires support for unofficial opcodes |
39 bytes | |
4C xx xx JMP *+3 EA ... NOP × 36 |
Not relocatable code |
76 cycles
5 bytes | |
---|---|
A2 0F LDX #15 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
A0 0F LDY #15 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
A9 LDA #49 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
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 | |
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 |
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 |
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 |
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 |
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 |
04 04 NOP $04 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only D0 FC BNE *-2 |
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 04 NOP $04 D0 FB BNE *-3 |
Clobbers A, Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; 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 |
48 PHA 08 PHP A2 0D LDX #13 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X, and S; and writes in stack |
9 bytes | |
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 A5 LDA $A5 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 |
Clobbers A, Z&N, and C |
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 A6 LDX $A6 A2 0D LDX #13 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
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 | |
26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X 76 36 ROR $36,X 36 36... ROL $36,X× 9 |
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 | |
A2 0E LDX #14 CA DEX D0 FD BNE *-1 F6 xx INC @zptemp,X |
Clobbers X, and Z&N; and requires @zptemp |
F6 F6 INC $F6,X A0 0E LDY #14 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N; and requires @zptemp, and writable $00-$FF |
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 |
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 |
A2 0A LDX #10 ;hides 'ASL A' CA DEX D0 FC BNE *-2 03 xx SLO (@ptrtemp,X) |
Clobbers A, X, Z&N, and C; and requires @ptrtemp, and support for unofficial opcodes |
A0 0A LDY #10 ;hides 'ASL A' 88 DEY D0 FC BNE *-2 13 xx SLO (@ptrtemp),Y |
Clobbers A, Y, Z&N, and C; and requires @ptrtemp, and support for unofficial opcodes |
48 ... PHA × 2 A2 0E LDX #14 CA DEX D0 FD BNE *-1 |
Clobbers X, S, and Z&N; and writes in stack |
48 ... PHA × 2 A0 0E LDY #14 88 DEY D0 FD BNE *-1 |
Clobbers Y, S, and Z&N; and writes in stack |
EA NOP 68 PLA A2 0E LDX #14 CA DEX D0 FD BNE *-1 |
Clobbers A, X, S, and Z&N |
EA NOP 68 PLA A0 0E LDY #14 88 DEY D0 FD BNE *-1 |
Clobbers A, Y, S, and Z&N |
68 PLA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only D0 FC BNE *-2 |
Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes |
8 bytes | |
EA ... NOP × 3 A2 0E LDX #14 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
EA ... NOP × 3 A0 0E LDY #14 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
F6 F6 INC $F6,X A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 |
Clobbers A, Z&N, and C; and requires @zptemp, and writable $00-$FF |
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 @rts12, and @rts14; and writes in stack |
EA ... NOP × 2 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only D0 FC BNE *-2 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
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 |
9 bytes | |
EA ... NOP × 3 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 |
Clobbers A, Z&N, and C |
98 TYA 48 PHA A0 0D LDY #13 88 DEY D0 FD BNE *-1 68 PLA A8 TAY |
Clobbers A, and Z&N; and writes in stack |
EA ... NOP × 2 08 PHP A2 0D LDX #13 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
EA ... NOP × 2 08 PHP A0 0D LDY #13 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; and writes in stack |
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 48 PHA 38 SEC A9 0D LDA #13 E9 01 SBC #1 D0 FB BNE *-3 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
EA NOP 08 PHP 38 SEC A9 0D LDA #13 E9 01 SBC #1 D0 FB BNE *-3 28 PLP |
Clobbers A; 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 |
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 @rts12, and @rts15; and writes in stack |
08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 04 04 NOP $04 D0 FB BNE *-3 68 PLA 28 PLP |
Requires support for unofficial opcodes; 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 |
11 bytes | |
08 PHP 48 PHA 38 SEC A9 0C LDA #12 E9 01 SBC #1 D0 FB BNE *-3 68 PLA 28 PLP |
Writes in stack |
20 bytes | |
EA NOP 68 PLA 48 PHA 68 ... PLA × 17 |
Clobbers A, S, and Z&N |
22 bytes | |
68 PLA \ × 11 48 PHA / |
Clobbers A, and Z&N |
26 bytes | |
E6 xx INC @zptemp 36 36 ROL $36,X \ × 6 76 36 ROR $36,X / |
Clobbers Z&N; and requires @zptemp |
27 bytes | |
EA NOP C5 C5 CMP $C5 36 36 ROL $36,X \ × 6 76 36 ROR $36,X / |
Clobbers Z&N, and C |
EA NOP 24 24 BIT $24 36 36 ROL $36,X \ × 6 76 36 ROR $36,X / |
Clobbers Z&N, and V |
FE 00 02 INC $0200,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $200-$2FF |
FE 00 03 INC $0300,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $300-$3FF |
FE 00 04 INC $0400,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $400-$4FF |
FE 00 05 INC $0500,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $500-$5FF |
FE 00 06 INC $0600,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $600-$6FF |
FE 00 07 INC $0700,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $700-$7FF |
EA NOP 04 04 NOP $04 36 36 ROL $36,X \ × 6 76 36 ROR $36,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
28 bytes | |
EA NOP 4C xx xx JMP *+3 36 36 ROL $36,X \ × 6 76 36 ROR $36,X / |
Clobbers Z&N; and not relocatable code |
30 bytes | |
26 26 ROL $26 \ × 2 66 26 ROR $26 / 36 36 ROL $36,X 76 36 ROR $36,X 26 26... ROL $26 × 9 |
Clobbers Z&N |
39 bytes | |
18 ... CLC × 37 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 37 50 00 BVC *+2 |
Clobbers V |
85 xx STA @zptemp EA ... NOP × 37 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 37 |
Requires support for unofficial opcodes |
40 bytes | |
4C xx xx JMP *+3 EA ... NOP × 37 |
Not relocatable code |
78 cycles
5 bytes | |
---|---|
A9 LDA #51 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A2 0B LDX #11 EA NOP CA DEX D0 FC BNE *-2 |
Clobbers X, and Z&N |
A0 0B LDY #11 EA NOP 88 DEY D0 FC BNE *-2 |
Clobbers Y, and Z&N |
18 CLC 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 | |
38 SEC A9 0F LDA #15 E9 01 SBC #1 D0 FB BNE *-3 |
Clobbers A, Z&N, C, and V |
08 PHP A2 0E LDX #14 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 0E LDY #14 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; 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 |
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 |
8 bytes | |
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 |
68 PLA 48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 |
Clobbers A, Z&N, and C |
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 |
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 |
23 bytes | |
68 PLA 48 PHA 36 36 ROL $36,X 76 36 ROR $36,X A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 12 10 F0 BPL *-14 |
Clobbers A, and Z&N |
26 bytes | |
36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N |
39 bytes | |
EA ... NOP × 39 |
No requirements |
79 cycles
5 bytes | |
---|---|
A9 LDA #52 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
A0 88 LDY #136 ;hides 'DEY' 48 PHA 30 FC BMI *-2 |
Clobbers Y, S, and Z&N; and writes in stack |
6 bytes | |
A0 88 LDY #136 ;hides 'DEY' C5 C5 CMP $C5 30 FB BMI *-3 |
Clobbers Y, Z&N, and C |
A0 88 LDY #136 ;hides 'DEY' 24 24 BIT $24 30 FB BMI *-3 |
Clobbers Y, Z&N, and V |
A0 88 LDY #136 ;hides 'DEY' A5 A5 LDA $A5 30 FB BMI *-3 |
Clobbers A, Y, and Z&N |
A0 88 LDY #136 ;hides 'DEY' A6 A6 LDX $A6 30 FB BMI *-3 |
Clobbers X, Y, and Z&N |
A0 88 LDY #136 ;hides 'DEY' 85 xx STA @zptemp 30 FB BMI *-3 |
Clobbers Y, and Z&N; and requires @zptemp |
A0 88 LDY #136 ;hides 'DEY' 04 04 NOP $04 30 FB BMI *-3 |
Clobbers Y, and Z&N; and requires support for unofficial opcodes |
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 |
48 PHA A2 0F LDX #15 CA DEX D0 FD BNE *-1 |
Clobbers X, S, and Z&N; and writes in stack |
7 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' B8 CLV 50 00 BVC *+2 D0 FA BNE *-4 |
Clobbers A, Z&N, C, and V |
A6 A6 LDX $A6 A2 0F LDX #15 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
A4 A4 LDY $A4 A0 0F LDY #15 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
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 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 |
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 |
A9 0A LDA #$0A ;hides 'ASL A' 04 04 NOP $04 18 CLC D0 FA BNE *-4 |
Clobbers A, Z&N, and C; and requires support for unofficial opcodes |
8 bytes | |
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 |
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 |
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 |
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 |
9 bytes | |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 4 90 F9 BCC *-5 |
Clobbers A, Z&N, and C |
08 PHP A4 A4 LDY $A4 A0 88 LDY #136 ;hides 'DEY' EA NOP 30 FC BMI *-2 28 PLP |
Clobbers Y; and writes in stack |
08 PHP A6 A6 LDX $A6 A2 0A LDX #10 ;hides 'ASL A' CA DEX D0 FC BNE *-2 28 PLP |
Clobbers A, and X; and writes in stack |
08 PHP A2 0D LDX #13 CA DEX D0 FD BNE *-1 F6 xx INC @zptemp,X 28 PLP |
Clobbers X; requires @zptemp; 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 |
48 ... PHA × 2 08 PHP A2 0D LDX #13 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X, and S; and writes in stack |
10 bytes | |
EA NOP 98 TYA 48 PHA A0 0D LDY #13 88 DEY D0 FD BNE *-1 68 PLA A8 TAY |
Clobbers A, and Z&N; and writes in stack |
EA ... NOP × 3 08 PHP A2 0D LDX #13 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; 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 |
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 |
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 |
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 |
11 bytes | |
48 PHA 98 TYA 48 PHA A0 0C LDY #12 88 DEY D0 FD BNE *-1 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 FB BNE *-3 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 04 NOP $04 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 FB BNE *-3 68 PLA 28 PLP |
Writes in stack |
20 bytes | |
68 PLA 48 PHA 68 ... PLA × 18 |
Clobbers A, S, and Z&N |
23 bytes | |
EA NOP 68 PLA \ × 11 48 PHA / |
Clobbers A, and Z&N |
27 bytes | |
EA NOP E6 xx INC @zptemp 36 36 ROL $36,X \ × 6 76 36 ROR $36,X / |
Clobbers Z&N; and requires @zptemp |
FE 00 02 INC $0200,X 36 36 ROL $36,X \ × 6 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $200-$2FF |
FE 00 03 INC $0300,X 36 36 ROL $36,X \ × 6 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $300-$3FF |
FE 00 04 INC $0400,X 36 36 ROL $36,X \ × 6 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $400-$4FF |
FE 00 05 INC $0500,X 36 36 ROL $36,X \ × 6 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $500-$5FF |
FE 00 06 INC $0600,X 36 36 ROL $36,X \ × 6 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $600-$6FF |
FE 00 07 INC $0700,X 36 36 ROL $36,X \ × 6 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $700-$7FF |
28 bytes | |
C5 C5 CMP $C5 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X 76 36 ROR $36,X 36 36... ROL $36,X× 9 |
Clobbers Z&N, and C |
24 24 BIT $24 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X 76 36 ROR $36,X 36 36... ROL $36,X× 9 |
Clobbers Z&N, and V |
04 04 NOP $04 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X 76 36 ROR $36,X 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires support for unofficial opcodes |
29 bytes | |
4C xx xx JMP *+3 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X 76 36 ROR $36,X 36 36... ROL $36,X× 9 |
Clobbers Z&N; and not relocatable code |
30 bytes | |
26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 26 26... ROL $26 × 9 |
Clobbers Z&N |
40 bytes | |
18 ... CLC × 38 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 38 50 00 BVC *+2 |
Clobbers V |
85 xx STA @zptemp EA ... NOP × 38 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 38 |
Requires support for unofficial opcodes |
41 bytes | |
4C xx xx JMP *+3 EA ... NOP × 38 |
Not relocatable code |
80 cycles
5 bytes | |
---|---|
A9 LDA #53 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A2 88 LDX #136 ;hides 'DEY' EA NOP CA DEX 30 FB BMI *-3 |
Clobbers X, Y, and Z&N |
68 PLA 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 |
68 PLA A2 0F LDX #15 CA DEX D0 FD BNE *-1 |
Clobbers A, X, S, and Z&N |
68 PLA A0 0F LDY #15 88 DEY D0 FD BNE *-1 |
Clobbers A, Y, S, and Z&N |
7 bytes | |
EA ... NOP × 2 A2 0F LDX #15 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
EA ... NOP × 2 A0 0F LDY #15 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
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 |
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 |
38 SEC A9 EB LDA #$EB ;hides 'SBC #$1A' 1A NOP ;first loop only EA NOP B0 FB BCS *-3 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
8 bytes | |
38 SEC A9 0B LDA #11 EA NOP E9 01 SBC #1 D0 FA BNE *-4 |
Clobbers A, Z&N, C, and V |
EA NOP 08 PHP A2 0E LDX #14 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
EA NOP 08 PHP A0 0E LDY #14 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; and writes in stack |
48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;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 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only D0 FC BNE *-2 28 PLP |
Clobbers A; requires support for unofficial opcodes; and writes in stack |
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 |
9 bytes | |
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 68 PLA 48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 |
Clobbers A, Z&N, and C |
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 |
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 04 NOP $04 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 | |
68 PLA \ × 3 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 |
27 bytes | |
EA NOP 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N |
40 bytes | |
EA ... NOP × 40 |
No requirements |
81 cycles
5 bytes | |
---|---|
A2 10 LDX #16 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
A0 10 LDY #16 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
A9 LDA #54 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 48 PHA 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 |
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 |
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 |
A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 04 04 NOP $04 30 FA BMI *-4 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
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 |
8 bytes | |
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' 20 xx xx JSR @rts15 90 FA BCC *-4 |
Clobbers A, Z&N, and C; requires @rts12, and @rts15; and writes in stack |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 04 04 NOP $04 18 CLC D0 FA BNE *-4 |
Clobbers A, Z&N, and C; and requires support for unofficial opcodes |
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 A2 0E LDX #14 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X, and S; and writes in stack |
48 PHA 08 PHP A0 0E LDY #14 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y, and S; and writes in stack |
9 bytes | |
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 |
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 |
08 PHP A6 A6 LDX $A6 A2 0E LDX #14 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
08 PHP A4 A4 LDY $A4 A0 0E LDY #14 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; and writes in stack |
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 |
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 |
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 |
10 bytes | |
C5 C5 CMP $C5 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 26 ROL $26 66 26 ROR $26 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 |
Clobbers A, Z&N, and C |
08 PHP A5 A5 LDA $A5 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 28 PLP |
Clobbers A; and writes in stack |
11 bytes | |
08 PHP 48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' F6 F6 INC $F6,X 90 FB BCC *-3 68 PLA 28 PLP |
Requires @zptemp, and writable $00-$FF; and writes in stack |
12 bytes | |
08 PHP 48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 3 90 FA BCC *-4 68 PLA 28 PLP |
Writes in stack |
21 bytes | |
EA NOP 68 PLA 48 PHA 68 ... PLA × 18 |
Clobbers A, S, and Z&N |
23 bytes | |
68 PLA \ × 2 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 |
28 bytes | |
C5 C5 CMP $C5 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N, and C |
24 24 BIT $24 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N, and V |
E6 xx INC @zptemp 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X 76 36 ROR $36,X 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires @zptemp |
EA NOP FE 00 02 INC $0200,X 36 36 ROL $36,X \ × 6 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $200-$2FF |
EA NOP FE 00 03 INC $0300,X 36 36 ROL $36,X \ × 6 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $300-$3FF |
EA NOP FE 00 04 INC $0400,X 36 36 ROL $36,X \ × 6 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $400-$4FF |
EA NOP FE 00 05 INC $0500,X 36 36 ROL $36,X \ × 6 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $500-$5FF |
EA NOP FE 00 06 INC $0600,X 36 36 ROL $36,X \ × 6 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $600-$6FF |
EA NOP FE 00 07 INC $0700,X 36 36 ROL $36,X \ × 6 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $700-$7FF |
04 04 NOP $04 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires support for unofficial opcodes |
29 bytes | |
4C xx xx JMP *+3 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and not relocatable code |
30 bytes | |
36 36 ROL $36,X \ × 3 76 36 ROR $36,X / 26 26... ROL $26 × 9 |
Clobbers Z&N |
41 bytes | |
18 ... CLC × 39 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 39 50 00 BVC *+2 |
Clobbers V |
85 xx STA @zptemp EA ... NOP × 39 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 39 |
Requires support for unofficial opcodes |
42 bytes | |
4C xx xx JMP *+3 EA ... NOP × 39 |
Not relocatable code |
82 cycles
5 bytes | |
---|---|
A9 LDA #55 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
48 PHA A0 88 LDY #136 ;hides 'DEY' 48 PHA 30 FC BMI *-2 |
Clobbers Y, S, and Z&N; and writes in stack |
A2 09 LDX #9 68 PLA CA DEX D0 FC BNE *-2 |
Clobbers A, X, S, and Z&N |
A0 09 LDY #9 68 PLA 88 DEY D0 FC BNE *-2 |
Clobbers A, Y, S, and Z&N |
7 bytes | |
A2 09 LDX #9 EA ... NOP × 2 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N |
A0 09 LDY #9 EA ... NOP × 2 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N |
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 |
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 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 |
8 bytes | |
EA NOP 38 SEC A9 EB LDA #$EB ;hides 'SBC #$1A' 1A NOP ;first loop only EA NOP B0 FB BCS *-3 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
68 PLA 38 SEC A9 0F LDA #15 E9 01 SBC #1 D0 FB BNE *-3 |
Clobbers A, S, Z&N, C, and V |
9 bytes | |
EA ... NOP × 2 38 SEC A9 0F LDA #15 E9 01 SBC #1 D0 FB BNE *-3 |
Clobbers A, Z&N, C, and V |
98 TYA 48 PHA A0 0E LDY #14 88 DEY D0 FD BNE *-1 68 PLA A8 TAY |
Clobbers A, and Z&N; and writes in stack |
EA ... NOP × 2 08 PHP A2 0E LDX #14 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
EA ... NOP × 2 08 PHP A0 0E LDY #14 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; and writes in stack |
A5 A5 LDA $A5 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 |
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 |
EA NOP 48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only D0 FC BNE *-2 68 PLA |
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
04 04 NOP $04 A9 0A LDA #$0A ;hides 'ASL A' 04 04 NOP $04 18 CLC D0 FA BNE *-4 |
Clobbers A, Z&N, and C; and requires support for unofficial opcodes |
EA NOP 08 PHP 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only D0 FC BNE *-2 28 PLP |
Clobbers A; requires support for unofficial opcodes; and writes in stack |
68 ... PLA × 2 48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 |
Clobbers A, S, Z&N, and C |
10 bytes | |
EA ... NOP × 2 48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 68 PLA |
Clobbers Z&N, and C; and writes in stack |
EA ... NOP × 2 68 PLA 48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 |
Clobbers A, Z&N, and C |
EA ... NOP × 2 08 PHP A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 28 PLP |
Clobbers A; and writes in stack |
11 bytes | |
08 PHP 48 PHA 38 SEC A9 0D LDA #13 E9 01 SBC #1 D0 FB BNE *-3 68 PLA 28 PLP |
Writes in stack |
21 bytes | |
EA NOP 68 ... PLA × 20 |
Clobbers A, S, and Z&N |
24 bytes | |
36 36 ROL $36,X 76 36 ROR $36,X 68 PLA \ × 10 48 PHA / |
Clobbers A, and Z&N |
28 bytes | |
26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 6 76 36 ROR $36,X / |
Clobbers Z&N |
41 bytes | |
EA ... NOP × 41 |
No requirements |
83 cycles
5 bytes | |
---|---|
A9 LDA #56 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FC BPL *-2 |
Clobbers A, Z&N, C, V, and D |
EA NOP A2 10 LDX #16 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
EA NOP A0 10 LDY #16 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
7 bytes | |
38 SEC A9 10 LDA #16 E9 01 SBC #1 D0 FB BNE *-3 |
Clobbers A, Z&N, C, and V |
08 PHP A2 0F LDX #15 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 0F LDY #15 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; 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 |
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 |
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 |
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 04 NOP $04 18 CLC D0 FA BNE *-4 |
Clobbers A, S, Z&N, and C; and requires support for unofficial opcodes |
9 bytes | |
EA ... NOP × 2 A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp 18 CLC D0 FA BNE *-4 |
Clobbers A, Z&N, and C; and requires @zptemp |
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 |
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 |
EA ... NOP × 2 A9 0A LDA #$0A ;hides 'ASL A' 04 04 NOP $04 18 CLC D0 FA BNE *-4 |
Clobbers A, Z&N, and C; and requires support for unofficial opcodes |
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 |
48 ... PHA × 2 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;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 |
48 PHA 08 PHP 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only D0 FC BNE *-2 28 PLP |
Clobbers A, and S; requires support for unofficial opcodes; and writes in stack |
10 bytes | |
36 36 ROL $36,X 76 36 ROR $36,X A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 |
Clobbers A, Z&N, and C |
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 |
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 |
04 04 NOP $04 48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only D0 FC BNE *-2 68 PLA |
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
04 04 NOP $04 08 PHP 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only D0 FC BNE *-2 28 PLP |
Clobbers A; requires support for unofficial opcodes; and writes in stack |
00 00 BRK 0 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 04 04 NOP $04 D0 FB BNE *-3 68 PLA |
Clobbers Z&N, and C; requires dummy interrupt handler, and support for unofficial opcodes; 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 |
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 |
11 bytes | |
08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 18 CLC 10 FA BPL *-4 68 PLA 28 PLP |
Writes in stack |
21 bytes | |
68 PLA 48 PHA 68 ... PLA × 19 |
Clobbers A, S, and Z&N |
24 bytes | |
EA NOP 68 PLA \ × 2 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 |
28 bytes | |
E6 xx INC @zptemp 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires @zptemp |
29 bytes | |
EA NOP C5 C5 CMP $C5 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N, and C |
EA NOP 24 24 BIT $24 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N, and V |
FE 00 02 INC $0200,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X 76 36 ROR $36,X 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $200-$2FF |
FE 00 03 INC $0300,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X 76 36 ROR $36,X 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $300-$3FF |
FE 00 04 INC $0400,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X 76 36 ROR $36,X 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $400-$4FF |
FE 00 05 INC $0500,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X 76 36 ROR $36,X 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $500-$5FF |
FE 00 06 INC $0600,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X 76 36 ROR $36,X 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $600-$6FF |
FE 00 07 INC $0700,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X 76 36 ROR $36,X 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $700-$7FF |
EA NOP 04 04 NOP $04 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires support for unofficial opcodes |
30 bytes | |
EA NOP 4C xx xx JMP *+3 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and not relocatable code |
31 bytes | |
EA NOP 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / 26 26... ROL $26 × 9 |
Clobbers Z&N |
42 bytes | |
18 ... CLC × 40 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 40 50 00 BVC *+2 |
Clobbers V |
85 xx STA @zptemp EA ... NOP × 40 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 40 |
Requires support for unofficial opcodes |
43 bytes | |
4C xx xx JMP *+3 EA ... NOP × 40 |
Not relocatable code |
84 cycles
5 bytes | |
---|---|
A9 LDA #57 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
48 PHA A2 10 LDX #16 CA DEX D0 FD BNE *-1 |
Clobbers X, S, and Z&N; and writes in stack |
48 PHA A0 10 LDY #16 88 DEY D0 FD BNE *-1 |
Clobbers Y, S, and Z&N; and writes in stack |
7 bytes | |
A6 A6 LDX $A6 A2 10 LDX #16 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
A4 A4 LDY $A4 A0 10 LDY #16 88 DEY D0 FD BNE *-1 |
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 |
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 |
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 |
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 |
8 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' 08 PHP E6 xx INC @zptemp 28 PLP 10 F9 BPL *-5 |
Clobbers A, Z&N, and C; requires @zptemp; and writes in stack |
00 00 BRK 0 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 |
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack |
A9 0A LDA #$0A ;hides 'ASL A' 48 ... PHA × 4 10 F9 BPL *-5 |
Clobbers A, S, Z&N, and C; and writes in stack |
68 PLA 38 SEC A9 EB LDA #$EB ;hides 'SBC #$1A' 1A NOP ;first loop only EA NOP B0 FB BCS *-3 |
Clobbers A, S, Z&N, C, and V; and requires support for unofficial opcodes |
9 bytes | |
38 SEC A9 09 LDA #9 EA ... NOP × 2 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 24 24 BIT $24 28 PLP 18 CLC 10 F8 BPL *-6 |
Clobbers A, Z&N, and C; and writes in stack |
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 |
08 PHP A2 0E LDX #14 CA DEX D0 FD BNE *-1 F6 xx INC @zptemp,X 28 PLP |
Clobbers X; requires @zptemp; and writes in stack |
08 PHP F6 F6 INC $F6,X A0 0E LDY #14 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; requires @zptemp, and writable $00-$FF; 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 |
08 PHP A2 0A LDX #10 ;hides 'ASL A' CA DEX D0 FC BNE *-2 03 xx SLO (@ptrtemp,X) 28 PLP |
Clobbers A, and X; requires @ptrtemp, and support for unofficial opcodes; and writes in stack |
08 PHP A0 0A LDY #10 ;hides 'ASL A' 88 DEY D0 FC BNE *-2 13 xx SLO (@ptrtemp),Y 28 PLP |
Clobbers A, and Y; requires @ptrtemp, and support for unofficial opcodes; and writes in stack |
48 ... PHA × 2 08 PHP A2 0E LDX #14 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X, and S; and writes in stack |
48 ... PHA × 2 08 PHP A0 0E LDY #14 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y, 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 FC BNE *-2 28 PLP |
Clobbers A, S, and Z&N; requires support for unofficial opcodes; and writes in stack |
10 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 5 18 CLC 10 F7 BPL *-7 |
Clobbers A, Z&N, and C |
EA NOP 98 TYA 48 PHA A0 0E LDY #14 88 DEY D0 FD BNE *-1 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 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
EA ... NOP × 3 08 PHP A0 0E LDY #14 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; and writes in stack |
F6 F6 INC $F6,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; requires @zptemp, and writable $00-$FF; and writes in stack |
08 PHP F6 F6 INC $F6,X A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 28 PLP |
Clobbers A; requires @zptemp, and writable $00-$FF; 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 @rts12, and @rts14; and writes in stack |
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 @rts12, and @rts14; and writes in stack |
EA ... NOP × 2 48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only D0 FC BNE *-2 68 PLA |
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
EA ... NOP × 2 08 PHP 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only D0 FC BNE *-2 28 PLP |
Clobbers A; requires support for unofficial opcodes; 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 |
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 |
11 bytes | |
48 PHA 98 TYA 48 PHA A0 0D LDY #13 88 DEY D0 FD BNE *-1 68 PLA A8 TAY 68 PLA |
Clobbers Z&N; and writes in stack |
08 PHP 98 TYA 48 PHA A0 0D LDY #13 88 DEY D0 FD BNE *-1 68 PLA A8 TAY 28 PLP |
Clobbers A; and writes in stack |
12 bytes | |
EA NOP 08 PHP 48 PHA 38 SEC A9 0D LDA #13 E9 01 SBC #1 D0 FB BNE *-3 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 36 ROL $36,X \ × 7 76 36 ROR $36,X / |
Clobbers Z&N |
42 bytes | |
EA ... NOP × 42 |
No requirements |
85 cycles
5 bytes | |
---|---|
A9 LDA #58 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A2 0C LDX #12 EA NOP CA DEX D0 FC BNE *-2 |
Clobbers X, and Z&N |
A0 0C LDY #12 EA NOP 88 DEY D0 FC BNE *-2 |
Clobbers Y, and Z&N |
7 bytes | |
EA NOP 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FC BPL *-2 |
Clobbers A, Z&N, C, V, and D |
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 |
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 |
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 |
8 bytes | |
EA NOP 38 SEC A9 10 LDA #16 E9 01 SBC #1 D0 FB BNE *-3 |
Clobbers A, Z&N, C, and V |
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 |
08 PHP A2 0B LDX #11 EA NOP CA DEX D0 FC BNE *-2 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 0B LDY #11 EA NOP 88 DEY D0 FC BNE *-2 28 PLP |
Clobbers Y; and writes in stack |
9 bytes | |
48 PHA 38 SEC A9 0F LDA #15 E9 01 SBC #1 D0 FB BNE *-3 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
08 PHP 38 SEC A9 0F LDA #15 E9 01 SBC #1 D0 FB BNE *-3 28 PLP |
Clobbers A; 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 |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA NOP FE 00 02 INC $0200,X 90 F9 BCC *-5 |
Clobbers A, Z&N, and C; and requires writable $200-$2FF |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA NOP FE 00 03 INC $0300,X 90 F9 BCC *-5 |
Clobbers A, Z&N, and C; and requires writable $300-$3FF |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA NOP FE 00 04 INC $0400,X 90 F9 BCC *-5 |
Clobbers A, Z&N, and C; and requires writable $400-$4FF |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA NOP FE 00 05 INC $0500,X 90 F9 BCC *-5 |
Clobbers A, Z&N, and C; and requires writable $500-$5FF |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA NOP FE 00 06 INC $0600,X 90 F9 BCC *-5 |
Clobbers A, Z&N, and C; and requires writable $600-$6FF |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA NOP FE 00 07 INC $0700,X 90 F9 BCC *-5 |
Clobbers A, Z&N, and C; and requires writable $700-$7FF |
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 |
EA NOP 68 PLA A9 0A LDA #$0A ;hides 'ASL A' 04 04 NOP $04 18 CLC D0 FA BNE *-4 |
Clobbers A, S, Z&N, and C; and requires support for unofficial opcodes |
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 \ × 2 48 PHA / A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 |
Clobbers A, Z&N, and C |
22 bytes | |
EA NOP 68 PLA 48 PHA 68 ... PLA × 19 |
Clobbers A, S, and Z&N |
25 bytes | |
68 PLA \ × 2 48 PHA / 36 36 ROL $36,X 76 36 ROR $36,X A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 12 10 F0 BPL *-14 |
Clobbers A, and Z&N |
29 bytes | |
EA NOP E6 xx INC @zptemp 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires @zptemp |
FE 00 02 INC $0200,X 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $200-$2FF |
FE 00 03 INC $0300,X 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $300-$3FF |
FE 00 04 INC $0400,X 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $400-$4FF |
FE 00 05 INC $0500,X 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $500-$5FF |
FE 00 06 INC $0600,X 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $600-$6FF |
FE 00 07 INC $0700,X 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $700-$7FF |
30 bytes | |
C5 C5 CMP $C5 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 6 76 36 ROR $36,X / |
Clobbers Z&N, and C |
24 24 BIT $24 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 6 76 36 ROR $36,X / |
Clobbers Z&N, and V |
04 04 NOP $04 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 6 76 36 ROR $36,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
31 bytes | |
4C xx xx JMP *+3 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 6 76 36 ROR $36,X / |
Clobbers Z&N; and not relocatable code |
32 bytes | |
EA ... NOP × 2 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / 26 26... ROL $26 × 9 |
Clobbers Z&N |
43 bytes | |
18 ... CLC × 41 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 41 50 00 BVC *+2 |
Clobbers V |
85 xx STA @zptemp EA ... NOP × 41 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 41 |
Requires support for unofficial opcodes |
44 bytes | |
4C xx xx JMP *+3 EA ... NOP × 41 |
Not relocatable code |
86 cycles
5 bytes | |
---|---|
A2 11 LDX #17 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
A0 11 LDY #17 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
A9 LDA #59 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
7 bytes | |
48 PHA 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 |
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 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FC BPL *-2 |
Clobbers A, S, Z&N, C, V, and D; and writes in stack |
8 bytes | |
A5 A5 LDA $A5 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FC BPL *-2 |
Clobbers A, Z&N, C, V, and D |
08 PHP A0 88 LDY #136 ;hides 'DEY' C5 C5 CMP $C5 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 |
00 00 BRK 0 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;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 |
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 |
48 PHA 08 PHP A2 0F LDX #15 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X, and S; and writes in stack |
9 bytes | |
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 A5 LDA $A5 38 SEC A9 10 LDA #16 E9 01 SBC #1 D0 FB BNE *-3 |
Clobbers A, Z&N, C, and V |
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 A6 LDX $A6 A2 0F LDX #15 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
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 |
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 |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 04 04 NOP $04 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 04 NOP $04 18 CLC D0 FA BNE *-4 |
Clobbers A, Z&N, and C; and requires support for unofficial opcodes |
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 |
68 PLA 48 PHA 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 |
68 PLA 48 PHA 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 |
11 bytes | |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 5 18 CLC 10 F7 BPL *-7 |
Clobbers A, Z&N, and C |
12 bytes | |
EA NOP 48 PHA 98 TYA 48 PHA A0 0D LDY #13 88 DEY D0 FD BNE *-1 68 PLA A8 TAY 68 PLA |
Clobbers Z&N; and writes in stack |
00 00 BRK 0 08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 10 FB BPL *-3 68 PLA 28 PLP |
Requires dummy interrupt handler; and writes in stack |
48 PHA 08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 18 CLC 10 FA BPL *-4 68 PLA 28 PLP |
Clobbers S; and writes in stack |
13 bytes | |
EA ... NOP × 2 08 PHP 48 PHA 38 SEC A9 0D LDA #13 E9 01 SBC #1 D0 FB BNE *-3 68 PLA 28 PLP |
Writes in stack |
22 bytes | |
EA NOP 68 ... PLA × 21 |
Clobbers A, S, and Z&N |
25 bytes | |
EA NOP 68 PLA \ × 12 48 PHA / |
Clobbers A, and Z&N |
29 bytes | |
EA NOP 36 36 ROL $36,X \ × 7 76 36 ROR $36,X / |
Clobbers Z&N |
43 bytes | |
EA ... NOP × 43 |
No requirements |
87 cycles
5 bytes | |
---|---|
A9 LDA #60 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' 48 ... PHA × 2 D0 FB BNE *-3 |
Clobbers A, S, Z&N, and C; and writes in stack |
A2 F8 LDX #248 ;hides 'SED' 68 PLA E8 INX D0 FB BNE *-3 |
Clobbers A, X, S, Z&N, and D |
A0 F8 LDY #248 ;hides 'SED' 68 PLA C8 INY D0 FB BNE *-3 |
Clobbers A, Y, S, Z&N, and D |
7 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 2 18 CLC D0 FA BNE *-4 |
Clobbers A, Z&N, and C |
EA NOP A2 0C LDX #12 EA NOP CA DEX D0 FC BNE *-2 |
Clobbers X, and Z&N |
EA NOP A0 0C LDY #12 EA NOP 88 DEY D0 FC BNE *-2 |
Clobbers Y, and Z&N |
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 |
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 |
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 FD BNE *-1 68 PLA A8 TAY |
Clobbers A, and Z&N; and writes in stack |
EA ... NOP × 2 08 PHP A2 0F LDX #15 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
EA ... NOP × 2 08 PHP A0 0F LDY #15 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; 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 |
48 PHA 38 SEC A9 EB LDA #$EB ;hides 'SBC #$1A' 1A NOP ;first loop only EA NOP B0 FB BCS *-3 68 PLA |
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
08 PHP 38 SEC A9 EB LDA #$EB ;hides 'SBC #$1A' 1A NOP ;first loop only EA NOP B0 FB BCS *-3 28 PLP |
Clobbers A; requires support for unofficial opcodes; and writes in stack |
10 bytes | |
48 PHA 38 SEC A9 0B LDA #11 EA NOP E9 01 SBC #1 D0 FA BNE *-4 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
08 PHP 38 SEC A9 0B LDA #11 EA NOP E9 01 SBC #1 D0 FA BNE *-4 28 PLP |
Clobbers A; and writes in stack |
08 PHP 48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only D0 FC BNE *-2 68 PLA 28 PLP |
Requires support for unofficial opcodes; and writes in stack |
11 bytes | |
08 PHP 48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 68 PLA 28 PLP |
Writes in stack |
22 bytes | |
68 PLA 48 PHA 68 ... PLA × 20 |
Clobbers A, S, and Z&N |
25 bytes | |
68 PLA \ × 4 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 |
30 bytes | |
C5 C5 CMP $C5 36 36 ROL $36,X \ × 7 76 36 ROR $36,X / |
Clobbers Z&N, and C |
24 24 BIT $24 36 36 ROL $36,X \ × 7 76 36 ROR $36,X / |
Clobbers Z&N, and V |
E6 xx INC @zptemp 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 6 76 36 ROR $36,X / |
Clobbers Z&N; and requires @zptemp |
EA NOP FE 00 02 INC $0200,X 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $200-$2FF |
EA NOP FE 00 03 INC $0300,X 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $300-$3FF |
EA NOP FE 00 04 INC $0400,X 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $400-$4FF |
EA NOP FE 00 05 INC $0500,X 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $500-$5FF |
EA NOP FE 00 06 INC $0600,X 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $600-$6FF |
EA NOP FE 00 07 INC $0700,X 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $700-$7FF |
04 04 NOP $04 36 36 ROL $36,X \ × 7 76 36 ROR $36,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
31 bytes | |
4C xx xx JMP *+3 36 36 ROL $36,X \ × 7 76 36 ROR $36,X / |
Clobbers Z&N; and not relocatable code |
33 bytes | |
EA ... NOP × 3 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / 26 26... ROL $26 × 9 |
Clobbers Z&N |
44 bytes | |
18 ... CLC × 42 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 42 50 00 BVC *+2 |
Clobbers V |
85 xx STA @zptemp EA ... NOP × 42 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 42 |
Requires support for unofficial opcodes |
45 bytes | |
4C xx xx JMP *+3 EA ... NOP × 42 |
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 | |
38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FC BPL *-2 |
Clobbers A, Z&N, C, V, and D |
EA NOP A2 11 LDX #17 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
EA NOP A0 11 LDY #17 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
7 bytes | |
38 SEC A9 11 LDA #17 E9 01 SBC #1 D0 FB BNE *-3 |
Clobbers A, Z&N, C, and V |
08 PHP A2 10 LDX #16 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 10 LDY #16 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; 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 |
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 |
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 | |
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 |
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 |
EA ... NOP × 2 A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts12 10 FA BPL *-4 |
Clobbers A, Z&N, and C; requires @rts12; and writes in stack |
08 PHP 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 |
48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 04 04 NOP $04 30 FA BMI *-4 68 PLA |
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 04 04 NOP $04 30 FA BMI *-4 28 PLP |
Clobbers A; requires support for unofficial opcodes; and writes in stack |
48 ... PHA × 3 A9 0A LDA #$0A ;hides 'ASL A' 48 PHA 18 CLC D0 FB BNE *-3 |
Clobbers A, S, Z&N, and C; and writes in stack |
10 bytes | |
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 |
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 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' 20 xx xx JSR @rts15 90 FA BCC *-4 68 PLA |
Clobbers Z&N, and C; requires @rts12, and @rts15; and writes in stack |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 04 04 NOP $04 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 04 NOP $04 18 CLC D0 FA BNE *-4 |
Clobbers A, Z&N, and C; and requires support for unofficial opcodes |
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 |
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 68 PLA 48 PHA 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 |
A5 A5 LDA $A5 18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA NOP FE 00 02 INC $0200,X 90 F9 BCC *-5 |
Clobbers A, Z&N, and C; and requires writable $200-$2FF |
A5 A5 LDA $A5 18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA NOP FE 00 03 INC $0300,X 90 F9 BCC *-5 |
Clobbers A, Z&N, and C; and requires writable $300-$3FF |
A5 A5 LDA $A5 18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA NOP FE 00 04 INC $0400,X 90 F9 BCC *-5 |
Clobbers A, Z&N, and C; and requires writable $400-$4FF |
A5 A5 LDA $A5 18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA NOP FE 00 05 INC $0500,X 90 F9 BCC *-5 |
Clobbers A, Z&N, and C; and requires writable $500-$5FF |
A5 A5 LDA $A5 18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA NOP FE 00 06 INC $0600,X 90 F9 BCC *-5 |
Clobbers A, Z&N, and C; and requires writable $600-$6FF |
A5 A5 LDA $A5 18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA NOP FE 00 07 INC $0700,X 90 F9 BCC *-5 |
Clobbers A, Z&N, and C; and requires writable $700-$7FF |
48 PHA 08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 68 PLA 28 PLP |
Clobbers S; and writes in stack |
EA NOP 68 PLA 48 PHA 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 |
12 bytes | |
08 PHP C5 C5 CMP $C5 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 26 26 ROL $26 66 26 ROR $26 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 |
Clobbers A, Z&N, and C |
22 bytes | |
68 ... PLA × 22 |
Clobbers A, S, and Z&N |
25 bytes | |
68 PLA \ × 3 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 |
30 bytes | |
26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N |
44 bytes | |
EA ... NOP × 44 |
No requirements |
89 cycles
5 bytes | |
---|---|
A9 LDA #62 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
A0 88 LDY #136 ;hides 'DEY' 68 PLA 30 FC BMI *-2 |
Clobbers A, Y, S, and Z&N |
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 FC BNE *-2 |
Clobbers X, S, and Z&N; and writes in stack |
7 bytes | |
A6 A6 LDX $A6 A2 11 LDX #17 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
A9 69 LDA #$69 ;hides 'ADC #$18' 18 CLC ;first loop only F6 F6 INC $F6,X 90 FA BCC *-4 |
Clobbers A, Z&N, C, and V; and requires @zptemp, and writable $00-$FF |
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 |
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 |
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 |
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 A2 09 LDX #9 EA ... NOP × 2 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 09 LDY #9 EA ... NOP × 2 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
08 PHP 48 PHA A9 LDA #48 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
98 TYA 48 PHA A0 0B LDY #11 EA NOP 88 DEY D0 FC BNE *-2 68 PLA A8 TAY |
Clobbers A, and Z&N; 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 FB BCS *-3 68 PLA |
Clobbers Z&N, C, and V; requires support for unofficial opcodes; 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 FB BCS *-3 28 PLP |
Clobbers A; requires support for unofficial opcodes; 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 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' 85 xx STA @zptemp 18 CLC D0 FA BNE *-4 68 PLA |
Clobbers S, Z&N, and C; requires @zptemp; and writes in stack |
48 ... PHA × 2 A9 0A LDA #$0A ;hides 'ASL A' 04 04 NOP $04 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 FD BNE *-1 68 PLA A8 TAY 68 PLA |
Clobbers Z&N; and writes in stack |
EA ... NOP × 2 08 PHP 38 SEC A9 0F LDA #15 E9 01 SBC #1 D0 FB BNE *-3 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 FC BNE *-2 68 PLA 28 PLP |
Requires support for unofficial opcodes; and writes in stack |
12 bytes | |
EA ... NOP × 2 08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 68 PLA 28 PLP |
Writes in stack |
23 bytes | |
EA NOP 68 PLA 48 PHA 68 ... PLA × 20 |
Clobbers A, S, and Z&N |
26 bytes | |
36 36 ROL $36,X 76 36 ROR $36,X 68 PLA \ × 11 48 PHA / |
Clobbers A, and Z&N |
30 bytes | |
E6 xx INC @zptemp 36 36 ROL $36,X \ × 7 76 36 ROR $36,X / |
Clobbers Z&N; and requires @zptemp |
31 bytes | |
EA NOP C5 C5 CMP $C5 36 36 ROL $36,X \ × 7 76 36 ROR $36,X / |
Clobbers Z&N, and C |
EA NOP 24 24 BIT $24 36 36 ROL $36,X \ × 7 76 36 ROR $36,X / |
Clobbers Z&N, and V |
FE 00 02 INC $0200,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 6 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $200-$2FF |
FE 00 03 INC $0300,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 6 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $300-$3FF |
FE 00 04 INC $0400,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 6 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $400-$4FF |
FE 00 05 INC $0500,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 6 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $500-$5FF |
FE 00 06 INC $0600,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 6 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $600-$6FF |
FE 00 07 INC $0700,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 6 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $700-$7FF |
EA NOP 04 04 NOP $04 36 36 ROL $36,X \ × 7 76 36 ROR $36,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
32 bytes | |
EA NOP 4C xx xx JMP *+3 36 36 ROL $36,X \ × 7 76 36 ROR $36,X / |
Clobbers Z&N; and not relocatable code |
34 bytes | |
26 26 ROL $26 \ × 2 66 26 ROR $26 / 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 26 26... ROL $26 × 9 |
Clobbers Z&N |
45 bytes | |
18 ... CLC × 43 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 43 50 00 BVC *+2 |
Clobbers V |
85 xx STA @zptemp EA ... NOP × 43 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 43 |
Requires support for unofficial opcodes |
46 bytes | |
4C xx xx JMP *+3 EA ... NOP × 43 |
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 A2 11 LDX #17 CA DEX D0 FD BNE *-1 |
Clobbers A, X, S, and Z&N |
68 PLA A0 11 LDY #17 88 DEY D0 FD BNE *-1 |
Clobbers A, Y, S, and Z&N |
7 bytes | |
EA NOP 38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FC BPL *-2 |
Clobbers A, Z&N, C, V, and D |
EA ... NOP × 2 A2 11 LDX #17 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
EA ... NOP × 2 A0 11 LDY #17 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
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 |
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 0A LDA #$0A ;hides 'ASL A' 48 ... PHA × 2 D0 FB BNE *-3 |
Clobbers A, S, Z&N, and C; and writes in stack |
8 bytes | |
48 PHA 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FC BPL *-2 68 PLA |
Clobbers Z&N, C, V, and D; and writes in stack |
EA NOP 38 SEC A9 11 LDA #17 E9 01 SBC #1 D0 FB BNE *-3 |
Clobbers A, Z&N, C, and V |
08 PHP 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FC BPL *-2 28 PLP |
Clobbers A; and writes in stack |
EA NOP 08 PHP A2 10 LDX #16 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
EA NOP 08 PHP A0 10 LDY #16 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; and writes in stack |
9 bytes | |
48 PHA 38 SEC A9 10 LDA #16 E9 01 SBC #1 D0 FB BNE *-3 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
A5 A5 LDA $A5 A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 2 18 CLC D0 FA BNE *-4 |
Clobbers A, Z&N, and C |
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 | |
EA ... NOP × 2 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 85 xx STA @zptemp 18 CLC D0 FA BNE *-4 68 PLA |
Clobbers Z&N, and C; requires @zptemp; and writes in stack |
20 xx xx JSR @rts12 48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 68 PLA |
Clobbers Z&N, and C; requires @rts12; and writes in stack |
EA ... NOP × 2 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 04 04 NOP $04 18 CLC D0 FA BNE *-4 68 PLA |
Clobbers Z&N, and C; requires support for unofficial opcodes; 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 08 PHP 48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only D0 FC BNE *-2 68 PLA 28 PLP |
Clobbers S; requires support for unofficial opcodes; and writes in stack |
12 bytes | |
36 36 ROL $36,X 76 36 ROR $36,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 |
04 04 NOP $04 08 PHP 48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only D0 FC BNE *-2 68 PLA 28 PLP |
Requires support for unofficial opcodes; 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 |
13 bytes | |
EA NOP 08 PHP C5 C5 CMP $C5 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 |
26 bytes | |
EA NOP 68 PLA \ × 3 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 |
30 bytes | |
36 36 ROL $36,X \ × 3 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N |
45 bytes | |
EA ... NOP × 45 |
No requirements |
91 cycles
5 bytes | |
---|---|
A2 12 LDX #18 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
A0 12 LDY #18 88 DEY D0 FD BNE *-1 |
Clobbers Y, 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 |
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 |
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 |
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 |
8 bytes | |
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 08 PHP A2 10 LDX #16 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X, and S; and writes in stack |
48 PHA 08 PHP A0 10 LDY #16 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y, and S; and writes in stack |
9 bytes | |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 26 26 ROL $26 66 26 ROR $26 90 F9 BCC *-5 |
Clobbers A, Z&N, and C |
08 PHP A6 A6 LDX $A6 A2 10 LDX #16 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
08 PHP A4 A4 LDY $A4 A0 10 LDY #16 88 DEY D0 FD BNE *-1 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 |
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 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 | |
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 |
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 |
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 |
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 |
68 PLA 98 TYA 48 PHA A0 0F LDY #15 88 DEY D0 FD BNE *-1 68 PLA A8 TAY |
Clobbers A, S, and Z&N; and writes in stack |
48 ... PHA × 2 A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 04 04 NOP $04 30 FA BMI *-4 68 PLA |
Clobbers S, Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
48 PHA 08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 04 04 NOP $04 30 FA BMI *-4 28 PLP |
Clobbers A, and S; requires support for unofficial opcodes; and writes in stack |
11 bytes | |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 24 24 BIT $24 28 PLP 18 CLC 10 F8 BPL *-6 68 PLA |
Clobbers Z&N, and C; and writes in stack |
08 PHP 38 SEC A9 09 LDA #9 EA ... NOP × 2 E9 01 SBC #1 D0 F9 BNE *-5 28 PLP |
Clobbers A; and writes in stack |
12 bytes | |
EA NOP 48 PHA 98 TYA 48 PHA A0 0E LDY #14 88 DEY D0 FD BNE *-1 68 PLA A8 TAY 68 PLA |
Clobbers Z&N; and writes in stack |
08 PHP F6 F6 INC $F6,X 48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA NOP 18 CLC D0 FB BNE *-3 68 PLA 28 PLP |
Requires @zptemp, and writable $00-$FF; 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 @rts12, and @rts14; 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 FC BNE *-2 68 PLA 28 PLP |
Requires support for unofficial opcodes; 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 |
13 bytes | |
08 PHP 48 PHA 98 TYA 48 PHA A0 0D LDY #13 88 DEY D0 FD BNE *-1 68 PLA A8 TAY 68 PLA 28 PLP |
Writes in stack |
23 bytes | |
68 PLA 48 PHA 68 ... PLA × 21 |
Clobbers A, S, and Z&N |
26 bytes | |
68 PLA \ × 13 48 PHA / |
Clobbers A, and Z&N |
31 bytes | |
EA NOP E6 xx INC @zptemp 36 36 ROL $36,X \ × 7 76 36 ROR $36,X / |
Clobbers Z&N; and requires @zptemp |
FE 00 02 INC $0200,X 36 36 ROL $36,X \ × 7 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $200-$2FF |
FE 00 03 INC $0300,X 36 36 ROL $36,X \ × 7 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $300-$3FF |
FE 00 04 INC $0400,X 36 36 ROL $36,X \ × 7 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $400-$4FF |
FE 00 05 INC $0500,X 36 36 ROL $36,X \ × 7 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $500-$5FF |
FE 00 06 INC $0600,X 36 36 ROL $36,X \ × 7 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $600-$6FF |
FE 00 07 INC $0700,X 36 36 ROL $36,X \ × 7 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $700-$7FF |
32 bytes | |
C5 C5 CMP $C5 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N, and C |
24 24 BIT $24 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N, and V |
04 04 NOP $04 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires support for unofficial opcodes |
33 bytes | |
4C xx xx JMP *+3 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and not relocatable code |
34 bytes | |
26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / 26 26... ROL $26 × 9 |
Clobbers Z&N |
46 bytes | |
18 ... CLC × 44 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 44 50 00 BVC *+2 |
Clobbers V |
85 xx STA @zptemp EA ... NOP × 44 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 44 |
Requires support for unofficial opcodes |
47 bytes | |
4C xx xx JMP *+3 EA ... NOP × 44 |
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 | |
A2 0D LDX #13 EA NOP CA DEX D0 FC BNE *-2 |
Clobbers X, and Z&N |
A0 0D LDY #13 EA NOP 88 DEY D0 FC BNE *-2 |
Clobbers Y, and Z&N |
7 bytes | |
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 |
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 |
68 PLA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FC BPL *-2 |
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 |
8 bytes | |
EA ... NOP × 2 38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FC BPL *-2 |
Clobbers A, Z&N, C, V, and D |
08 PHP A2 0C LDX #12 EA NOP CA DEX D0 FC BNE *-2 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 0C LDY #12 EA NOP 88 DEY D0 FC BNE *-2 28 PLP |
Clobbers Y; and writes in stack |
A9 E9 LDA #$E9 ;hides 'SBC #$2A' 2A ROL A ;first loop only EA NOP F6 F6 INC $F6,X B0 F9 BCS *-5 |
Clobbers A, Z&N, C, and V; and requires @zptemp, and writable $00-$FF |
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 |
68 PLA 38 SEC A9 11 LDA #17 E9 01 SBC #1 D0 FB BNE *-3 |
Clobbers A, S, Z&N, C, and V |
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 |
9 bytes | |
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 FB BNE *-3 |
Clobbers A, Z&N, C, and V |
EA NOP 08 PHP 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FC BPL *-2 28 PLP |
Clobbers A; and writes in stack |
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 A5 LDA $A5 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 FB BNE *-3 68 PLA 28 PLP |
Writes in stack |
23 bytes | |
68 ... PLA × 23 |
Clobbers A, S, and Z&N |
27 bytes | |
68 PLA \ × 3 48 PHA / 36 36 ROL $36,X 76 36 ROR $36,X A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 12 10 F0 BPL *-14 |
Clobbers A, and Z&N |
31 bytes | |
EA NOP 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N |
46 bytes | |
EA ... NOP × 46 |
No requirements |
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 FD BNE *-1 |
Clobbers X, and Z&N |
EA NOP A0 12 LDY #18 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
7 bytes | |
38 SEC A9 12 LDA #18 E9 01 SBC #1 D0 FB BNE *-3 |
Clobbers A, Z&N, C, and V |
08 PHP A2 11 LDX #17 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 11 LDY #17 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; 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 |
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 |
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 |
8 bytes | |
EA ... NOP × 2 A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 10 FB BPL *-3 |
Clobbers A, Z&N, and C; requires dummy interrupt handler; and writes in stack |
48 ... PHA × 2 A9 0A LDA #$0A ;hides 'ASL A' 48 ... PHA × 2 D0 FB BNE *-3 |
Clobbers A, S, Z&N, and C; and writes in stack |
9 bytes | |
F6 F6 INC $F6,X 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, and writable $00-$FF |
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 |
48 ... PHA × 2 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FC BPL *-2 68 PLA |
Clobbers S, Z&N, C, V, and D; 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 08 PHP 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FC BPL *-2 28 PLP |
Clobbers A, and S; and writes in stack |
10 bytes | |
24 24 BIT $24 48 PHA 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FC BPL *-2 68 PLA |
Clobbers Z&N, C, V, and D; and writes in stack |
18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' 26 26 ROL $26 66 26 ROR $26 90 F9 BCC *-5 |
Clobbers A, Z&N, and C |
08 PHP A5 A5 LDA $A5 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FC BPL *-2 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 |
00 00 BRK 0 48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;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 |
48 ... PHA × 2 38 SEC A9 10 LDA #16 E9 01 SBC #1 D0 FB BNE *-3 68 PLA |
Clobbers S, Z&N, C, and V; and writes in stack |
11 bytes | |
08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' B8 CLV 50 00 BVC *+2 D0 FA BNE *-4 68 PLA 28 PLP |
Writes in stack |
24 bytes | |
EA NOP 68 PLA 48 PHA 68 ... PLA × 21 |
Clobbers A, S, and Z&N |
27 bytes | |
EA NOP 68 PLA \ × 13 48 PHA / |
Clobbers A, and Z&N |
32 bytes | |
C5 C5 CMP $C5 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N, and C |
24 24 BIT $24 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N, and V |
E6 xx INC @zptemp 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires @zptemp |
EA NOP FE 00 02 INC $0200,X 36 36 ROL $36,X \ × 7 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $200-$2FF |
EA NOP FE 00 03 INC $0300,X 36 36 ROL $36,X \ × 7 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $300-$3FF |
EA NOP FE 00 04 INC $0400,X 36 36 ROL $36,X \ × 7 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $400-$4FF |
EA NOP FE 00 05 INC $0500,X 36 36 ROL $36,X \ × 7 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $500-$5FF |
EA NOP FE 00 06 INC $0600,X 36 36 ROL $36,X \ × 7 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $600-$6FF |
EA NOP FE 00 07 INC $0700,X 36 36 ROL $36,X \ × 7 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $700-$7FF |
04 04 NOP $04 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires support for unofficial opcodes |
33 bytes | |
4C xx xx JMP *+3 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and not relocatable code |
34 bytes | |
36 36 ROL $36,X \ × 4 76 36 ROR $36,X / 26 26... ROL $26 × 9 |
Clobbers Z&N |
47 bytes | |
18 ... CLC × 45 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 45 50 00 BVC *+2 |
Clobbers V |
85 xx STA @zptemp EA ... NOP × 45 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 45 |
Requires support for unofficial opcodes |
48 bytes | |
4C xx xx JMP *+3 EA ... NOP × 45 |
Not relocatable code |
94 cycles
5 bytes | |
---|---|
A9 LDA #67 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
48 PHA A2 12 LDX #18 CA DEX D0 FD BNE *-1 |
Clobbers X, S, and Z&N; and writes in stack |
48 PHA A0 12 LDY #18 88 DEY D0 FD BNE *-1 |
Clobbers Y, S, and Z&N; and writes in stack |
7 bytes | |
A6 A6 LDX $A6 A2 12 LDX #18 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
A4 A4 LDY $A4 A0 12 LDY #18 88 DEY D0 FD BNE *-1 |
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 @rts12, and @rts14; 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 |
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 |
8 bytes | |
38 SEC A9 0D LDA #13 EA NOP E9 01 SBC #1 D0 FA BNE *-4 |
Clobbers A, Z&N, C, and V |
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 |
9 bytes | |
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 |
68 PLA 48 PHA 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 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 FC BNE *-2 28 PLP |
Clobbers X; and writes in stack |
EA NOP 08 PHP A0 0C LDY #12 EA NOP 88 DEY D0 FC BNE *-2 28 PLP |
Clobbers Y; and writes in stack |
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 FD BNE *-1 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 FB BCS *-3 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 FA BNE *-4 68 PLA 28 PLP |
Writes in stack |
24 bytes | |
EA NOP 68 ... PLA × 23 |
Clobbers A, S, and Z&N |
27 bytes | |
68 PLA \ × 5 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 |
32 bytes | |
26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 7 76 36 ROR $36,X / |
Clobbers Z&N |
47 bytes | |
EA ... NOP × 47 |
No requirements |
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 FD BNE *-1 |
Clobbers A, X, S, and Z&N |
68 PLA A0 12 LDY #18 88 DEY D0 FD BNE *-1 |
Clobbers A, Y, S, and Z&N |
7 bytes | |
EA ... NOP × 2 A2 12 LDX #18 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
EA ... NOP × 2 A0 12 LDY #18 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
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 |
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 |
8 bytes | |
48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FC BPL *-2 68 PLA |
Clobbers Z&N, C, V, and D; 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 |
08 PHP 38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FC BPL *-2 28 PLP |
Clobbers A; and writes in stack |
EA NOP 08 PHP A2 11 LDX #17 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
EA NOP 08 PHP A0 11 LDY #17 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; and writes in stack |
9 bytes | |
48 PHA 38 SEC A9 11 LDA #17 E9 01 SBC #1 D0 FB BNE *-3 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 | |
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 |
EA ... NOP × 2 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts12 10 FA BPL *-4 68 PLA |
Clobbers Z&N, and C; requires @rts12; and writes in stack |
08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only 04 04 NOP $04 30 FA BMI *-4 68 PLA 28 PLP |
Requires support for unofficial opcodes; 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 |
12 bytes | |
08 PHP 48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' B8 CLV 50 00 BVC *+2 D0 FA BNE *-4 68 PLA 28 PLP |
Writes in stack |
24 bytes | |
68 PLA 48 PHA 68 ... PLA × 22 |
Clobbers A, S, and Z&N |
27 bytes | |
68 PLA \ × 4 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 |
32 bytes | |
E6 xx INC @zptemp 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires @zptemp |
33 bytes | |
EA NOP C5 C5 CMP $C5 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N, and C |
EA NOP 24 24 BIT $24 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N, and V |
FE 00 02 INC $0200,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $200-$2FF |
FE 00 03 INC $0300,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $300-$3FF |
FE 00 04 INC $0400,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $400-$4FF |
FE 00 05 INC $0500,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $500-$5FF |
FE 00 06 INC $0600,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $600-$6FF |
FE 00 07 INC $0700,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 2 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $700-$7FF |
EA NOP 04 04 NOP $04 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires support for unofficial opcodes |
34 bytes | |
EA NOP 4C xx xx JMP *+3 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and not relocatable code |
35 bytes | |
EA NOP 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / 26 26... ROL $26 × 9 |
Clobbers Z&N |
48 bytes | |
18 ... CLC × 46 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 46 50 00 BVC *+2 |
Clobbers V |
85 xx STA @zptemp EA ... NOP × 46 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 46 |
Requires support for unofficial opcodes |
49 bytes | |
4C xx xx JMP *+3 EA ... NOP × 46 |
Not relocatable code |
96 cycles
5 bytes | |
---|---|
A2 13 LDX #19 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
A0 13 LDY #19 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
A9 LDA #69 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
7 bytes | |
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 |
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 |
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 @rts12, and @rts14; 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 |
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 |
68 ... PLA × 2 38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FC BPL *-2 |
Clobbers A, S, Z&N, C, V, and D |
48 PHA 38 SEC A9 12 LDA #18 E9 01 SBC #1 D0 FB BNE *-3 |
Clobbers A, S, Z&N, C, and V; and writes in stack |
48 PHA 08 PHP A2 11 LDX #17 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X, and S; and writes in stack |
9 bytes | |
A5 A5 LDA $A5 38 SEC A9 12 LDA #18 E9 01 SBC #1 D0 FB BNE *-3 |
Clobbers A, Z&N, C, and V |
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 |
08 PHP A2 0B LDX #11 C5 C5 CMP $C5 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
48 PHA A9 69 LDA #$69 ;hides 'ADC #$18' 18 CLC ;first loop only F6 F6 INC $F6,X 90 FA BCC *-4 68 PLA |
Clobbers Z&N, C, and V; requires @zptemp, and writable $00-$FF; and writes in stack |
08 PHP A9 69 LDA #$69 ;hides 'ADC #$18' 18 CLC ;first loop only F6 F6 INC $F6,X 90 FA BCC *-4 28 PLP |
Clobbers A; requires @zptemp, and writable $00-$FF; and writes in stack |
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 | |
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 68 PLA 48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 2 18 CLC D0 FA BNE *-4 |
Clobbers A, Z&N, and C |
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 |
12 bytes | |
48 PHA 98 TYA 48 PHA A0 0B LDY #11 EA NOP 88 DEY D0 FC BNE *-2 68 PLA A8 TAY 68 PLA |
Clobbers Z&N; 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 FB BCS *-3 68 PLA 28 PLP |
Requires support for unofficial opcodes; 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 |
13 bytes | |
EA ... NOP × 2 08 PHP 48 PHA 38 SEC A9 0F LDA #15 E9 01 SBC #1 D0 FB BNE *-3 68 PLA 28 PLP |
Writes in stack |
24 bytes | |
68 ... PLA × 24 |
Clobbers A, S, and Z&N |
28 bytes | |
36 36 ROL $36,X 76 36 ROR $36,X 68 PLA \ × 12 48 PHA / |
Clobbers A, and Z&N |
32 bytes | |
36 36 ROL $36,X \ × 8 76 36 ROR $36,X / |
Clobbers Z&N |
48 bytes | |
EA ... NOP × 48 |
No requirements |
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 FC BNE *-2 |
Clobbers X, S, and Z&N; and writes in stack |
A0 0C LDY #12 48 PHA 88 DEY D0 FC BNE *-2 |
Clobbers Y, S, and Z&N; and writes in stack |
7 bytes | |
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 C5 CMP $C5 CA DEX D0 FB BNE *-3 |
Clobbers X, Z&N, and C |
A0 0C LDY #12 C5 C5 CMP $C5 88 DEY D0 FB BNE *-3 |
Clobbers Y, Z&N, and C |
A2 0C LDX #12 24 24 BIT $24 CA DEX D0 FB BNE *-3 |
Clobbers X, Z&N, and V |
A0 0C LDY #12 24 24 BIT $24 88 DEY D0 FB BNE *-3 |
Clobbers Y, Z&N, and V |
A2 08 LDX #8 08 PHP 28 PLP CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N; and writes in stack |
A0 08 LDY #8 08 PHP 28 PLP 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N; and writes in stack |
A2 0C LDX #12 A5 A5 LDA $A5 CA DEX D0 FB BNE *-3 |
Clobbers A, X, and Z&N |
A0 0C LDY #12 A5 A5 LDA $A5 88 DEY D0 FB BNE *-3 |
Clobbers A, Y, and Z&N |
A2 0C LDX #12 A4 A4 LDY $A4 CA DEX D0 FB BNE *-3 |
Clobbers X, Y, and Z&N |
A2 0C LDX #12 85 xx STA @zptemp CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N; and requires @zptemp |
A0 0C LDY #12 85 xx STA @zptemp 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N; and requires @zptemp |
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 |
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 |
A2 0C LDX #12 04 04 NOP $04 CA DEX D0 FB BNE *-3 |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
A0 0C LDY #12 04 04 NOP $04 88 DEY D0 FB BNE *-3 |
Clobbers Y, and Z&N; and requires support for unofficial opcodes |
8 bytes | |
EA ... NOP × 3 A2 12 LDX #18 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
EA ... NOP × 3 A0 12 LDY #18 88 DEY D0 FD BNE *-1 |
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 |
A9 69 LDA #$69 ;hides 'ADC #$18' 18 CLC ;first loop only FE 00 02 INC $0200,X 90 F9 BCC *-5 |
Clobbers A, Z&N, C, and V; and requires writable $200-$2FF |
A9 69 LDA #$69 ;hides 'ADC #$18' 18 CLC ;first loop only FE 00 03 INC $0300,X 90 F9 BCC *-5 |
Clobbers A, Z&N, C, and V; and requires writable $300-$3FF |
A9 69 LDA #$69 ;hides 'ADC #$18' 18 CLC ;first loop only FE 00 04 INC $0400,X 90 F9 BCC *-5 |
Clobbers A, Z&N, C, and V; and requires writable $400-$4FF |
A9 69 LDA #$69 ;hides 'ADC #$18' 18 CLC ;first loop only FE 00 05 INC $0500,X 90 F9 BCC *-5 |
Clobbers A, Z&N, C, and V; and requires writable $500-$5FF |
A9 69 LDA #$69 ;hides 'ADC #$18' 18 CLC ;first loop only FE 00 06 INC $0600,X 90 F9 BCC *-5 |
Clobbers A, Z&N, C, and V; and requires writable $600-$6FF |
A9 69 LDA #$69 ;hides 'ADC #$18' 18 CLC ;first loop only FE 00 07 INC $0700,X 90 F9 BCC *-5 |
Clobbers A, Z&N, C, and V; and requires writable $700-$7FF |
68 PLA 38 SEC A9 12 LDA #18 E9 01 SBC #1 D0 FB BNE *-3 |
Clobbers A, S, Z&N, C, and V |
9 bytes | |
EA NOP 48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FC BPL *-2 68 PLA |
Clobbers Z&N, C, V, and D; 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 08 PHP 38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FC BPL *-2 28 PLP |
Clobbers A; and writes in stack |
EA ... NOP × 2 08 PHP A2 11 LDX #17 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
EA ... NOP × 2 08 PHP A0 11 LDY #17 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; 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 FC BPL *-2 68 PLA 28 PLP |
Writes in stack |
25 bytes | |
EA NOP 68 PLA 48 PHA 68 ... PLA × 22 |
Clobbers A, S, and Z&N |
28 bytes | |
EA NOP 68 PLA \ × 4 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 |
33 bytes | |
EA NOP E6 xx INC @zptemp 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires @zptemp |
FE 00 02 INC $0200,X 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $200-$2FF |
FE 00 03 INC $0300,X 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $300-$3FF |
FE 00 04 INC $0400,X 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $400-$4FF |
FE 00 05 INC $0500,X 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $500-$5FF |
FE 00 06 INC $0600,X 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $600-$6FF |
FE 00 07 INC $0700,X 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $700-$7FF |
34 bytes | |
C5 C5 CMP $C5 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 7 76 36 ROR $36,X / |
Clobbers Z&N, and C |
24 24 BIT $24 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 7 76 36 ROR $36,X / |
Clobbers Z&N, and V |
04 04 NOP $04 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 7 76 36 ROR $36,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
35 bytes | |
4C xx xx JMP *+3 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 7 76 36 ROR $36,X / |
Clobbers Z&N; and not relocatable code |
36 bytes | |
EA ... NOP × 2 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / 26 26... ROL $26 × 9 |
Clobbers Z&N |
49 bytes | |
18 ... CLC × 47 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 47 50 00 BVC *+2 |
Clobbers V |
85 xx STA @zptemp EA ... NOP × 47 |
Requires @zptemp |
04 04 NOP $04 EA ... NOP × 47 |
Requires support for unofficial opcodes |
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 FD BNE *-1 |
Clobbers X, and Z&N |
EA NOP A0 13 LDY #19 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
7 bytes | |
38 SEC A9 13 LDA #19 E9 01 SBC #1 D0 FB BNE *-3 |
Clobbers A, Z&N, C, and V |
08 PHP A2 12 LDX #18 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 12 LDY #18 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; 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 |
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 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 |
8 bytes | |
A5 A5 LDA $A5 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 | |
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 |
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 |
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 |
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 |
10 bytes | |
A5 A5 LDA $A5 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 | |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 26 26 ROL $26 66 26 ROR $26 90 F9 BCC *-5 68 PLA |
Clobbers Z&N, and C; and writes in stack |
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 |
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 04 NOP $04 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 24 BIT $24 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 |
28 bytes | |
68 PLA \ × 14 48 PHA / |
Clobbers A, and Z&N |
33 bytes | |
EA NOP 36 36 ROL $36,X \ × 8 76 36 ROR $36,X / |
Clobbers Z&N |
49 bytes | |
EA ... NOP × 49 |
No requirements |
99 cycles
5 bytes | |
---|---|
A9 LDA #72 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A2 0E LDX #14 EA NOP CA DEX D0 FC BNE *-2 |
Clobbers X, and Z&N |
A0 0E LDY #14 EA NOP 88 DEY D0 FC BNE *-2 |
Clobbers Y, and Z&N |
7 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts15 10 FA BPL *-4 |
Clobbers A, Z&N, and C; requires @rts12, and @rts15; 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 |
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 |
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 |
8 bytes | |
EA ... NOP × 2 A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 |
Clobbers A, Z&N, and C; and writes in stack |
08 PHP A2 0D LDX #13 EA NOP CA DEX D0 FC BNE *-2 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 0D LDY #13 EA NOP 88 DEY D0 FC BNE *-2 28 PLP |
Clobbers Y; and writes in stack |
9 bytes | |
38 SEC A9 0C LDA #12 24 24 BIT $24 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
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 |
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 |
68 PLA 08 PHP 38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FC BPL *-2 28 PLP |
Clobbers A, S, and Z&N; 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 |
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 |
10 bytes | |
EA ... NOP × 2 48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FC BPL *-2 68 PLA |
Clobbers Z&N, C, V, and D; and writes in stack |
EA ... NOP × 2 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 90 00 BCC *+2 18 CLC D0 F9 BNE *-5 |
Clobbers A, Z&N, and C |
EA ... NOP × 2 08 PHP 38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FC BPL *-2 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 F6 F6 INC $F6,X B0 F9 BCS *-5 68 PLA |
Clobbers Z&N, C, and V; requires @zptemp, and writable $00-$FF; 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 FC BPL *-2 68 PLA 28 PLP |
Writes in stack |
25 bytes | |
68 PLA 48 PHA 68 ... PLA × 23 |
Clobbers A, S, and Z&N |
29 bytes | |
68 PLA \ × 4 48 PHA / 36 36 ROL $36,X 76 36 ROR $36,X A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 12 10 F0 BPL *-14 |
Clobbers A, and Z&N |
34 bytes | |
C5 C5 CMP $C5 36 36 ROL $36,X \ × 8 76 36 ROR $36,X / |
Clobbers Z&N, and C |
24 24 BIT $24 36 36 ROL $36,X \ × 8 76 36 ROR $36,X / |
Clobbers Z&N, and V |
E6 xx INC @zptemp 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 7 76 36 ROR $36,X / |
Clobbers Z&N; and requires @zptemp |
EA NOP FE 00 02 INC $0200,X 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $200-$2FF |
EA NOP FE 00 03 INC $0300,X 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $300-$3FF |
EA NOP FE 00 04 INC $0400,X 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $400-$4FF |
EA NOP FE 00 05 INC $0500,X 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $500-$5FF |
EA NOP FE 00 06 INC $0600,X 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $600-$6FF |
EA NOP FE 00 07 INC $0700,X 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $700-$7FF |
04 04 NOP $04 36 36 ROL $36,X \ × 8 76 36 ROR $36,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
35 bytes | |
4C xx xx JMP *+3 36 36 ROL $36,X \ × 8 76 36 ROR $36,X / |
Clobbers Z&N; and not relocatable code |
37 bytes | |
EA ... NOP × 3 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / 26 26... ROL $26 × 9 |
Clobbers Z&N |
50 bytes | |
18 ... CLC × 48 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 48 50 00 BVC *+2 |
Clobbers V |
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 | |
A2 0B LDX #11 68 PLA CA DEX D0 FC BNE *-2 |
Clobbers A, X, S, and Z&N |
A0 0B LDY #11 68 PLA 88 DEY D0 FC BNE *-2 |
Clobbers A, Y, S, and Z&N |
7 bytes | |
EA ... NOP × 2 A2 13 LDX #19 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
EA ... NOP × 2 A0 13 LDY #19 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
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 |
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 |
8 bytes | |
EA NOP 38 SEC A9 13 LDA #19 E9 01 SBC #1 D0 FB BNE *-3 |
Clobbers A, Z&N, C, and V |
EA NOP 08 PHP A2 12 LDX #18 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
EA NOP 08 PHP A0 12 LDY #18 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; and writes in stack |
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 | |
48 PHA 38 SEC A9 12 LDA #18 E9 01 SBC #1 D0 FB BNE *-3 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
08 PHP 38 SEC A9 12 LDA #18 E9 01 SBC #1 D0 FB BNE *-3 28 PLP |
Clobbers A; and writes in stack |
08 PHP 48 PHA A9 LDA #59 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
E6 xx INC @zptemp A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 90 00 BCC *+2 18 CLC D0 F9 BNE *-5 |
Clobbers A, Z&N, and C; and requires @zptemp |
EA ... NOP × 2 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 10 FB BPL *-3 68 PLA |
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack |
11 bytes | |
EA NOP A5 A5 LDA $A5 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 |
F6 F6 INC $F6,X 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; requires @zptemp, and writable $00-$FF; and writes in stack |
48 PHA 08 PHP 48 PHA 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FC BPL *-2 68 PLA 28 PLP |
Clobbers S; and writes in stack |
12 bytes | |
08 PHP 24 24 BIT $24 48 PHA 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only 10 FC BPL *-2 68 PLA 28 PLP |
Writes in stack |
25 bytes | |
68 ... PLA × 25 |
Clobbers A, S, and Z&N |
29 bytes | |
EA NOP 68 PLA \ × 14 48 PHA / |
Clobbers A, and Z&N |
34 bytes | |
26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N |
50 bytes | |
EA ... NOP × 50 |
No requirements |
101 cycles
5 bytes | |
---|---|
A2 14 LDX #20 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
A0 14 LDY #20 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
A9 LDA #74 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
7 bytes | |
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 |
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 |
38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only EA NOP D0 FB BNE *-3 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
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 |
8 bytes | |
38 SEC A9 0E LDA #14 EA NOP E9 01 SBC #1 D0 FA BNE *-4 |
Clobbers A, Z&N, C, and V |
F6 F6 INC $F6,X A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 |
Clobbers A, Z&N, and C; requires @zptemp, and writable $00-$FF; and writes in stack |
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 @rts12, and @rts15; and writes in stack |
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 × 2 A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 |
Clobbers A, S, Z&N, and C; and writes in stack |
48 PHA 08 PHP A2 12 LDX #18 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X, and S; and writes in stack |
48 PHA 08 PHP A0 12 LDY #18 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y, and S; and writes in stack |
9 bytes | |
EA ... NOP × 3 A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 |
Clobbers A, Z&N, and C; and writes in stack |
08 PHP A6 A6 LDX $A6 A2 12 LDX #18 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
08 PHP A4 A4 LDY $A4 A0 12 LDY #18 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; 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 @rts12, and @rts14; 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 @rts12, and @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 | |
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 |
08 PHP 38 SEC A9 0D LDA #13 EA NOP E9 01 SBC #1 D0 FA BNE *-4 28 PLP |
Clobbers A; and writes in stack |
F6 F6 INC $F6,X 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, and writable $00-$FF |
EA NOP 68 PLA A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 90 00 BCC *+2 18 CLC D0 F9 BNE *-5 |
Clobbers A, S, Z&N, and C |
11 bytes | |
08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 2 18 CLC D0 FA BNE *-4 68 PLA 28 PLP |
Writes in stack |
EA ... NOP × 3 A9 0A LDA #$0A ;hides 'ASL A' 18 CLC 90 00 BCC *+2 18 CLC D0 F9 BNE *-5 |
Clobbers A, Z&N, and C |
26 bytes | |
EA NOP 68 PLA 48 PHA 68 ... PLA × 23 |
Clobbers A, S, and Z&N |
29 bytes | |
68 PLA \ × 6 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 |
34 bytes | |
E6 xx INC @zptemp 36 36 ROL $36,X \ × 8 76 36 ROR $36,X / |
Clobbers Z&N; and requires @zptemp |
35 bytes | |
EA NOP C5 C5 CMP $C5 36 36 ROL $36,X \ × 8 76 36 ROR $36,X / |
Clobbers Z&N, and C |
EA NOP 24 24 BIT $24 36 36 ROL $36,X \ × 8 76 36 ROR $36,X / |
Clobbers Z&N, and V |
FE 00 02 INC $0200,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 7 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $200-$2FF |
FE 00 03 INC $0300,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 7 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $300-$3FF |
FE 00 04 INC $0400,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 7 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $400-$4FF |
FE 00 05 INC $0500,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 7 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $500-$5FF |
FE 00 06 INC $0600,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 7 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $600-$6FF |
FE 00 07 INC $0700,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 7 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $700-$7FF |
EA NOP 04 04 NOP $04 36 36 ROL $36,X \ × 8 76 36 ROR $36,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
36 bytes | |
EA NOP 4C xx xx JMP *+3 36 36 ROL $36,X \ × 8 76 36 ROR $36,X / |
Clobbers Z&N; and not relocatable code |
38 bytes | |
26 26 ROL $26 \ × 2 66 26 ROR $26 / 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / 26 26... ROL $26 × 9 |
Clobbers Z&N |
51 bytes | |
18 ... CLC × 49 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 49 50 00 BVC *+2 |
Clobbers V |
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 | |
A2 13 LDX #19 CA DEX D0 FD BNE *-1 F6 xx INC @zptemp,X |
Clobbers X, and Z&N; and requires @zptemp |
F6 F6 INC $F6,X A0 13 LDY #19 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N; and requires @zptemp, and writable $00-$FF |
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 |
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 × 2 A2 13 LDX #19 CA DEX D0 FD BNE *-1 |
Clobbers X, S, and Z&N; and writes in stack |
48 ... PHA × 2 A0 13 LDY #19 88 DEY D0 FD BNE *-1 |
Clobbers Y, S, and Z&N; and writes in stack |
EA NOP A2 0B LDX #11 68 PLA CA DEX D0 FC BNE *-2 |
Clobbers A, X, S, and Z&N |
EA NOP A0 0B LDY #11 68 PLA 88 DEY D0 FC BNE *-2 |
Clobbers A, Y, S, and Z&N |
8 bytes | |
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 |
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 A6 LDX $A6 A2 0E LDX #14 EA NOP CA DEX D0 FC BNE *-2 |
Clobbers X, and Z&N |
A4 A4 LDY $A4 A0 0E LDY #14 EA NOP 88 DEY D0 FC BNE *-2 |
Clobbers Y, and Z&N |
38 SEC A9 EB LDA #$EB ;hides 'SBC #$1A' 1A NOP ;first loop only EA ... NOP × 2 B0 FA BCS *-4 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
68 PLA 38 SEC A9 13 LDA #19 E9 01 SBC #1 D0 FB BNE *-3 |
Clobbers A, S, Z&N, C, and V |
9 bytes | |
EA ... NOP × 2 38 SEC A9 13 LDA #19 E9 01 SBC #1 D0 FB BNE *-3 |
Clobbers A, Z&N, C, and V |
EA ... NOP × 2 08 PHP A2 12 LDX #18 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
EA ... NOP × 2 08 PHP A0 12 LDY #18 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; and writes in stack |
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 FC BPL *-2 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 |
29 bytes | |
68 PLA \ × 5 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 |
34 bytes | |
36 36 ROL $36,X \ × 4 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N |
51 bytes | |
EA ... NOP × 51 |
No requirements |
103 cycles
5 bytes | |
---|---|
A9 LDA #76 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
EA NOP A2 14 LDX #20 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
EA NOP A0 14 LDY #20 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
18 CLC A9 69 LDA #$69 ;hides 'ADC #$08' 08 PHP ;first loop only 90 FC BCC *-2 |
Clobbers A, S, Z&N, C, and V; and writes in stack |
7 bytes | |
38 SEC A9 14 LDA #20 E9 01 SBC #1 D0 FB BNE *-3 |
Clobbers A, Z&N, C, and V |
08 PHP A2 13 LDX #19 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 13 LDY #19 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; 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 |
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 |
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 |
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 FC BNE *-2 68 PLA AA TAX |
Clobbers A, and Z&N; and writes in stack |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts14 10 FA BPL *-4 68 PLA |
Clobbers Z&N, and C; requires @rts12, and @rts14; 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 @rts12, and @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 × 2 38 SEC A9 12 LDA #18 E9 01 SBC #1 D0 FB BNE *-3 68 PLA |
Clobbers S, Z&N, C, and V; and writes in stack |
48 PHA 08 PHP 38 SEC A9 12 LDA #18 E9 01 SBC #1 D0 FB BNE *-3 28 PLP |
Clobbers A, and S; and writes in stack |
11 bytes | |
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 |
08 PHP A5 A5 LDA $A5 38 SEC A9 12 LDA #18 E9 01 SBC #1 D0 FB BNE *-3 28 PLP |
Clobbers A; and writes in stack |
08 PHP 48 PHA A9 69 LDA #$69 ;hides 'ADC #$18' 18 CLC ;first loop only F6 F6 INC $F6,X 90 FA BCC *-4 68 PLA 28 PLP |
Requires @zptemp, and writable $00-$FF; and writes in stack |
12 bytes | |
08 PHP 48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 2 18 CLC D0 FA BNE *-4 68 PLA 28 PLP |
Writes in stack |
26 bytes | |
68 PLA 48 PHA 68 ... PLA × 24 |
Clobbers A, S, and Z&N |
30 bytes | |
36 36 ROL $36,X 76 36 ROR $36,X 68 PLA \ × 13 48 PHA / |
Clobbers A, and Z&N |
35 bytes | |
EA NOP E6 xx INC @zptemp 36 36 ROL $36,X \ × 8 76 36 ROR $36,X / |
Clobbers Z&N; and requires @zptemp |
FE 00 02 INC $0200,X 36 36 ROL $36,X \ × 8 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $200-$2FF |
FE 00 03 INC $0300,X 36 36 ROL $36,X \ × 8 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $300-$3FF |
FE 00 04 INC $0400,X 36 36 ROL $36,X \ × 8 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $400-$4FF |
FE 00 05 INC $0500,X 36 36 ROL $36,X \ × 8 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $500-$5FF |
FE 00 06 INC $0600,X 36 36 ROL $36,X \ × 8 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $600-$6FF |
FE 00 07 INC $0700,X 36 36 ROL $36,X \ × 8 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $700-$7FF |
36 bytes | |
C5 C5 CMP $C5 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N, and C |
24 24 BIT $24 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N, and V |
04 04 NOP $04 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires support for unofficial opcodes |
37 bytes | |
4C xx xx JMP *+3 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and not relocatable code |
38 bytes | |
26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / 26 26... ROL $26 × 9 |
Clobbers Z&N |
52 bytes | |
18 ... CLC × 50 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 50 50 00 BVC *+2 |
Clobbers V |
104 cycles
5 bytes | |
---|---|
A9 LDA #77 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
48 PHA A2 14 LDX #20 CA DEX D0 FD BNE *-1 |
Clobbers X, S, and Z&N; and writes in stack |
48 PHA A0 14 LDY #20 88 DEY D0 FD BNE *-1 |
Clobbers Y, S, and Z&N; and writes in stack |
7 bytes | |
A6 A6 LDX $A6 A2 14 LDX #20 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
A4 A4 LDY $A4 A0 14 LDY #20 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
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 |
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 |
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 |
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 @rts12, and @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 |
A9 0A LDA #$0A ;hides 'ASL A' 04 04 NOP $04 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 |
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 |
9 bytes | |
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 |
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 A2 0C LDX #12 C5 C5 CMP $C5 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 0C LDY #12 C5 C5 CMP $C5 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
F6 F6 INC $F6,X 38 SEC A9 13 LDA #19 E9 01 SBC #1 D0 FB BNE *-3 |
Clobbers A, Z&N, C, and V; and requires @zptemp, and writable $00-$FF |
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 |
04 04 NOP $04 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only EA NOP D0 FB BNE *-3 |
Clobbers A, Z&N, C, and V; and requires support for unofficial opcodes |
EA NOP 68 PLA 38 SEC A9 13 LDA #19 E9 01 SBC #1 D0 FB BNE *-3 |
Clobbers A, S, Z&N, C, and V |
10 bytes | |
A5 A5 LDA $A5 38 SEC A9 0E LDA #14 EA NOP E9 01 SBC #1 D0 FA BNE *-4 |
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 FC BPL *-2 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 |
30 bytes | |
EA NOP 68 PLA \ × 5 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 |
35 bytes | |
EA NOP 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N |
52 bytes | |
EA ... NOP × 52 |
No requirements |
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 | |
A2 0D LDX #13 48 PHA CA DEX D0 FC BNE *-2 |
Clobbers X, S, and Z&N; and writes in stack |
A0 0D LDY #13 48 PHA 88 DEY D0 FC BNE *-2 |
Clobbers Y, S, and Z&N; and writes in stack |
68 PLA A2 14 LDX #20 CA DEX D0 FD BNE *-1 |
Clobbers A, X, S, and Z&N |
68 PLA A0 14 LDY #20 88 DEY D0 FD BNE *-1 |
Clobbers A, Y, S, and Z&N |
7 bytes | |
EA ... NOP × 2 A2 14 LDX #20 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
EA ... NOP × 2 A0 14 LDY #20 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
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 |
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 |
EA NOP 18 CLC A9 69 LDA #$69 ;hides 'ADC #$08' 08 PHP ;first loop only 90 FC BCC *-2 |
Clobbers A, S, Z&N, C, and V; and writes in stack |
8 bytes | |
EA NOP 38 SEC A9 14 LDA #20 E9 01 SBC #1 D0 FB BNE *-3 |
Clobbers A, Z&N, C, and V |
EA NOP 08 PHP A2 13 LDX #19 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
EA NOP 08 PHP A0 13 LDY #19 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; and writes in stack |
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 | |
48 PHA 38 SEC A9 13 LDA #19 E9 01 SBC #1 D0 FB BNE *-3 68 PLA |
Clobbers Z&N, C, and V; 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 |
08 PHP 38 SEC A9 13 LDA #19 E9 01 SBC #1 D0 FB BNE *-3 28 PLP |
Clobbers A; 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 |
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 |
10 bytes | |
C5 C5 CMP $C5 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 68 PLA |
Clobbers Z&N, and C; and writes in stack |
11 bytes | |
08 PHP 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only EA ... NOP × 2 30 FA BMI *-4 68 PLA 28 PLP |
Writes in stack |
27 bytes | |
EA NOP 68 PLA 48 PHA 68 ... PLA × 24 |
Clobbers A, S, and Z&N |
30 bytes | |
68 PLA \ × 15 48 PHA / |
Clobbers A, and Z&N |
36 bytes | |
C5 C5 CMP $C5 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N, and C |
24 24 BIT $24 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N, and V |
E6 xx INC @zptemp 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires @zptemp |
EA NOP FE 00 02 INC $0200,X 36 36 ROL $36,X \ × 8 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $200-$2FF |
EA NOP FE 00 03 INC $0300,X 36 36 ROL $36,X \ × 8 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $300-$3FF |
EA NOP FE 00 04 INC $0400,X 36 36 ROL $36,X \ × 8 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $400-$4FF |
EA NOP FE 00 05 INC $0500,X 36 36 ROL $36,X \ × 8 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $500-$5FF |
EA NOP FE 00 06 INC $0600,X 36 36 ROL $36,X \ × 8 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $600-$6FF |
EA NOP FE 00 07 INC $0700,X 36 36 ROL $36,X \ × 8 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $700-$7FF |
04 04 NOP $04 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires support for unofficial opcodes |
37 bytes | |
4C xx xx JMP *+3 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and not relocatable code |
38 bytes | |
36 36 ROL $36,X \ × 5 76 36 ROR $36,X / 26 26... ROL $26 × 9 |
Clobbers Z&N |
53 bytes | |
18 ... CLC × 51 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 51 50 00 BVC *+2 |
Clobbers V |
106 cycles
5 bytes | |
---|---|
A2 15 LDX #21 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
A0 15 LDY #21 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
A9 LDA #79 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A9 E9 LDA #$E9 ;hides 'SBC #$08' 08 PHP ;first loop only EA NOP 30 FB BMI *-3 |
Clobbers A, S, Z&N, C, and V; and writes in stack |
7 bytes | |
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 |
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 |
8 bytes | |
08 PHP A2 0E LDX #14 EA NOP CA DEX D0 FC BNE *-2 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 0E LDY #14 EA NOP 88 DEY D0 FC BNE *-2 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 | |
A5 A5 LDA $A5 38 SEC A9 14 LDA #20 E9 01 SBC #1 D0 FB BNE *-3 |
Clobbers A, Z&N, C, and V |
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 @rts12, and @rts15; and writes in stack |
08 PHP A9 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts15 10 FA BPL *-4 28 PLP |
Clobbers A; requires @rts12, and @rts15; and writes in stack |
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 @rts12, and @rts14; 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 |
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 |
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 |
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 |
10 bytes | |
EA ... NOP × 2 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 68 PLA |
Clobbers Z&N, and C; and writes in stack |
A5 A5 LDA $A5 A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 3 18 CLC D0 F9 BNE *-5 |
Clobbers A, Z&N, and C |
EA ... NOP × 2 08 PHP A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 28 PLP |
Clobbers A; and writes in stack |
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 FC BPL *-2 68 PLA 28 PLP |
Writes in stack |
27 bytes | |
EA NOP 68 ... PLA × 26 |
Clobbers A, S, and Z&N |
31 bytes | |
68 PLA \ × 5 48 PHA / 36 36 ROL $36,X 76 36 ROR $36,X A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 12 10 F0 BPL *-14 |
Clobbers A, and Z&N |
36 bytes | |
26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 8 76 36 ROR $36,X / |
Clobbers Z&N |
53 bytes | |
EA ... NOP × 53 |
No requirements |
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 | |
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 |
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 |
68 PLA 18 CLC A9 69 LDA #$69 ;hides 'ADC #$08' 08 PHP ;first loop only 90 FC BCC *-2 |
Clobbers A, S, Z&N, C, and V; and writes in stack |
8 bytes | |
68 PLA 38 SEC A9 14 LDA #20 E9 01 SBC #1 D0 FB BNE *-3 |
Clobbers A, S, Z&N, C, and V |
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 |
9 bytes | |
38 SEC A9 0D LDA #13 24 24 BIT $24 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
98 TYA 48 PHA A0 13 LDY #19 88 DEY D0 FD BNE *-1 68 PLA A8 TAY |
Clobbers A, and Z&N; and writes in stack |
EA ... NOP × 2 08 PHP A2 13 LDX #19 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
EA ... NOP × 2 08 PHP A0 13 LDY #19 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; and writes in stack |
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 |
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 |
10 bytes | |
EA NOP 48 PHA 38 SEC A9 13 LDA #19 E9 01 SBC #1 D0 FB BNE *-3 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
EA ... NOP × 2 A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 3 18 CLC D0 F9 BNE *-5 |
Clobbers A, Z&N, and C |
EA NOP 08 PHP 38 SEC A9 13 LDA #19 E9 01 SBC #1 D0 FB BNE *-3 28 PLP |
Clobbers A; 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 FB BNE *-3 68 PLA 28 PLP |
Writes in stack |
27 bytes | |
68 PLA 48 PHA 68 ... PLA × 25 |
Clobbers A, S, and Z&N |
31 bytes | |
EA NOP 68 PLA \ × 15 48 PHA / |
Clobbers A, and Z&N |
36 bytes | |
E6 xx INC @zptemp 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires @zptemp |
37 bytes | |
EA NOP C5 C5 CMP $C5 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N, and C |
EA NOP 24 24 BIT $24 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N, and V |
FE 00 02 INC $0200,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $200-$2FF |
FE 00 03 INC $0300,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $300-$3FF |
FE 00 04 INC $0400,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $400-$4FF |
FE 00 05 INC $0500,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $500-$5FF |
FE 00 06 INC $0600,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $600-$6FF |
FE 00 07 INC $0700,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 3 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $700-$7FF |
EA NOP 04 04 NOP $04 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires support for unofficial opcodes |
38 bytes | |
EA NOP 4C xx xx JMP *+3 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and not relocatable code |
39 bytes | |
EA NOP 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / 26 26... ROL $26 × 9 |
Clobbers Z&N |
54 bytes | |
18 ... CLC × 52 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 52 50 00 BVC *+2 |
Clobbers V |
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 FD BNE *-1 |
Clobbers X, and Z&N |
EA NOP A0 15 LDY #21 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
7 bytes | |
38 SEC A9 15 LDA #21 E9 01 SBC #1 D0 FB BNE *-3 |
Clobbers A, Z&N, C, and V |
08 PHP A2 14 LDX #20 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 14 LDY #20 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; 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 |
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 |
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 | |
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 |
48 PHA 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only EA NOP D0 FB BNE *-3 68 PLA |
Clobbers Z&N, C, and V; requires support for unofficial opcodes; and writes in stack |
08 PHP 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only EA NOP D0 FB BNE *-3 28 PLP |
Clobbers A; requires support for unofficial opcodes; and writes in stack |
EA NOP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 48 ... PHA × 2 18 CLC D0 FA BNE *-4 |
Clobbers A, S, Z&N, and C; and writes in stack |
10 bytes | |
48 PHA 38 SEC A9 0E LDA #14 EA NOP E9 01 SBC #1 D0 FA BNE *-4 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
08 PHP 38 SEC A9 0E LDA #14 EA NOP E9 01 SBC #1 D0 FA BNE *-4 28 PLP |
Clobbers A; 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 |
F6 F6 INC $F6,X 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 writable $00-$FF; 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 @rts12, and @rts15; and writes in stack |
48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 18 CLC 10 FA BPL *-4 68 PLA |
Clobbers Z&N, and C; requires dummy interrupt handler; and writes in stack |
48 ... PHA × 3 A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 68 PLA |
Clobbers S, Z&N, and C; and writes in stack |
11 bytes | |
EA ... NOP × 3 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 68 PLA |
Clobbers Z&N, and C; and writes in stack |
EA NOP A5 A5 LDA $A5 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 @rts12, and @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 |
31 bytes | |
68 PLA \ × 7 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 |
36 bytes | |
36 36 ROL $36,X \ × 9 76 36 ROR $36,X / |
Clobbers Z&N |
54 bytes | |
EA ... NOP × 54 |
No requirements |
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 | |
A0 88 LDY #136 ;hides 'DEY' F6 F6 INC $F6,X 30 FB BMI *-3 |
Clobbers Y, and Z&N; and requires @zptemp, and writable $00-$FF |
48 PHA A2 15 LDX #21 CA DEX D0 FD BNE *-1 |
Clobbers X, S, and Z&N; and writes in stack |
48 PHA A0 15 LDY #21 88 DEY D0 FD BNE *-1 |
Clobbers Y, S, and Z&N; and writes in stack |
A2 0C LDX #12 68 PLA CA DEX D0 FC BNE *-2 |
Clobbers A, X, S, and Z&N |
A0 0C LDY #12 68 PLA 88 DEY D0 FC BNE *-2 |
Clobbers A, Y, S, and Z&N |
7 bytes | |
A6 A6 LDX $A6 A2 15 LDX #21 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
A4 A4 LDY $A4 A0 15 LDY #21 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
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 |
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 |
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 |
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 @rts12, and @rts15; 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 |
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 @rts12, and @rts14; and writes in stack |
9 bytes | |
08 PHP A2 13 LDX #19 CA DEX D0 FD BNE *-1 F6 xx INC @zptemp,X 28 PLP |
Clobbers X; requires @zptemp; and writes in stack |
F6 F6 INC $F6,X 38 SEC A9 14 LDA #20 E9 01 SBC #1 D0 FB BNE *-3 |
Clobbers A, Z&N, C, and V; and requires @zptemp, and writable $00-$FF |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' 08 PHP F6 F6 INC $F6,X 28 PLP 90 F9 BCC *-5 |
Clobbers A, Z&N, and C; requires @zptemp, and writable $00-$FF; and writes in stack |
08 PHP F6 F6 INC $F6,X A0 13 LDY #19 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; requires @zptemp, and writable $00-$FF; and writes in stack |
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 @rts12, and @rts14; and writes in stack |
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 |
EA NOP 68 PLA 38 SEC A9 14 LDA #20 E9 01 SBC #1 D0 FB BNE *-3 |
Clobbers A, S, Z&N, C, and V |
48 ... PHA × 2 A9 0A LDA #$0A ;hides 'ASL A' 48 ... PHA × 2 18 CLC D0 FA BNE *-4 |
Clobbers A, S, Z&N, and C; and writes in stack |
48 ... PHA × 2 08 PHP A2 13 LDX #19 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X, and S; and writes in stack |
48 ... PHA × 2 08 PHP A0 13 LDY #19 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y, and S; 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 24 BIT $24 E9 01 SBC #1 D0 F9 BNE *-5 |
Clobbers A, Z&N, C, and V |
18 CLC A9 0A LDA #$0A ;hides 'ASL A' EA NOP E6 xx INC @zptemp F6 F6 INC $F6,X 90 F8 BCC *-6 |
Clobbers A, Z&N, and C; and requires @zptemp, and writable $00-$FF |
EA NOP 68 PLA A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 3 18 CLC D0 F9 BNE *-5 |
Clobbers A, S, Z&N, and C |
11 bytes | |
EA ... NOP × 3 A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 3 18 CLC D0 F9 BNE *-5 |
Clobbers A, Z&N, and C |
28 bytes | |
EA NOP 68 PLA 48 PHA 68 ... PLA × 25 |
Clobbers A, S, and Z&N |
31 bytes | |
68 PLA \ × 6 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 |
37 bytes | |
EA NOP E6 xx INC @zptemp 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires @zptemp |
FE 00 02 INC $0200,X 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $200-$2FF |
FE 00 03 INC $0300,X 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $300-$3FF |
FE 00 04 INC $0400,X 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $400-$4FF |
FE 00 05 INC $0500,X 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $500-$5FF |
FE 00 06 INC $0600,X 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $600-$6FF |
FE 00 07 INC $0700,X 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $700-$7FF |
38 bytes | |
C5 C5 CMP $C5 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 8 76 36 ROR $36,X / |
Clobbers Z&N, and C |
24 24 BIT $24 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 8 76 36 ROR $36,X / |
Clobbers Z&N, and V |
04 04 NOP $04 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 8 76 36 ROR $36,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
39 bytes | |
4C xx xx JMP *+3 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 8 76 36 ROR $36,X / |
Clobbers Z&N; and not relocatable code |
40 bytes | |
EA ... NOP × 2 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / 26 26... ROL $26 × 9 |
Clobbers Z&N |
55 bytes | |
18 ... CLC × 53 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 53 50 00 BVC *+2 |
Clobbers V |
110 cycles
5 bytes | |
---|---|
A9 LDA #83 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
68 PLA A2 15 LDX #21 CA DEX D0 FD BNE *-1 |
Clobbers A, X, S, and Z&N |
68 PLA A0 15 LDY #21 88 DEY D0 FD BNE *-1 |
Clobbers A, Y, S, and Z&N |
7 bytes | |
EA ... NOP × 2 A2 15 LDX #21 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
EA ... NOP × 2 A0 15 LDY #21 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
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 |
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 |
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 |
8 bytes | |
EA NOP 38 SEC A9 15 LDA #21 E9 01 SBC #1 D0 FB BNE *-3 |
Clobbers A, Z&N, C, and V |
EA NOP 08 PHP A2 14 LDX #20 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
EA NOP 08 PHP A0 14 LDY #20 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; and writes in stack |
9 bytes | |
48 PHA 38 SEC A9 14 LDA #20 E9 01 SBC #1 D0 FB BNE *-3 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
08 PHP 38 SEC A9 14 LDA #20 E9 01 SBC #1 D0 FB BNE *-3 28 PLP |
Clobbers A; 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 |
68 PLA 48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 3 18 CLC D0 F9 BNE *-5 |
Clobbers A, Z&N, and C |
12 bytes | |
48 PHA 8C TXA 48 PHA A2 0D LDX #13 EA NOP CA DEX D0 FC BNE *-2 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 @rts12, and @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 FB BNE *-3 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 |
32 bytes | |
36 36 ROL $36,X 76 36 ROR $36,X 68 PLA \ × 14 48 PHA / |
Clobbers A, and Z&N |
37 bytes | |
EA NOP 36 36 ROL $36,X \ × 9 76 36 ROR $36,X / |
Clobbers Z&N |
55 bytes | |
EA ... NOP × 55 |
No requirements |
111 cycles
5 bytes | |
---|---|
A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FC BNE *-2 |
Clobbers A, Z&N, C, and V |
A2 16 LDX #22 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
A0 16 LDY #22 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
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 |
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 |
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 |
8 bytes | |
48 PHA 08 PHP A2 14 LDX #20 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X, and S; and writes in stack |
48 PHA 08 PHP A0 14 LDY #20 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y, and S; and writes in stack |
9 bytes | |
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 A6 A6 LDX $A6 A2 14 LDX #20 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
08 PHP A4 A4 LDY $A4 A0 14 LDY #20 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; and writes in stack |
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 | |
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 @rts12, and @rts14; and writes in stack |
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 @rts12, and @rts14; 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 |
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' 04 04 NOP $04 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 |
08 PHP A9 0A LDA #$0A ;hides 'ASL A' 04 04 NOP $04 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 |
68 PLA 98 TYA 48 PHA A0 13 LDY #19 88 DEY D0 FD BNE *-1 68 PLA A8 TAY |
Clobbers A, S, and Z&N; and writes in stack |
48 ... PHA × 2 38 SEC A9 69 LDA #$69 ;hides 'ADC #$5A' 5A NOP ;first loop only EA NOP D0 FB BNE *-3 68 PLA |
Clobbers S, Z&N, C, and V; requires 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 FB BNE *-3 28 PLP |
Clobbers A, and S; requires support for unofficial opcodes; and writes in stack |
11 bytes | |
08 PHP 48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 68 PLA 28 PLP |
Writes in stack |
28 bytes | |
68 PLA 48 PHA 68 ... PLA × 26 |
Clobbers A, S, and Z&N |
32 bytes | |
EA NOP 68 PLA \ × 6 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 |
38 bytes | |
C5 C5 CMP $C5 36 36 ROL $36,X \ × 9 76 36 ROR $36,X / |
Clobbers Z&N, and C |
24 24 BIT $24 36 36 ROL $36,X \ × 9 76 36 ROR $36,X / |
Clobbers Z&N, and V |
E6 xx INC @zptemp 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 8 76 36 ROR $36,X / |
Clobbers Z&N; and requires @zptemp |
EA NOP FE 00 02 INC $0200,X 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $200-$2FF |
EA NOP FE 00 03 INC $0300,X 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $300-$3FF |
EA NOP FE 00 04 INC $0400,X 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $400-$4FF |
EA NOP FE 00 05 INC $0500,X 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $500-$5FF |
EA NOP FE 00 06 INC $0600,X 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $600-$6FF |
EA NOP FE 00 07 INC $0700,X 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $700-$7FF |
04 04 NOP $04 36 36 ROL $36,X \ × 9 76 36 ROR $36,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
39 bytes | |
4C xx xx JMP *+3 36 36 ROL $36,X \ × 9 76 36 ROR $36,X / |
Clobbers Z&N; and not relocatable code |
41 bytes | |
EA ... NOP × 3 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / 26 26... ROL $26 × 9 |
Clobbers Z&N |
56 bytes | |
18 ... CLC × 54 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 54 50 00 BVC *+2 |
Clobbers V |
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 | |
A2 15 LDX #21 CA DEX D0 FD BNE *-1 F6 xx INC @zptemp,X |
Clobbers X, and Z&N; and requires @zptemp |
F6 F6 INC $F6,X A0 15 LDY #21 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N; and requires @zptemp, and writable $00-$FF |
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 |
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 × 2 A2 15 LDX #21 CA DEX D0 FD BNE *-1 |
Clobbers X, S, and Z&N; and writes in stack |
48 ... PHA × 2 A0 15 LDY #21 88 DEY D0 FD BNE *-1 |
Clobbers Y, S, and Z&N; and writes in stack |
EA NOP 68 PLA A2 15 LDX #21 CA DEX D0 FD BNE *-1 |
Clobbers A, X, S, and Z&N |
EA NOP 68 PLA A0 15 LDY #21 88 DEY D0 FD BNE *-1 |
Clobbers A, Y, S, and Z&N |
8 bytes | |
EA ... NOP × 3 A2 15 LDX #21 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
EA ... NOP × 3 A0 15 LDY #21 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
68 PLA 38 SEC A9 15 LDA #21 E9 01 SBC #1 D0 FB BNE *-3 |
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 | |
EA ... NOP × 2 38 SEC A9 15 LDA #21 E9 01 SBC #1 D0 FB BNE *-3 |
Clobbers A, Z&N, C, and V |
8C TXA 48 PHA A2 14 LDX #20 CA DEX D0 FD BNE *-1 68 PLA AA TAX |
Clobbers A, and Z&N; and writes in stack |
08 PHP A2 0D LDX #13 C5 C5 CMP $C5 CA DEX D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 0D LDY #13 C5 C5 CMP $C5 88 DEY D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
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 48 PHA 38 SEC A9 14 LDA #20 E9 01 SBC #1 D0 FB BNE *-3 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
EA NOP 08 PHP 38 SEC A9 14 LDA #20 E9 01 SBC #1 D0 FB BNE *-3 28 PLP |
Clobbers A; and writes in stack |
11 bytes | |
08 PHP 48 PHA 38 SEC A9 13 LDA #19 E9 01 SBC #1 D0 FB BNE *-3 68 PLA 28 PLP |
Writes in stack |
EA NOP 68 PLA 48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 3 18 CLC D0 F9 BNE *-5 |
Clobbers A, Z&N, and C |
28 bytes | |
68 ... PLA × 28 |
Clobbers A, S, and Z&N |
32 bytes | |
68 PLA \ × 16 48 PHA / |
Clobbers A, and Z&N |
38 bytes | |
26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N |
56 bytes | |
EA ... NOP × 56 |
No requirements |
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 | |
18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FC BNE *-2 |
Clobbers A, Z&N, C, and V |
A2 10 LDX #16 EA NOP CA DEX D0 FC BNE *-2 |
Clobbers X, and Z&N |
A0 10 LDY #16 EA NOP 88 DEY D0 FC BNE *-2 |
Clobbers Y, and Z&N |
7 bytes | |
08 PHP A2 15 LDX #21 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 15 LDY #21 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; 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 |
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 |
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 × 2 38 SEC A9 14 LDA #20 E9 01 SBC #1 D0 FB BNE *-3 68 PLA |
Clobbers S, Z&N, C, and V; and writes in stack |
48 PHA 08 PHP 38 SEC A9 14 LDA #20 E9 01 SBC #1 D0 FB BNE *-3 28 PLP |
Clobbers A, and S; and writes in stack |
11 bytes | |
24 24 BIT $24 48 PHA 38 SEC A9 14 LDA #20 E9 01 SBC #1 D0 FB BNE *-3 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
08 PHP A5 A5 LDA $A5 38 SEC A9 14 LDA #20 E9 01 SBC #1 D0 FB BNE *-3 28 PLP |
Clobbers A; and writes in stack |
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 @rts12, and @rts15; 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 @rts12, and @rts14; and writes in stack |
08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 18 CLC 10 FA BPL *-4 68 PLA 28 PLP |
Requires dummy interrupt handler; and writes in stack |
48 ... PHA × 2 A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 3 18 CLC D0 F9 BNE *-5 68 PLA |
Clobbers S, Z&N, and C; and writes in stack |
12 bytes | |
EA ... NOP × 2 08 PHP 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP D0 FB BNE *-3 68 PLA 28 PLP |
Writes in stack |
29 bytes | |
EA NOP 68 PLA 48 PHA 68 ... PLA × 26 |
Clobbers A, S, and Z&N |
33 bytes | |
68 PLA \ × 6 48 PHA / 36 36 ROL $36,X 76 36 ROR $36,X A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 12 10 F0 BPL *-14 |
Clobbers A, and Z&N |
38 bytes | |
E6 xx INC @zptemp 36 36 ROL $36,X \ × 9 76 36 ROR $36,X / |
Clobbers Z&N; and requires @zptemp |
39 bytes | |
EA NOP C5 C5 CMP $C5 36 36 ROL $36,X \ × 9 76 36 ROR $36,X / |
Clobbers Z&N, and C |
EA NOP 24 24 BIT $24 36 36 ROL $36,X \ × 9 76 36 ROR $36,X / |
Clobbers Z&N, and V |
FE 00 02 INC $0200,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 8 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $200-$2FF |
FE 00 03 INC $0300,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 8 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $300-$3FF |
FE 00 04 INC $0400,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 8 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $400-$4FF |
FE 00 05 INC $0500,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 8 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $500-$5FF |
FE 00 06 INC $0600,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 8 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $600-$6FF |
FE 00 07 INC $0700,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 8 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $700-$7FF |
EA NOP 04 04 NOP $04 36 36 ROL $36,X \ × 9 76 36 ROR $36,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
40 bytes | |
EA NOP 4C xx xx JMP *+3 36 36 ROL $36,X \ × 9 76 36 ROR $36,X / |
Clobbers Z&N; and not relocatable code |
42 bytes | |
26 26 ROL $26 \ × 2 66 26 ROR $26 / 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / 26 26... ROL $26 × 9 |
Clobbers Z&N |
57 bytes | |
18 ... CLC × 55 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 55 50 00 BVC *+2 |
Clobbers V |
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 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 |
48 PHA A2 16 LDX #22 CA DEX D0 FD BNE *-1 |
Clobbers X, S, and Z&N; and writes in stack |
48 PHA A0 16 LDY #22 88 DEY D0 FD BNE *-1 |
Clobbers Y, S, and Z&N; and writes in stack |
7 bytes | |
A5 A5 LDA $A5 A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FC BNE *-2 |
Clobbers A, Z&N, C, and V |
A6 A6 LDX $A6 A2 16 LDX #22 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
A4 A4 LDY $A4 A0 16 LDY #22 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
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 |
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 |
8 bytes | |
08 PHP A2 18 LDX #24 ;hides 'CLC' CA ... DEX × 2 D0 FB BNE *-3 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 18 LDY #24 ;hides 'CLC' 88 ... DEY × 2 D0 FB BNE *-3 28 PLP |
Clobbers Y; and writes in stack |
48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 18 CLC D0 FA BNE *-4 |
Clobbers A, S, Z&N, and C; and writes in stack |
9 bytes | |
A5 A5 LDA $A5 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 FD BNE *-1 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 FD BNE *-1 68 PLA A8 TAY 68 PLA |
Clobbers Z&N; and writes in stack |
A5 A5 LDA $A5 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 38 SEC A9 0D LDA #13 24 24 BIT $24 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 13 LDA #19 E9 01 SBC #1 D0 FB BNE *-3 68 PLA 28 PLP |
Writes in stack |
29 bytes | |
EA NOP 68 ... PLA × 28 |
Clobbers A, S, and Z&N |
33 bytes | |
EA NOP 68 PLA \ × 16 48 PHA / |
Clobbers A, and Z&N |
38 bytes | |
36 36 ROL $36,X \ × 5 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N |
57 bytes | |
EA ... NOP × 57 |
No requirements |
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 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 |
68 PLA A2 16 LDX #22 CA DEX D0 FD BNE *-1 |
Clobbers A, X, S, and Z&N |
68 PLA A0 16 LDY #22 88 DEY D0 FD BNE *-1 |
Clobbers A, Y, S, and Z&N |
7 bytes | |
EA ... NOP × 2 A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FC BNE *-2 |
Clobbers A, Z&N, C, and V |
EA ... NOP × 2 A2 16 LDX #22 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
EA ... NOP × 2 A0 16 LDY #22 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
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 |
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 |
8 bytes | |
EA NOP 08 PHP A2 15 LDX #21 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
EA NOP 08 PHP A0 15 LDY #21 88 DEY D0 FD BNE *-1 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 @rts12, and @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 | |
48 PHA 38 SEC A9 15 LDA #21 E9 01 SBC #1 D0 FB BNE *-3 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
08 PHP 38 SEC A9 15 LDA #21 E9 01 SBC #1 D0 FB BNE *-3 28 PLP |
Clobbers A; 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 36 ROL $36,X 76 36 ROR $36,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 FB BNE *-3 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 FA BNE *-4 68 PLA 28 PLP |
Writes in stack |
29 bytes | |
68 PLA 48 PHA 68 ... PLA × 27 |
Clobbers A, S, and Z&N |
33 bytes | |
68 PLA \ × 8 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 |
39 bytes | |
EA NOP E6 xx INC @zptemp 36 36 ROL $36,X \ × 9 76 36 ROR $36,X / |
Clobbers Z&N; and requires @zptemp |
FE 00 02 INC $0200,X 36 36 ROL $36,X \ × 9 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $200-$2FF |
FE 00 03 INC $0300,X 36 36 ROL $36,X \ × 9 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $300-$3FF |
FE 00 04 INC $0400,X 36 36 ROL $36,X \ × 9 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $400-$4FF |
FE 00 05 INC $0500,X 36 36 ROL $36,X \ × 9 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $500-$5FF |
FE 00 06 INC $0600,X 36 36 ROL $36,X \ × 9 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $600-$6FF |
FE 00 07 INC $0700,X 36 36 ROL $36,X \ × 9 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $700-$7FF |
40 bytes | |
C5 C5 CMP $C5 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N, and C |
24 24 BIT $24 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N, and V |
04 04 NOP $04 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires support for unofficial opcodes |
41 bytes | |
4C xx xx JMP *+3 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and not relocatable code |
42 bytes | |
26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / 26 26... ROL $26 × 9 |
Clobbers Z&N |
58 bytes | |
18 ... CLC × 56 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 56 50 00 BVC *+2 |
Clobbers V |
116 cycles
5 bytes | |
---|---|
A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 |
Clobbers A, Z&N, C, and V |
A2 17 LDX #23 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
A0 17 LDY #23 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
7 bytes | |
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 |
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 |
8 bytes | |
08 PHP A0 88 LDY #136 ;hides 'DEY' F6 F6 INC $F6,X 30 FB BMI *-3 28 PLP |
Clobbers Y; requires @zptemp, and writable $00-$FF; and writes in stack |
48 PHA 08 PHP A2 15 LDX #21 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X, and S; and writes in stack |
48 PHA 08 PHP A0 15 LDY #21 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y, and S; and writes in stack |
9 bytes | |
08 PHP A6 A6 LDX $A6 A2 15 LDX #21 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
08 PHP A4 A4 LDY $A4 A0 15 LDY #21 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; and writes in stack |
E6 xx INC @zptemp A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 18 CLC D0 FA BNE *-4 |
Clobbers A, Z&N, and C; requires @zptemp; 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 |
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 |
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 |
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 |
10 bytes | |
EA NOP A5 A5 LDA $A5 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 |
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 @rts12, and @rts15; and writes in stack |
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 @rts12, and @rts15; 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 |
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 |
68 PLA 8C TXA 48 PHA A2 14 LDX #20 CA DEX D0 FD BNE *-1 68 PLA AA TAX |
Clobbers A, S, and Z&N; and writes in stack |
11 bytes | |
98 TYA 48 PHA A0 0D LDY #13 A5 A5 LDA $A5 88 DEY D0 FB BNE *-3 68 PLA A8 TAY |
Clobbers A, and Z&N; 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 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 08 PHP F6 F6 INC $F6,X 28 PLP 90 F9 BCC *-5 68 PLA |
Clobbers Z&N, and C; requires @zptemp, and writable $00-$FF; and writes in stack |
08 PHP F6 F6 INC $F6,X 38 SEC A9 14 LDA #20 E9 01 SBC #1 D0 FB BNE *-3 28 PLP |
Clobbers A; requires @zptemp, and writable $00-$FF; 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 @rts12, and @rts14; 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 @rts12, and @rts14; and writes in stack |
48 ... PHA × 3 38 SEC A9 14 LDA #20 E9 01 SBC #1 D0 FB BNE *-3 68 PLA |
Clobbers S, Z&N, C, and V; and writes in stack |
48 ... PHA × 2 08 PHP 38 SEC A9 14 LDA #20 E9 01 SBC #1 D0 FB BNE *-3 28 PLP |
Clobbers A, and S; 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 A5 LDA $A5 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 |
33 bytes | |
68 PLA \ × 7 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 |
39 bytes | |
EA NOP 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N |
58 bytes | |
EA ... NOP × 58 |
No requirements |
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 A5 LDA $A5 CA DEX D0 FA BNE *-4 |
Clobbers A, X, and Z&N |
A0 0D LDY #13 ;hides 'ORA abs' A5 A5 LDA $A5 88 DEY D0 FA BNE *-4 |
Clobbers A, Y, and Z&N |
A2 16 LDX #22 CA DEX D0 FD BNE *-1 F6 xx INC @zptemp,X |
Clobbers X, and Z&N; and requires @zptemp |
F6 F6 INC $F6,X A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FC BNE *-2 |
Clobbers A, Z&N, C, and V; and requires @zptemp, and writable $00-$FF |
F6 F6 INC $F6,X A0 16 LDY #22 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N; and requires @zptemp, and writable $00-$FF |
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 |
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 |
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 |
48 ... PHA × 2 A2 16 LDX #22 CA DEX D0 FD BNE *-1 |
Clobbers X, S, and Z&N; and writes in stack |
48 ... PHA × 2 A0 16 LDY #22 88 DEY D0 FD BNE *-1 |
Clobbers Y, S, and Z&N; and writes in stack |
8 bytes | |
EA ... NOP × 3 A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FC BNE *-2 |
Clobbers A, Z&N, C, and V |
EA ... NOP × 3 A2 16 LDX #22 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
EA ... NOP × 3 A0 16 LDY #22 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
9 bytes | |
8C TXA 48 PHA A2 15 LDX #21 CA DEX D0 FD BNE *-1 68 PLA AA TAX |
Clobbers A, and Z&N; and writes in stack |
EA ... NOP × 2 08 PHP A2 15 LDX #21 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
EA ... NOP × 2 08 PHP A0 15 LDY #21 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; and writes in stack |
08 PHP 48 PHA A9 LDA #76 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
EA NOP 48 PHA 38 SEC A9 15 LDA #21 E9 01 SBC #1 D0 FB BNE *-3 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
EA NOP 08 PHP 38 SEC A9 15 LDA #21 E9 01 SBC #1 D0 FB BNE *-3 28 PLP |
Clobbers A; and writes in stack |
11 bytes | |
08 PHP 48 PHA 38 SEC A9 14 LDA #20 E9 01 SBC #1 D0 FB BNE *-3 68 PLA 28 PLP |
Writes in stack |
18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' EA NOP 36 36 ROL $36,X 76 36 ROR $36,X 90 F8 BCC *-6 |
Clobbers A, Z&N, and C |
30 bytes | |
EA NOP 68 PLA 48 PHA 68 ... PLA × 27 |
Clobbers A, S, and Z&N |
34 bytes | |
36 36 ROL $36,X 76 36 ROR $36,X 68 PLA \ × 15 48 PHA / |
Clobbers A, and Z&N |
40 bytes | |
C5 C5 CMP $C5 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N, and C |
24 24 BIT $24 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N, and V |
E6 xx INC @zptemp 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires @zptemp |
EA NOP FE 00 02 INC $0200,X 36 36 ROL $36,X \ × 9 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $200-$2FF |
EA NOP FE 00 03 INC $0300,X 36 36 ROL $36,X \ × 9 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $300-$3FF |
EA NOP FE 00 04 INC $0400,X 36 36 ROL $36,X \ × 9 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $400-$4FF |
EA NOP FE 00 05 INC $0500,X 36 36 ROL $36,X \ × 9 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $500-$5FF |
EA NOP FE 00 06 INC $0600,X 36 36 ROL $36,X \ × 9 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $600-$6FF |
EA NOP FE 00 07 INC $0700,X 36 36 ROL $36,X \ × 9 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $700-$7FF |
04 04 NOP $04 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires support for unofficial opcodes |
41 bytes | |
4C xx xx JMP *+3 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and not relocatable code |
42 bytes | |
36 36 ROL $36,X \ × 6 76 36 ROR $36,X / 26 26... ROL $26 × 9 |
Clobbers Z&N |
59 bytes | |
18 ... CLC × 57 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 57 50 00 BVC *+2 |
Clobbers V |
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 | |
18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 |
Clobbers A, Z&N, C, and V |
EA NOP A2 17 LDX #23 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
EA NOP A0 17 LDY #23 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
7 bytes | |
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 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 A2 16 LDX #22 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 16 LDY #22 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; 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 @rts12, and @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 04 NOP $04 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 FB BNE *-3 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 |
34 bytes | |
EA NOP 68 PLA \ × 7 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 |
40 bytes | |
26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 9 76 36 ROR $36,X / |
Clobbers Z&N |
59 bytes | |
EA ... NOP × 59 |
No requirements |
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 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 |
48 PHA A2 17 LDX #23 CA DEX D0 FD BNE *-1 |
Clobbers X, S, and Z&N; and writes in stack |
7 bytes | |
A5 A5 LDA $A5 A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 |
Clobbers A, Z&N, C, and V |
A6 A6 LDX $A6 A2 17 LDX #23 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
A4 A4 LDY $A4 A0 17 LDY #23 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
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 |
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 |
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 |
8 bytes | |
A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 24 24 BIT $24 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 |
08 PHP A2 15 LDX #21 CA DEX D0 FD BNE *-1 F6 xx INC @zptemp,X 28 PLP |
Clobbers X; requires @zptemp; and writes in stack |
08 PHP F6 F6 INC $F6,X A0 15 LDY #21 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; requires @zptemp, and writable $00-$FF; 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 |
48 ... PHA × 2 08 PHP A2 15 LDX #21 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X, and S; and writes in stack |
48 ... PHA × 2 08 PHP A0 15 LDY #21 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y, and S; and writes in stack |
10 bytes | |
EA NOP 8C TXA 48 PHA A2 15 LDX #21 CA DEX D0 FD BNE *-1 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 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
EA ... NOP × 3 08 PHP A0 15 LDY #21 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; 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 |
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 |
11 bytes | |
48 PHA 8C TXA 48 PHA A2 14 LDX #20 CA DEX D0 FD BNE *-1 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 FB BNE *-3 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 FB BNE *-3 68 PLA 28 PLP |
Writes in stack |
30 bytes | |
68 PLA 48 PHA 68 ... PLA × 28 |
Clobbers A, S, and Z&N |
34 bytes | |
68 PLA \ × 17 48 PHA / |
Clobbers A, and Z&N |
40 bytes | |
E6 xx INC @zptemp 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires @zptemp |
41 bytes | |
EA NOP C5 C5 CMP $C5 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N, and C |
EA NOP 24 24 BIT $24 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N, and V |
FE 00 02 INC $0200,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $200-$2FF |
FE 00 03 INC $0300,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $300-$3FF |
FE 00 04 INC $0400,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $400-$4FF |
FE 00 05 INC $0500,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $500-$5FF |
FE 00 06 INC $0600,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $600-$6FF |
FE 00 07 INC $0700,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 4 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $700-$7FF |
EA NOP 04 04 NOP $04 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires support for unofficial opcodes |
42 bytes | |
EA NOP 4C xx xx JMP *+3 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and not relocatable code |
43 bytes | |
EA NOP 36 36 ROL $36,X \ × 6 76 36 ROR $36,X / 26 26... ROL $26 × 9 |
Clobbers Z&N |
60 bytes | |
18 ... CLC × 58 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 58 50 00 BVC *+2 |
Clobbers V |
120 cycles
5 bytes | |
---|---|
A9 LDA #93 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
6 bytes | |
A2 11 LDX #17 EA NOP CA DEX D0 FC BNE *-2 |
Clobbers X, and Z&N |
A0 11 LDY #17 EA NOP 88 DEY D0 FC BNE *-2 |
Clobbers Y, and Z&N |
68 PLA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 |
Clobbers A, S, Z&N, C, and V |
7 bytes | |
EA ... NOP × 2 A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 |
Clobbers A, Z&N, C, and V |
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 |
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 |
8 bytes | |
48 PHA 18 CLC 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 18 CLC 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 A2 10 LDX #16 EA NOP CA DEX D0 FC BNE *-2 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 10 LDY #16 EA NOP 88 DEY D0 FC BNE *-2 28 PLP |
Clobbers Y; 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 FB BNE *-3 68 PLA 28 PLP |
Clobbers S; and writes in stack |
13 bytes | |
08 PHP 24 24 BIT $24 48 PHA 38 SEC A9 14 LDA #20 E9 01 SBC #1 D0 FB BNE *-3 68 PLA 28 PLP |
Writes in stack |
30 bytes | |
68 ... PLA × 30 |
Clobbers A, S, and Z&N |
35 bytes | |
68 PLA \ × 7 48 PHA / 36 36 ROL $36,X 76 36 ROR $36,X A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 12 10 F0 BPL *-14 |
Clobbers A, and Z&N |
40 bytes | |
36 36 ROL $36,X \ × 10 76 36 ROR $36,X / |
Clobbers Z&N |
60 bytes | |
EA ... NOP × 60 |
No requirements |
121 cycles
5 bytes | |
---|---|
A2 18 LDX #24 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
A0 18 LDY #24 88 DEY D0 FD BNE *-1 |
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 |
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 |
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 |
8 bytes | |
EA NOP A5 A5 LDA $A5 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' 20 xx xx JSR @rts15 90 FA BCC *-4 |
Clobbers A, Z&N, and C; requires @rts12, and @rts15; and writes in stack |
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 × 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 |
48 PHA 08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FC BNE *-2 28 PLP |
Clobbers A, and S; and writes in stack |
48 PHA 08 PHP A2 16 LDX #22 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X, and S; and writes in stack |
48 PHA 08 PHP A0 16 LDY #22 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y, and S; and writes in stack |
9 bytes | |
24 24 BIT $24 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 A5 A5 LDA $A5 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 A6 A6 LDX $A6 A2 16 LDX #22 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
08 PHP A4 A4 LDY $A4 A0 16 LDY #22 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; 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 C5 CMP $C5 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 FD BNE *-1 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 FB BNE *-3 68 PLA 28 PLP |
Writes in stack |
31 bytes | |
EA NOP 68 PLA 48 PHA 68 ... PLA × 28 |
Clobbers A, S, and Z&N |
35 bytes | |
EA NOP 68 PLA \ × 17 48 PHA / |
Clobbers A, and Z&N |
41 bytes | |
EA NOP E6 xx INC @zptemp 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires @zptemp |
FE 00 02 INC $0200,X 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $200-$2FF |
FE 00 03 INC $0300,X 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $300-$3FF |
FE 00 04 INC $0400,X 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $400-$4FF |
FE 00 05 INC $0500,X 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $500-$5FF |
FE 00 06 INC $0600,X 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $600-$6FF |
FE 00 07 INC $0700,X 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $700-$7FF |
42 bytes | |
C5 C5 CMP $C5 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 9 76 36 ROR $36,X / |
Clobbers Z&N, and C |
24 24 BIT $24 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 9 76 36 ROR $36,X / |
Clobbers Z&N, and V |
04 04 NOP $04 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 9 76 36 ROR $36,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
43 bytes | |
4C xx xx JMP *+3 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 9 76 36 ROR $36,X / |
Clobbers Z&N; and not relocatable code |
44 bytes | |
EA ... NOP × 2 36 36 ROL $36,X \ × 6 76 36 ROR $36,X / 26 26... ROL $26 × 9 |
Clobbers Z&N |
61 bytes | |
18 ... CLC × 59 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 59 50 00 BVC *+2 |
Clobbers V |
122 cycles
6 bytes | |
---|---|
EA NOP A9 LDA #93 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
7 bytes | |
38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only EA NOP 10 FB BPL *-3 |
Clobbers A, Z&N, C, V, and D |
EA NOP A2 11 LDX #17 EA NOP CA DEX D0 FC BNE *-2 |
Clobbers X, and Z&N |
EA NOP A0 11 LDY #17 EA NOP 88 DEY D0 FC BNE *-2 |
Clobbers Y, and Z&N |
F6 F6 INC $F6,X 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, and writable $00-$FF |
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 |
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 |
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 |
8 bytes | |
38 SEC A9 11 LDA #17 EA NOP E9 01 SBC #1 D0 FA BNE *-4 |
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 | |
EA ... NOP × 2 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FC BNE *-2 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
08 PHP 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only EA NOP 10 FB BPL *-3 28 PLP |
Clobbers A; and writes in stack |
EA ... NOP × 2 08 PHP A2 16 LDX #22 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
EA ... NOP × 2 08 PHP A0 16 LDY #22 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; 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 @rts12, and @rts14; and writes in stack |
11 bytes | |
08 PHP 48 PHA 38 SEC A9 15 LDA #21 E9 01 SBC #1 D0 FB BNE *-3 68 PLA 28 PLP |
Writes in stack |
A5 A5 LDA $A5 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 |
35 bytes | |
68 PLA \ × 9 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 |
41 bytes | |
EA NOP 36 36 ROL $36,X \ × 10 76 36 ROR $36,X / |
Clobbers Z&N |
61 bytes | |
EA ... NOP × 61 |
No requirements |
123 cycles
6 bytes | |
---|---|
EA NOP A2 18 LDX #24 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
EA NOP A0 18 LDY #24 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
EA NOP 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 | |
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 FB BNE *-3 |
Clobbers A, Z&N, C, and V |
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 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 17 LDY #23 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; and writes in stack |
9 bytes | |
08 PHP 48 PHA A9 LDA #82 20 xx xx JSR delay_a_25_clocks 68 PLA 28 PLP |
Requires delay_a_25_clocks; and writes in stack |
10 bytes | |
68 PLA A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 4 18 CLC D0 F8 BNE *-6 |
Clobbers A, S, Z&N, and C |
11 bytes | |
EA ... NOP × 2 A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 4 18 CLC D0 F8 BNE *-6 |
Clobbers A, Z&N, and C |
E6 xx INC @zptemp 48 PHA A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 18 CLC D0 FA BNE *-4 68 PLA |
Clobbers Z&N, and C; requires @zptemp; and writes in stack |
08 PHP 48 PHA 18 CLC A9 0A LDA #$0A ;hides 'ASL A' 00 00 BRK 0 90 FB BCC *-3 68 PLA 28 PLP |
Requires dummy interrupt handler; and writes in stack |
EA NOP 48 ... PHA × 2 A9 0A LDA #$0A ;hides 'ASL A' 08 PHP 28 PLP 18 CLC D0 FA BNE *-4 68 PLA |
Clobbers S, Z&N, and C; and writes in stack |
12 bytes | |
EA NOP C5 C5 CMP $C5 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 0A LDA #$0A ;hides 'ASL A' 20 xx xx JSR @rts15 18 CLC 10 F9 BPL *-5 68 PLA 28 PLP |
Requires @rts12, and @rts15; 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 A5 LDA $A5 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 0A LDA #$0A ;hides 'ASL A' 08 PHP F6 F6 INC $F6,X 28 PLP 90 F9 BCC *-5 68 PLA 28 PLP |
Requires @zptemp, and writable $00-$FF; 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 @rts12, and @rts14; and writes in stack |
48 ... PHA × 2 08 PHP 48 PHA 38 SEC A9 14 LDA #20 E9 01 SBC #1 D0 FB BNE *-3 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 FB BNE *-3 68 PLA 28 PLP |
Writes in stack |
31 bytes | |
68 PLA 48 PHA 68 ... PLA × 29 |
Clobbers A, S, and Z&N |
35 bytes | |
68 PLA \ × 8 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 |
42 bytes | |
C5 C5 CMP $C5 36 36 ROL $36,X \ × 10 76 36 ROR $36,X / |
Clobbers Z&N, and C |
24 24 BIT $24 36 36 ROL $36,X \ × 10 76 36 ROR $36,X / |
Clobbers Z&N, and V |
E6 xx INC @zptemp 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 9 76 36 ROR $36,X / |
Clobbers Z&N; and requires @zptemp |
EA NOP FE 00 02 INC $0200,X 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $200-$2FF |
EA NOP FE 00 03 INC $0300,X 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $300-$3FF |
EA NOP FE 00 04 INC $0400,X 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $400-$4FF |
EA NOP FE 00 05 INC $0500,X 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $500-$5FF |
EA NOP FE 00 06 INC $0600,X 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $600-$6FF |
EA NOP FE 00 07 INC $0700,X 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires writable $700-$7FF |
04 04 NOP $04 36 36 ROL $36,X \ × 10 76 36 ROR $36,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
43 bytes | |
4C xx xx JMP *+3 36 36 ROL $36,X \ × 10 76 36 ROR $36,X / |
Clobbers Z&N; and not relocatable code |
45 bytes | |
EA ... NOP × 3 36 36 ROL $36,X \ × 6 76 36 ROR $36,X / 26 26... ROL $26 × 9 |
Clobbers Z&N |
62 bytes | |
18 ... CLC × 60 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 60 50 00 BVC *+2 |
Clobbers V |
124 cycles
4 bytes | |
---|---|
A2 E8 LDX #232 ;hides 'INX' D0 FD BNE *-1 |
Clobbers X, and Z&N |
6 bytes | |
48 PHA A0 18 LDY #24 88 DEY D0 FD BNE *-1 |
Clobbers Y, S, and Z&N; and writes in stack |
68 PLA A9 LDA #93 20 xx xx JSR delay_a_25_clocks |
Clobbers A, S, Z&N, C, and V; and requires delay_a_25_clocks |
7 bytes | |
A4 A4 LDY $A4 A0 18 LDY #24 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
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 |
A5 A5 LDA $A5 A9 LDA #94 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
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 |
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 |
8 bytes | |
EA NOP 38 SEC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only EA NOP 10 FB BPL *-3 |
Clobbers A, Z&N, C, V, and D |
EA NOP F6 F6 INC $F6,X 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, and writable $00-$FF |
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 | |
EA NOP 38 SEC A9 11 LDA #17 EA NOP E9 01 SBC #1 D0 FA BNE *-4 |
Clobbers A, Z&N, C, and V |
08 PHP A2 0D LDX #13 ;hides 'ORA abs' A5 A5 LDA $A5 CA DEX D0 FA BNE *-4 28 PLP |
Clobbers A, and X; and writes in stack |
08 PHP A0 0D LDY #13 ;hides 'ORA abs' A5 A5 LDA $A5 88 DEY D0 FA BNE *-4 28 PLP |
Clobbers A, and Y; and writes in stack |
08 PHP A2 16 LDX #22 CA DEX D0 FD BNE *-1 F6 xx INC @zptemp,X 28 PLP |
Clobbers X; requires @zptemp; and writes in stack |
F6 F6 INC $F6,X 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 @zptemp, and writable $00-$FF; and writes in stack |
08 PHP F6 F6 INC $F6,X A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FC BNE *-2 28 PLP |
Clobbers A; requires @zptemp, and writable $00-$FF; and writes in stack |
08 PHP F6 F6 INC $F6,X A0 16 LDY #22 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; requires @zptemp, and writable $00-$FF; 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 |
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 |
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 A2 16 LDX #22 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X, and S; and writes in stack |
48 ... PHA × 2 08 PHP A0 16 LDY #22 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y, and S; and writes in stack |
10 bytes | |
EA ... NOP × 3 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only D0 FC BNE *-2 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
EA NOP 08 PHP 18 CLC A9 69 LDA #$69 ;hides 'ADC #$F8' F8 SED ;first loop only EA NOP 10 FB BPL *-3 28 PLP |
Clobbers A; and writes in stack |
EA ... NOP × 3 08 PHP A2 16 LDX #22 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
EA ... NOP × 3 08 PHP A0 16 LDY #22 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; and writes in stack |
11 bytes | |
48 PHA 8C TXA 48 PHA A2 15 LDX #21 CA DEX D0 FD BNE *-1 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 FB BNE *-3 68 PLA 28 PLP |
Writes in stack |
EA NOP A5 A5 LDA $A5 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 |
36 bytes | |
36 36 ROL $36,X 76 36 ROR $36,X 68 PLA \ × 16 48 PHA / |
Clobbers A, and Z&N |
42 bytes | |
26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N |
62 bytes | |
EA ... NOP × 62 |
No requirements |
125 cycles
6 bytes | |
---|---|
68 PLA A2 18 LDX #24 CA DEX D0 FD BNE *-1 |
Clobbers A, X, S, and Z&N |
68 PLA A0 18 LDY #24 88 DEY D0 FD BNE *-1 |
Clobbers A, Y, S, and Z&N |
68 PLA A9 LDA #94 20 xx xx JSR delay_a_25_clocks |
Clobbers A, S, Z&N, C, and V; and requires delay_a_25_clocks |
7 bytes | |
EA ... NOP × 2 A2 18 LDX #24 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
EA ... NOP × 2 A0 18 LDY #24 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
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 |
EA ... NOP × 2 A9 LDA #94 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
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 |
8 bytes | |
48 PHA 18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
EA NOP 38 SEC A9 18 LDA #24 E9 01 SBC #1 D0 FB BNE *-3 |
Clobbers A, Z&N, C, and V |
08 PHP 18 CLC A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 28 PLP |
Clobbers A; and writes in stack |
EA NOP 08 PHP A2 17 LDX #23 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
EA NOP 08 PHP A0 17 LDY #23 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; and writes in stack |
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 | |
F6 F6 INC $F6,X 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, and writable $00-$FF |
EA NOP 68 PLA A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 4 18 CLC D0 F8 BNE *-6 |
Clobbers A, S, Z&N, and C |
12 bytes | |
EA ... NOP × 3 A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 4 18 CLC D0 F8 BNE *-6 |
Clobbers A, Z&N, and C |
32 bytes | |
EA NOP 68 PLA 48 PHA 68 ... PLA × 29 |
Clobbers A, S, and Z&N |
36 bytes | |
EA NOP 68 PLA \ × 8 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 |
42 bytes | |
E6 xx INC @zptemp 36 36 ROL $36,X \ × 10 76 36 ROR $36,X / |
Clobbers Z&N; and requires @zptemp |
43 bytes | |
EA NOP C5 C5 CMP $C5 36 36 ROL $36,X \ × 10 76 36 ROR $36,X / |
Clobbers Z&N, and C |
EA NOP 24 24 BIT $24 36 36 ROL $36,X \ × 10 76 36 ROR $36,X / |
Clobbers Z&N, and V |
FE 00 02 INC $0200,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 9 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $200-$2FF |
FE 00 03 INC $0300,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 9 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $300-$3FF |
FE 00 04 INC $0400,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 9 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $400-$4FF |
FE 00 05 INC $0500,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 9 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $500-$5FF |
FE 00 06 INC $0600,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 9 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $600-$6FF |
FE 00 07 INC $0700,X 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 9 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $700-$7FF |
EA NOP 04 04 NOP $04 36 36 ROL $36,X \ × 10 76 36 ROR $36,X / |
Clobbers Z&N; and requires support for unofficial opcodes |
44 bytes | |
EA NOP 4C xx xx JMP *+3 36 36 ROL $36,X \ × 10 76 36 ROR $36,X / |
Clobbers Z&N; and not relocatable code |
46 bytes | |
26 26 ROL $26 \ × 2 66 26 ROR $26 / 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / 26 26... ROL $26 × 9 |
Clobbers Z&N |
63 bytes | |
18 ... CLC × 61 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 61 50 00 BVC *+2 |
Clobbers V |
126 cycles
5 bytes | |
---|---|
A2 19 LDX #25 CA DEX D0 FD BNE *-1 |
Clobbers X, and Z&N |
A0 19 LDY #25 88 DEY D0 FD BNE *-1 |
Clobbers Y, and Z&N |
7 bytes | |
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 |
68 PLA 48 PHA A9 LDA #92 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
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 |
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 @rts12, and @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 × 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 |
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 FD BNE *-1 28 PLP |
Clobbers X, and S; and writes in stack |
9 bytes | |
24 24 BIT $24 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 A5 LDA $A5 38 SEC A9 18 LDA #24 E9 01 SBC #1 D0 FB BNE *-3 |
Clobbers A, Z&N, C, and V |
08 PHP A5 A5 LDA $A5 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 A6 LDX $A6 A2 17 LDX #23 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
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 24 BIT $24 28 PLP D0 F9 BNE *-5 68 PLA |
Clobbers Z&N, and C; and writes in stack |
11 bytes | |
68 PLA 48 PHA A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 4 18 CLC D0 F8 BNE *-6 |
Clobbers A, Z&N, and C |
12 bytes | |
EA NOP 48 PHA 8C TXA 48 PHA A2 15 LDX #21 CA DEX D0 FD BNE *-1 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 FB BNE *-3 68 PLA 28 PLP |
Writes in stack |
32 bytes | |
EA NOP 68 ... PLA × 31 |
Clobbers A, S, and Z&N |
36 bytes | |
68 PLA \ × 18 48 PHA / |
Clobbers A, and Z&N |
42 bytes | |
36 36 ROL $36,X \ × 6 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N |
63 bytes | |
EA ... NOP × 63 |
No requirements |
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 |
6 bytes | |
A2 12 LDX #18 EA NOP CA DEX D0 FC BNE *-2 |
Clobbers X, and Z&N |
A0 12 LDY #18 EA NOP 88 DEY D0 FC BNE *-2 |
Clobbers Y, and Z&N |
7 bytes | |
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 |
68 PLA 48 PHA A9 LDA #93 20 xx xx JSR delay_a_25_clocks |
Clobbers A, Z&N, C, and V; and requires delay_a_25_clocks |
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 |
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 |
8 bytes | |
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 |
08 PHP A2 11 LDX #17 EA NOP CA DEX D0 FC BNE *-2 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 11 LDY #17 EA NOP 88 DEY D0 FC BNE *-2 28 PLP |
Clobbers Y; and writes in stack |
68 PLA 38 SEC A9 18 LDA #24 E9 01 SBC #1 D0 FB BNE *-3 |
Clobbers A, S, Z&N, C, and V |
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 |
9 bytes | |
EA ... NOP × 2 48 PHA A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 68 PLA |
Clobbers Z&N, C, and V; and writes in stack |
EA ... NOP × 2 38 SEC A9 18 LDA #24 E9 01 SBC #1 D0 FB BNE *-3 |
Clobbers A, Z&N, C, and V |
EA ... NOP × 2 08 PHP A9 E9 LDA #$E9 ;hides 'SBC #$0A' 0A ASL A ;first loop only B0 FC BCS *-2 28 PLP |
Clobbers A; and writes in stack |
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 FC BNE *-2 68 PLA 28 PLP |
Writes in stack |
A9 0A LDA #$0A ;hides 'ASL A' 18 ... CLC × 3 90 00 BCC *+2 18 CLC D0 F7 BNE *-7 |
Clobbers A, Z&N, and C |
32 bytes | |
68 PLA 48 PHA 68 ... PLA × 30 |
Clobbers A, S, and Z&N |
37 bytes | |
68 PLA \ × 8 48 PHA / 36 36 ROL $36,X 76 36 ROR $36,X A9 09 LDA #$09 ;hides 'ORA #$EA' EA NOP ;first loop only EA ... NOP × 12 10 F0 BPL *-14 |
Clobbers A, and Z&N |
43 bytes | |
EA NOP E6 xx INC @zptemp 36 36 ROL $36,X \ × 10 76 36 ROR $36,X / |
Clobbers Z&N; and requires @zptemp |
FE 00 02 INC $0200,X 36 36 ROL $36,X \ × 10 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $200-$2FF |
FE 00 03 INC $0300,X 36 36 ROL $36,X \ × 10 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $300-$3FF |
FE 00 04 INC $0400,X 36 36 ROL $36,X \ × 10 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $400-$4FF |
FE 00 05 INC $0500,X 36 36 ROL $36,X \ × 10 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $500-$5FF |
FE 00 06 INC $0600,X 36 36 ROL $36,X \ × 10 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $600-$6FF |
FE 00 07 INC $0700,X 36 36 ROL $36,X \ × 10 76 36 ROR $36,X / |
Clobbers Z&N; and requires writable $700-$7FF |
44 bytes | |
C5 C5 CMP $C5 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N, and C |
24 24 BIT $24 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N, and V |
04 04 NOP $04 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and requires support for unofficial opcodes |
45 bytes | |
4C xx xx JMP *+3 26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 5 76 36 ROR $36,X / 36 36... ROL $36,X× 9 |
Clobbers Z&N; and not relocatable code |
46 bytes | |
26 26 ROL $26 66 26 ROR $26 36 36 ROL $36,X \ × 6 76 36 ROR $36,X / 26 26... ROL $26 × 9 |
Clobbers Z&N |
64 bytes | |
18 ... CLC × 62 90 00 BCC *+2 |
Clobbers C |
B8 ... CLV × 62 50 00 BVC *+2 |
Clobbers V |
128 cycles
7 bytes | |
---|---|
38 SEC A9 19 LDA #25 E9 01 SBC #1 D0 FB BNE *-3 |
Clobbers A, Z&N, C, and V |
08 PHP A2 18 LDX #24 CA DEX D0 FD BNE *-1 28 PLP |
Clobbers X; and writes in stack |
08 PHP A0 18 LDY #24 88 DEY D0 FD BNE *-1 28 PLP |
Clobbers Y; 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 |
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 |
8 bytes | |
A2 14 LDX #20 ;hides 'NOP zp,X' 04 EA NOP $EA ;hides 'NOP' CA ... DEX × 2 D0 F9 BNE *-5 |
Clobbers X, and Z&N; and requires support for unofficial opcodes |
A0 14 LDY #20 ;hides 'NOP zp,X' 04 EA NOP $EA ;hides 'NOP' 88 ... DEY × 2 D0 F9 BNE *-5 |
Clobbers Y, and Z&N; and requires support for unofficial opcodes |
9 bytes | |
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 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 |
A2 0B LDX #11 F6 F6 INC $F6,X CA DEX D0 FB BNE *-3 F6 xx INC @zptemp,X |
Clobbers X, and Z&N; and requires @zptemp, and writable $00-$FF |
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 |
A2 0B LDX #11 EA NOP 68 PLA CA DEX D0 FB BNE *-3 F6 xx INC @zptemp,X |
Clobbers A, X, S, and Z&N; and requires @zptemp |
10 bytes | |
A2 05 LDX #5 ;hides 'ORA zp' CA DEX ;first loop only A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 CA DEX D0 F7 BNE *-7 |
Clobbers A, X, Z&N, and C |
A0 05 LDY #5 ;hides 'ORA zp' 88 DEY ;first loop only A9 0A LDA #$0A ;hides 'ASL A' 10 FD BPL *-1 88 DEY D0 F7 BNE *-7 |
Clobbers A, Y, Z&N, and C |
A2 0B LDX #11 EA ... NOP × 3 CA DEX D0 FA BNE *-4 F6 xx INC @zptemp,X |
Clobbers X, and Z&N; and requires @zptemp |
A2 09 LDX #9 ;hides 'ORA #imm' FE B5 02 INC $02B5,X ;hides 'LDA $02,X' A5 A5 LDA $A5 CA DEX D0 F7 BNE *-7 |
Clobbers A, X, and Z&N; and requires writable $200-$2FF, and writable $300-$3FF |
A0 09 LDY #9 ;hides 'ORA #imm' FE B5 02 INC $02B5,X ;hides 'LDA $02,X' A5 A5 LDA $A5 88 DEY D0 F7 BNE *-7 |
Clobbers A, Y, and Z&N; and requires writable $200-$2FF, and writable $300-$3FF |
A2 09 LDX #9 ;hides 'ORA #imm' FE B5 03 INC $03B5,X ;hides 'LDA $03,X' A5 A5 LDA $A5 CA DEX D0 F7 BNE *-7 |
Clobbers A, X, and Z&N; and requires writable $300-$3FF, and writable $400-$4FF |
A0 09 LDY #9 ;hides 'ORA #imm' FE B5 03 INC $03B5,X ;hides 'LDA $03,X' A5 A5 LDA $A5 88 DEY D0 F7 BNE *-7 |
Clobbers A, Y, and Z&N; and requires writable $300-$3FF, and writable $400-$4FF |
A2 09 LDX #9 ;hides 'ORA #imm' FE B5 04 INC $04B5,X ;hides 'LDA $04,X' A5 A5 LDA $A5 CA DEX D0 F7 BNE *-7 |
Clobbers A, X, and Z&N; and requires writable $400-$4FF, and writable $500-$5FF |
A0 09 LDY #9 ;hides 'ORA #imm' FE B5 04 INC $04B5,X ;hides 'LDA $04,X' A5 A5 LDA $A5 88 DEY D0 F7 BNE *-7 |
Clobbers A, Y, and Z&N; and requires writable $400-$4FF, and writable $500-$5FF |
A2 09 LDX #9 ;hides 'ORA #imm' FE B5 05 INC $05B5,X ;hides 'LDA $05,X' A5 A5 LDA $A5 CA DEX D0 F7 BNE *-7 |
Clobbers A, X, and Z&N; and requires writable $500-$5FF, and writable $600-$6FF |
A0 09 LDY #9 ;hides 'ORA #imm' FE B5 05 INC $05B5,X ;hides 'LDA $05,X' A5 A5 LDA $A5 88 DEY D0 F7 BNE *-7 |
Clobbers A, Y, and Z&N; and requires writable $500-$5FF, and writable $600-$6FF |
A2 09 LDX #9 ;hides 'ORA #imm' FE B5 07 INC $07B5,X ;hides 'LDA $07,X' A5 A5 LDA $A5 CA DEX D0 F7 BNE *-7 |
Clobbers A, X, and Z&N; and requires writable $00-$FF, and writable $700-$7FF |
A0 09 LDY #9 ;hides 'ORA #imm' FE B5 07 INC $07B5,X ;hides 'LDA $07,X' A5 A5 LDA $A5 88 DEY D0 F7 BNE *-7 |
Clobbers A, Y, and Z&N; and requires writable $00-$FF, and writable $700-$7FF |
A2 09 LDX #9 ;hides 'ORA #imm' FE B5 06 INC $06B5,X ;hides 'LDA $06,X' A5 A5 LDA $A5 CA DEX D0 F7 BNE *-7 |
Clobbers A, X, and Z&N; and requires writable $600-$6FF, and writable $700-$7FF |
A0 09 LDY #9 ;hides 'ORA #imm' FE B5 06 INC $06B5,X ;hides 'LDA $06,X' A5 A5 LDA $A5 88 DEY D0 F7 BNE *-7 |
Clobbers A, Y, and Z&N; and requires writable $600-$6FF, and writable $700-$7FF |
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 @rts12, and @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 |
11 bytes | |
08 PHP 24 24 BIT $24 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 |
BA TSX A0 09 LDY #9 ;hides 'ORA #imm' A5 68 LDA $68 ;hides 'PLA' A5 A5 LDA $A5 88 DEY D0 F8 BNE *-6 9A TXS |
Clobbers A, X, Y, and Z&N; and unsafe for interrupts |
A2 05 LDX #5 ;hides 'ORA zp' B5 68 LDA $68,X ;hides 'PLA' 68 PLA \ × 2 48 PHA / CA DEX D0 F6 BNE *-8 |
Clobbers A, X, S, and Z&N |
A0 05 LDY #5 ;hides 'ORA zp' B5 68 LDA $68,X ;hides 'PLA' 68 PLA \ × 2 48 PHA / 88 DEY D0 F6 BNE *-8 |
Clobbers A, Y, S, and Z&N |
12 bytes | |
A2 05 LDX #5 ;hides 'ORA zp' AD EA EA LDA $EAEA ;hides two 'NOP's 68 PLA \ × 2 48 PHA / CA DEX D0 F5 BNE *-9 |
Clobbers A, X, and Z&N |
A0 05 LDY #5 ;hides 'ORA zp' AD EA EA LDA $EAEA ;hides two 'NOP's 68 PLA \ × 2 48 PHA / 88 DEY D0 F5 BNE *-9 |
Clobbers A, Y, and Z&N |
A2 01 LDX #1 EA NOP A0 11 LDY #17 EA NOP 88 DEY D0 FC BNE *-2 CA DEX D0 F6 BNE *-8 |
Clobbers X, Y, and Z&N |
16 bytes | |
18 ... CLC × 2 A9 0A LDA #$0A ;hides 'ASL A' EA ... NOP × 9 18 CLC 10 F3 BPL *-11 |
Clobbers A, Z&N, and C |
32 bytes | |
68 ... PLA × 32 |
Clobbers A, S, and Z&N |
64 bytes | |
EA ... NOP × 64 |
No requirements |
- From 128 cycles onwards, these tables quit considering RTI options.
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