
MSP430 and MSP430X Instructions
4.5.2.6
MSP430X Address Instructions
MSP430X address instructions are instructions that support 20-bit operands but have restricted
addressing modes. The addressing modes are restricted to the Register mode and the Immediate mode,
except for the MOVA instruction as listed in
. Restricting the addressing modes removes the
need for the additional extension-word op-code improving code density and execution time. Address
instructions should be used any time an MSP430X instruction is needed with the corresponding restricted
addressing mode.
Table 4-16. Address Instructions, Operate on 20-Bit Register Data
Status Bits
(1)
Mnemonic
Operands
Operation
V
N
Z
C
Add source to destination register
*
*
*
*
ADDA
Rsrc,Rdst
#imm20,Rdst
Move source to destination
–
–
–
–
MOVA
Rsrc,Rdst
#imm20,Rdst
z16(Rsrc),Rdst
EDE,Rdst
&abs20,Rdst
@Rsrc,Rdst
@Rsrc+,Rdst
Rsrc,z16(Rdst)
Rsrc,&abs20
Compare source to destination register
*
*
*
*
CMPA
Rsrc,Rdst
#imm20,Rdst
Subtract source from destination register
*
*
*
*
SUBA
Rsrc,Rdst
#imm20,Rdst
(1)
* = Status bit is affected.
– = Status bit is not affected.
0 = Status bit is cleared.
1 = Status bit is set.
126
CPUX
SLAU272C – May 2011 – Revised November 2013
Copyright © 2011–2013, Texas Instruments Incorporated