NOP System

Do nothing for one instruction cycle.

SyntaxNOP
Operandsnone
Operationno operation
Status bitsNone
Words / cycles1 word, 1 cycle
Encoding00 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

Related instructions