Texas Instruments MSP430x1xx User Manual
Page 85

Instruction Set Overview
5-21
16-Bit CPU
5.3.4
Short Form of Emulated Instructions
The basic instruction set, together with the register implementations of the
program counter, stack pointer, status register, and constant generator, form
the emulated instruction set; these make up the popular instruction set. The
status bits are set according to the result of the execution of the basic
instruction that replaces the emulated instruction.
Table 5–18 describes these instructions.
Table 5–18.Emulated Instructions
Mnemonic
Description
Status Bits
Emulation
V
N
Z
C
ArIthmetic Instructions
ADC[.W]
dst
Add carry to destination
*
*
*
*
ADDC
#0,dst
ADC.B
dst
Add carry to destination
*
*
*
*
ADDC.B
#0,dst
DADC[.W]
dst
Add carry decimal to destination
*
*
*
*
DADD
#0,dst
DADC.B
dst
Add carry decimal to destination
*
*
*
*
DADD.B
#0,dst
DEC[.W]
dst
Decrement destination
*
*
*
*
SUB
#1,dst
DEC.B
dst
Decrement destination
*
*
*
*
SUB.B
#1,dst
DECD[.W]
dst
Double-decrement destination
*
*
*
*
SUB
#2,dst
DECD.B
dst
Double-decrement destination
*
*
*
*
SUB.B
#2,dst
INC[.W]
dst
Increment destination
*
*
*
*
ADD
#1,dst
INC.B
dst
Increment destination
*
*
*
*
ADD.B
#1,dst
INCD[.W]
dst
Increment destination
*
*
*
*
ADD
#2,dst
INCD.B
dst
Increment destination
*
*
*
*
ADD.B
#2,dst
SBC[.W]
dst
Subtract carry from destination
*
*
*
*
SUBC
#0,dst
SBC.B
dst
Subtract carry from destination
*
*
*
*
SUBC.B
#0,dst
Logical Instructions
INV[.W]
dst
Invert destination
*
*
*
*
XOR
#0FFFFh,dst
INV.B
dst
Invert destination
*
*
*
*
XOR.B
#–1,dst
RLA[.W]
dst
Rotate left arithmetically
*
*
*
*
ADD
dst,dst
RLA.B
dst
Rotate left arithmetically
*
*
*
*
ADD.B
dst,dst
RLC[.W]
dst
Rotate left through carry
*
*
*
*
ADDC
dst,dst
RLC.B
dst
Rotate left through carry
*
*
*
*
ADDC.B
dst,dst
Data Instructions (common use)
CLR[.W]
Clear destination
–
–
–
–
MOV
#0,dst
CLR.B
Clear destination
–
–
–
–
MOV.B
#0,dst
CLRC
Clear carry bit
–
–
–
0
BIC
#1,SR
CLRN
Clear negative bit
–
0
–
–
BIC
#4,SR
CLRZ
Clear zero bit
–
–
0
–
BIC
#2,SR
POP
dst
Item from stack
–
–
–
–
MOV
@SP+,dst
SETC
Set carry bit
–
–
–
1
BIS
#1,SR
SETN
Set negative bit
–
1
–
–
BIS
#4,SR
SETZ
Set zero bit
–
–
1
–
BIS
#2,SR