We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS
NOP: Difference between revisions
From SnesLab
(→External Links: Labiak page number) |
(needing REP/SEP) |
||
(19 intermediate revisions by the same user not shown) | |||
Line 35: | Line 35: | ||
|} | |} | ||
'''NOP''' (No OPeration) is an instruction that does nothing. | '''NOP''' (No OPeration) is an instruction that does nothing (other than increment the [[program counter]] by one). | ||
No flags are affected. | |||
==== Syntax ==== | |||
<pre> | |||
NOP | |||
</pre> | |||
Early 65c816 chips commonly needed NOP after a [[REP]] or [[SEP]]. | |||
=== See Also === | === See Also === | ||
* [[WDM]] | * [[WDM]] | ||
* [[WAI]] | |||
* [[NOP (SPC700)]] | * [[NOP (SPC700)]] | ||
* [[NOP (Super FX)]] | * [[NOP (Super FX)]] | ||
* [[STP]] | |||
* [[SLEEP]] | |||
=== External Links === | === External Links === | ||
* [[Eyes & Lichty]] page 470 | * [[Eyes & Lichty]], [https://archive.org/details/0893037893ProgrammingThe65816/page/470 page 470] on NOP | ||
* [[Labiak]] | * lbid, [https://archive.org/details/0893037893ProgrammingThe65816/page/n289 page 263]. | ||
* [[Carr]] | * [[Labiak]], [https://archive.org/details/Programming_the_65816/page/n165 page 155] on NOP | ||
* [[Leventhal]] | * [[Carr]], [https://archive.org/details/6502UsersManual/page/n278 page 265] on NOP | ||
* [[Leventhal]], [https://archive.org/details/6502-assembly-language-programming/page/n127 page 3-78] on NOP | |||
* snes9x implementation of NOP: https://github.com/snes9xgit/snes9x/blob/master/cpuops.cpp#L1606 | * snes9x implementation of NOP: https://github.com/snes9xgit/snes9x/blob/master/cpuops.cpp#L1606 | ||
* undisbeliever on NOP: https://undisbeliever.net/snesdev/65816-opcodes.html#nop-no-operation | * undisbeliever on NOP: https://undisbeliever.net/snesdev/65816-opcodes.html#nop-no-operation | ||
* Pickens, John. http://www.6502.org/tutorials/6502opcodes.html#NOP | |||
[[Category: ASM]] | [[Category:ASM]] | ||
[[Category:Inherited from 6502]] | [[Category:Inherited from 6502]] | ||
[[Category:One-byte Instructions]] | [[Category:One-byte Instructions]] | ||
[[Category:Control Instructions]] | |||
[[Category:Implied Instructions]] | |||
[[Category:Two-cycle Instructions]] |
Latest revision as of 03:56, 19 August 2024
Basic Info | |||||||
---|---|---|---|---|---|---|---|
Addressing Mode | Opcode | Length | Speed | ||||
Implied (type 3) | EA | 1 byte | 2 cycles |
Flags Affected | |||||||
---|---|---|---|---|---|---|---|
N | V | M | X | D | I | Z | C |
. | . | . | . | . | . | . | . |
NOP (No OPeration) is an instruction that does nothing (other than increment the program counter by one).
No flags are affected.
Syntax
NOP
Early 65c816 chips commonly needed NOP after a REP or SEP.
See Also
External Links
- Eyes & Lichty, page 470 on NOP
- lbid, page 263.
- Labiak, page 155 on NOP
- Carr, page 265 on NOP
- Leventhal, page 3-78 on NOP
- snes9x implementation of NOP: https://github.com/snes9xgit/snes9x/blob/master/cpuops.cpp#L1606
- undisbeliever on NOP: https://undisbeliever.net/snesdev/65816-opcodes.html#nop-no-operation
- Pickens, John. http://www.6502.org/tutorials/6502opcodes.html#NOP