NOP System
Do nothing for one instruction cycle.
| Syntax | NOP |
|---|---|
| Operands | none |
| Operation | no operation |
| Status bits | None |
| Words / cycles | 1 word, 1 cycle |
| Encoding | 00 0000 0xx0 0000 |
How it works
NOP takes one instruction cycle and changes nothing. It is used to pad timing loops, give an I/O pin time to settle, or reserve space.
Example
; NOP example from picsimulator.com/instructions/nop.html
list p=16f84a
include <p16f84a.inc>
org 0
movlw 0x01
nop ; 1 cycle, nothing changes
nop
W is still 0x01 afterwards; the cycle counter in the status bar goes up by one per NOP.
Open this example in the simulator