
MSP430 and MSP430X Instructions
4.5.2.5
Extended Emulated Instructions
The extended instructions together with the constant generator form the extended emulated instructions.
lists the emulated instructions.
Table 4-15. Extended Emulated Instructions
Instruction
Explanation
Emulation
Add carry to dst
ADCX(.B,.A) dst
ADDCX(.B,.A) #0,dst
Branch indirect dst
BRA dst
MOVA dst,PC
Return from subroutine
RETA
MOVA @SP+,PC
Clear Rdst
CLRA Rdst
MOV #0,Rdst
Clear dst
CLRX(.B,.A) dst
MOVX(.B,.A) #0,dst
Add carry to dst decimally
DADCX(.B,.A) dst
DADDX(.B,.A) #0,dst
Decrement dst by 1
DECX(.B,.A) dst
SUBX(.B,.A) #1,dst
Decrement Rdst by 2
DECDA Rdst
SUBA #2,Rdst
Decrement dst by 2
DECDX(.B,.A) dst
SUBX(.B,.A) #2,dst
Increment dst by 1
INCX(.B,.A) dst
ADDX(.B,.A) #1,dst
Increment Rdst by 2
INCDA Rdst
ADDA #2,Rdst
Increment dst by 2
INCDX(.B,.A) dst
ADDX(.B,.A) #2,dst
Invert dst
INVX(.B,.A) dst
XORX(.B,.A) #-1,dst
Shift left dst arithmetically
RLAX(.B,.A) dst
ADDX(.B,.A) dst,dst
Shift left dst logically through carry
RLCX(.B,.A) dst
ADDCX(.B,.A) dst,dst
Subtract carry from dst
SBCX(.B,.A) dst
SUBCX(.B,.A) #0,dst
Test Rdst (compare with 0)
TSTA Rdst
CMPA #0,Rdst
Test dst (compare with 0)
TSTX(.B,.A) dst
CMPX(.B,.A) #0,dst
Pop to dst
POPX dst
MOVX(.B, .A) @SP+,dst
125
SLAU272C – May 2011 – Revised November 2013
CPUX
Copyright © 2011–2013, Texas Instruments Incorporated