Instruction Set Description
227
SLAU367P – October 2012 – Revised April 2020
Copyright © 2012–2020, Texas Instruments Incorporated
CPUX
4.6.3.15 INCDX
* INCDX.A
Double-increment destination address-word
* INCDX.[W]
Double-increment destination word
* INCDX.B
Double-increment destination byte
Syntax
INCDX.A dst
INCDX dst
or
INCDX.W dst
INCDX.B dst
Operation
dst + 2
→
dst
Emulation
ADDX.A #2,dst
ADDX #2,dst
ADDX.B #2,dst
Description
The destination operand is incremented by 2. The original contents are lost.
Status Bits
N:
Set if result is negative, reset if positive
Z:
.A: Set if dst contained 0FFFFEh, reset otherwise
.W: Set if dst contained 0FFFEh, reset otherwise
.B: Set if dst contained 0FEh, reset otherwise
C:
.A: Set if dst contained 0FFFFEh or 0FFFFFh, reset otherwise
.W: Set if dst contained 0FFFEh or 0FFFFh, reset otherwise
.B: Set if dst contained 0FEh or 0FFh, reset otherwise
V:
.A: Set if dst contained 07FFFEh or 07FFFFh, reset otherwise
.W: Set if dst contained 07FFEh or 07FFFh, reset otherwise
.B: Set if dst contained 07Eh or 07Fh, reset otherwise
Mode Bits
OSCOFF, CPUOFF, and GIE are not affected.
Example
RAM byte LEO is incremented by 2; PC points to upper memory.
INCDX.B
LEO
; Increment LEO by 2