
Instruction Set Description
4.6.4.6
DECDA
* DECDA
Double-decrement 20-bit destination register
DECDA Rdst
Syntax
Operation
Rdst – 2
→
Rdst
SUBA #2,Rdst
Emulation
Description
The destination register is decremented by two. The original contents are lost.
Status Bits
N:
Set if result is negative, reset if positive
Z:
Set if Rdst contained 2, reset otherwise
C:
Reset if Rdst contained 0 or 1, set otherwise
V:
Set if an arithmetic overflow occurs, otherwise reset
Mode Bits
OSCOFF, CPUOFF, and GIE are not affected.
Example
The 20-bit value in R5 is decremented by 2.
DECDA
R5
; Decrement R5 by two
236
CPUX
SLAU272C – May 2011 – Revised November 2013
Copyright © 2011–2013, Texas Instruments Incorporated