Instruction Set Description
226
SLAU367P – October 2012 – Revised April 2020
Copyright © 2012–2020, Texas Instruments Incorporated
CPUX
4.6.3.14 INCX
* INCX.A
Increment destination address-word
* INCX.[W]
Increment destination word
* INCX.B
Increment destination byte
Syntax
INCX.A dst
INCX dst
or
INCX.W dst
INCX.B dst
Operation
dst + 1
→
dst
Emulation
ADDX.A #1,dst
ADDX #1,dst
ADDX.B #1,dst
Description
The destination operand is incremented by 1. The original contents are lost.
Status Bits
N:
Set if result is negative, reset if positive
Z:
.A: Set if dst contained 0FFFFFh, reset otherwise
.W: Set if dst contained 0FFFFh, reset otherwise
.B: Set if dst contained 0FFh, reset otherwise
C:
.A: Set if dst contained 0FFFFFh, reset otherwise
.W: Set if dst contained 0FFFFh, reset otherwise
.B: Set if dst contained 0FFh, reset otherwise
V:
.A: Set if dst contained 07FFFh, reset otherwise
.W: Set if dst contained 07FFFh, reset otherwise
.B: Set if dst contained 07Fh, reset otherwise
Mode Bits
OSCOFF, CPUOFF, and GIE are not affected.
Example
RAM address-wordTONI is incremented by 1.
INCX.A
TONI
; Increment TONI (20-bits)