Texas Instruments MSP430x4xx Family User Manual page 196

Hide thumbs Also See for MSP430x4xx Family:
Table of Contents

Advertisement

MSP430 Instructions
]
* INC[.W
* INC.B
Syntax
Operation
Emulation
Description
Status Bits
Mode Bits
Example
4-82
16-Bit MSP430X CPU
Increment destination
Increment destination
INC
dst
or INC.W dst
INC.B
dst
dst + 1 −> dst
ADD
#1,dst
The destination operand is incremented by one. The original contents are lost.
N: Set if result is negative, reset if positive
Z: Set if dst contained 0FFFFh, reset otherwise
Set if dst contained 0FFh, reset otherwise
C: Set if dst contained 0FFFFh, reset otherwise
Set if dst contained 0FFh, reset otherwise
V: Set if dst contained 07FFFh, reset otherwise
Set if dst contained 07Fh, reset otherwise
OSCOFF, CPUOFF, and GIE are not affected.
The status byte, STATUS, of a process is incremented. When it is equal to 11,
a branch to OVFL is taken.
INC.B
STATUS
CMP.B
#11,STATUS
JEQ
OVFL

Advertisement

Table of Contents
loading

Table of Contents