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
Jump to: navigation, search
(added Carr page)
(needing REP/SEP)
 
(32 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''NOP''' (No OPeration) is an instruction that does nothing.
{| class="wikitable" style="float:right;clear:right;width:40%"
 
{| class="wikitable" style="float:right;clear:right;width:30%"
!colspan="8"|Basic Info
!colspan="8"|Basic Info
|+
|+
Line 9: Line 7:
|'''Speed'''
|'''Speed'''
|+
|+
|implied
|[[Implied]] (type 3)
|EA
|EA
|1 byte
|1 byte
Line 16: Line 14:


{| class="wikitable" style="float:right;clear:right;width:30%"
{| class="wikitable" style="float:right;clear:right;width:30%"
!colspan="8"|Flags Clobbered
!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 36: 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 ===
=== External Links ===
* [[Eyes & Lichty]] page on NOP: https://archive.org/details/0893037893ProgrammingThe65816/page/n496
* [[Eyes & Lichty]], [https://archive.org/details/0893037893ProgrammingThe65816/page/470 page 470] on NOP
* [[Labiak]] page on NOP: https://archive.org/details/Programming_the_65816/page/n165
* lbid, [https://archive.org/details/0893037893ProgrammingThe65816/page/n289 page 263].
* [[Carr]] page on NOP: https://archive.org/details/6502UsersManual/page/n278
* [[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: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