Datasheet

www.ti.com
Instruction Set Description
4.6.3.16 INVX
* INVX.A Invert destination
* INVX.[W] Invert destination
* INVX.B Invert destination
INVX.A dst
Syntax
INVX dst or INVX.W dst
INVX.B dst
Operation .NOT.dst dst
XORX.A #0FFFFFh,dst
Emulation
XORX #0FFFFh,dst
XORX.B #0FFh,dst
Description The destination operand is inverted. The original contents are lost.
Status Bits N: Set if result is negative, reset if positive
Z: Set if dst contained 0FFFFFh, reset otherwise
Set if dst contained 0FFFFh, reset otherwise
Set if dst contained 0FFh, reset otherwise
C: Set if result is not zero, reset otherwise ( = .NOT. Zero)
V: Set if initial destination operand was negative, otherwise reset
Mode Bits OSCOFF, CPUOFF, and GIE are not affected.
Example 20-bit content of R5 is negated (2s complement).
INVX.A R5 ; Invert R5
INCX.A R5 ; R5 is now negated
Example Content of memory byte LEO is negated. PC is pointing to upper memory.
INVX.B LEO ; Invert LEO
INCX.B LEO ; MEM(LEO) is negated
231
SLAU144JDecember 2004Revised July 2013 CPUX
Submit Documentation Feedback
Copyright © 2004–2013, Texas Instruments Incorporated