Texas Instruments MSP430x4xx Family User Manual page 197

Hide thumbs Also See for MSP430x4xx Family:
Table of Contents

Advertisement

* INCD[.W]
* INCD.B
Syntax
Operation
Emulation
Emulation
Example
Status Bits
Mode Bits
Example
Example
Double-increment destination
Double-increment destination
INCD
dst
or INCD.W
INCD.B
dst
dst + 2 −> dst
ADD
#2,dst
ADD.B
#2,dst
The destination operand is incremented by two. The original contents are lost.
N: Set if result is negative, reset if positive
Z: Set if dst contained 0FFFEh, reset otherwise
Set if dst contained 0FEh, reset otherwise
C: Set if dst contained 0FFFEh or 0FFFFh, reset otherwise
Set if dst contained 0FEh or 0FFh, reset otherwise
V: Set if dst contained 07FFEh or 07FFFh, reset otherwise
Set if dst contained 07Eh or 07Fh, reset otherwise
OSCOFF, CPUOFF, and GIE are not affected.
The item on the top of the stack (TOS) is removed without using a register.
.......
PUSH
R5
INCD
SP
RET
The byte on the top of the stack is incremented by two.
INCD.B
0(SP)
dst
; R5 is the result of a calculation, which is stored
; in the system stack
; Remove TOS by double-increment from stack
; Do not use INCD.B, SP is a word-aligned
; register
; Byte on TOS is increment by two
16-Bit MSP430X CPU
MSP430 Instructions
4-83

Advertisement

Table of Contents
loading

Table of Contents