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
(see also WDM) |
(needing REP/SEP) |
||
(38 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
''' | {| class="wikitable" style="float:right;clear:right;width:40%" | ||
!colspan="8"|Basic Info | |||
|+ | |||
|'''Addressing Mode''' | |||
|'''Opcode''' | |||
|'''Length''' | |||
|'''Speed''' | |||
|+ | |||
|[[Implied]] (type 3) | |||
|EA | |||
|1 byte | |||
|2 cycles | |||
|} | |||
{| class="wikitable" style="float:right;clear:right;width:30%" | {| class="wikitable" style="float:right;clear:right;width:30%" | ||
!colspan="8"|Flags | !colspan="8"|Flags Affected | ||
|+ | |+ | ||
|N | |[[Negative Flag|N]] | ||
|V | |[[Overflow Flag|V]] | ||
|M | |[[M Flag|M]] | ||
|X | |[[X Flag|X]] | ||
|D | |[[Decimal Flag|D]] | ||
|I | |[[I Flag|I]] | ||
|Z | |[[Zero Flag|Z]] | ||
|C | |[[Carry Flag|C]] | ||
|+ | |+ | ||
|. | |. | ||
Line 22: | Line 34: | ||
|. | |. | ||
|} | |} | ||
'''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 (Super FX)]] | |||
* [[STP]] | |||
* [[SLEEP]] | |||
=== External Links === | |||
* [[Eyes & Lichty]], [https://archive.org/details/0893037893ProgrammingThe65816/page/470 page 470] on NOP | |||
* lbid, [https://archive.org/details/0893037893ProgrammingThe65816/page/n289 page 263]. | |||
* [[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 | |||
* [[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 | |||
* 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: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