Instruction Set Description
264
SLAU367P – October 2012 – Revised April 2020
Copyright © 2012–2020, Texas Instruments Incorporated
CPUX
4.6.4.7
INCDA
* INCDA
Double-increment 20-bit destination register
Syntax
INCDA Rdst
Operation
Rdst + 2
→
Rdst
Emulation
ADDA #2,Rdst
Description
The destination register is incremented by 2. The original contents are lost.
Status Bits
N:
Set if result is negative, reset if positive
Z:
Set if Rdst contained 0FFFFEh, reset otherwise
Set if Rdst contained 0FFFEh, reset otherwise
Set if Rdst contained 0FEh, reset otherwise
C:
Set if Rdst contained 0FFFFEh or 0FFFFFh, reset otherwise
Set if Rdst contained 0FFFEh or 0FFFFh, reset otherwise
Set if Rdst contained 0FEh or 0FFh, reset otherwise
V:
Set if Rdst contained 07FFFEh or 07FFFFh, reset otherwise
Set if Rdst contained 07FFEh or 07FFFh, reset otherwise
Set if Rdst contained 07Eh or 07Fh, reset otherwise
Mode Bits
OSCOFF, CPUOFF, and GIE are not affected.
Example
The 20-bit value in R5 is incremented by 2.
INCDA
R5
; Increment R5 by 2