NOP (No OPeration)¶
NOP is a simple instruction that does nothing. It does not modify any flags, registers, or memory.
The documented NOP instruction takes 2 cycles to complete.
Addressing Modes¶
Mode |
Syntax |
Bytes |
Cycles |
---|---|---|---|
Implied |
NOP |
|
2 |
Undocumented NOP Opcodes¶
There is only one documented NOP instruction ($EA) but many undocumented opcodes also have no effect. Some take more than 2 cycles to complete, and some read data from memory as if they were other instructions.
Mode |
Syntax |
Bytes |
Cycles |
---|---|---|---|
Implied |
+NOP |
|
2 |
Implied |
+NOP |
|
2 |
Implied |
+NOP |
|
2 |
Implied |
+NOP |
|
2 |
Implied |
+NOP |
|
2 |
Implied |
+NOP |
|
2 |
+NOP #const |
|
2 |
|
+NOP #const |
|
2 |
|
+NOP #const |
|
2 |
|
+NOP #const |
|
2 |
|
+NOP #const |
|
2 |
|
+NOP zp |
|
3 |
|
+NOP zp |
|
3 |
|
+NOP zp |
|
3 |
|
+NOP zp,x |
|
4 |
|
+NOP zp,x |
|
4 |
|
+NOP zp,x |
|
4 |
|
+NOP zp,x |
|
4 |
|
+NOP zp,x |
|
4 |
|
+NOP zp,x |
|
4 |
|
+NOP addr |
|
3 |
|
+NOP addr,x |
|
4 |
|
+NOP addr,x |
|
4 |
|
+NOP addr,x |
|
4 |
|
+NOP addr,x |
|
4 |
|
+NOP addr,x |
|
4 |
|
+NOP addr,x |
|
4 |