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: hid archive URL for Carr) |
(needing REP/SEP) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 35: | Line 35: | ||
|} | |} | ||
'''NOP''' (No OPeration) is an instruction that does nothing (other than increment the [[program counter]]). | '''NOP''' (No OPeration) is an instruction that does nothing (other than increment the [[program counter]] by one). | ||
No flags are affected. | No flags are affected. | ||
Line 43: | Line 43: | ||
NOP | NOP | ||
</pre> | </pre> | ||
Early 65c816 chips commonly needed NOP after a [[REP]] or [[SEP]]. | |||
=== See Also === | === See Also === | ||
Line 53: | Line 55: | ||
=== External Links === | === External Links === | ||
* [[Eyes & Lichty]] | * [[Eyes & Lichty]], [https://archive.org/details/0893037893ProgrammingThe65816/page/470 page 470] on NOP | ||
* lbid | * lbid, [https://archive.org/details/0893037893ProgrammingThe65816/page/n289 page 263]. | ||
* [[Labiak]] | * [[Labiak]], [https://archive.org/details/Programming_the_65816/page/n165 page 155] on NOP | ||
* [[Carr]], [https://archive.org/details/6502UsersManual/page/n278 page 265] on NOP | * [[Carr]], [https://archive.org/details/6502UsersManual/page/n278 page 265] on NOP | ||
* [[Leventhal]] | * [[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 | * 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]] |
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