Extended Instructions
4-129
16-Bit MSP430X CPU
* INVX.A
Invert destination
* INVX[.W]
Invert destination
* INVX.B
Invert destination
Syntax
INVX.A
dst
INVX
dst
or INVX.W
dst
INVX.B
dst
Operation
.NOT.dst −> dst
Emulation
XORX.A
#0FFFFFh,dst
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 (twos 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
Содержание MSP430x4xx Family
Страница 1: ...MSP430x4xx Family 2007 Mixed Signal Products User s Guide SLAU056G ...
Страница 2: ......
Страница 6: ...vi ...
Страница 114: ...3 76 RISC 16 Bit CPU ...
Страница 304: ...5 20 FLL Clock Module ...
Страница 340: ...7 8 Supply Voltage Supervisor ...
Страница 348: ...8 8 16 Bit Hardware Multiplier ...
Страница 372: ...9 24 32 Bit Hardware Multiplier ...
Страница 400: ...10 28 DMA Controller ...
Страница 428: ...13 10 Basic Timer1 ...
Страница 466: ...15 24 Timer_A ...
Страница 522: ...17 30 USART Peripheral Interface UART Mode ...
Страница 544: ...18 22 USART Peripheral Interface SPI Mode ...
Страница 672: ...23 12 Comparator_A ...
Страница 692: ...24 20 LCD Controller ...
Страница 746: ...26 28 ADC12 ...