Texas Instruments MSP430x1xx User Manual

Page 392

Advertising
background image

Instruction Set Overview

B-42

* NOP

No operation

Syntax

NOP

Operation

None

Emulation

MOV

#0,#0

Description

No operation is performed. The instruction may be used for the elimination of
instructions during the software check or for defined waiting times.

Status Bits

Status bits are not affected.

The NOP instruction is mainly used for two purposes:

-

To hold one, two or three memory words

-

To adjust software timing

Note:

Emulating No-Operation Instruction

Other instructions can emulate no-operation instruction using different
numbers of cycles and code words.

Examples:

MOV

0(R4),0(R4)

; 6 cycles, 3 words

MOV

@R4,0(R4)

; 5 cycles, 2 words

BIC

#0,EDE(R4)

; 4 cycles, 2 words

JMP

$+2

; 2 cycles, 1 word

BIC

#0,R5

; 1 cycle, 1 word

Advertising