Instruction Set Description
213
SLAU367P – October 2012 – Revised April 2020
Copyright © 2012–2020, Texas Instruments Incorporated
CPUX
4.6.3.1
ADCX
* ADCX.A
Add carry to destination address-word
* ADCX.[W]
Add carry to destination word
* ADCX.B
Add carry to destination byte
Syntax
ADCX.A dst
ADCX dst
or
ADCX.W dst
ADCX.B dst
Operation
dst + C
→
dst
Emulation
ADDCX.A #0,dst
ADDCX #0,dst
ADDCX.B #0,dst
Description
The carry bit (C) is added to the destination operand. The previous contents of the
destination are lost.
Status Bits
N:
Set if result is negative (MSB = 1), reset if positive (MSB = 0)
Z:
Set if result is zero, reset otherwise
C:
Set if there is a carry from the MSB of the result, reset otherwise
V:
Set if the result of 2 positive operands is negative, or if the result of 2 negative
numbers is positive, reset otherwise
Mode Bits
OSCOFF, CPUOFF, and GIE are not affected.
Example
The 40-bit counter, pointed to by R12 and R13, is incremented.
INCX.A
@R12
; Increment lower 20 bits
ADCX.A
@R13
; Add carry to upper 20 bits