beautypg.com

Texas Instruments MSP430x1xx User Manual

Page 353

background image

Instruction Set Overview

B-3

Instruction Set Description

Status Bits

V N Z C

MOV[.W];MOV.B

src,dst src –> dst

– –

– –

* NOP

No operation

– –

– –

* POP[.W];POP.B

dst

Item from stack, SP+2

SP

– –

– –

PUSH[.W];PUSH.B

src

SP – 2

SP, src

@SP

– –

– –

RETI

Return from interrupt

*

*

*

*

TOS

SR, SP + 2

SP

TOS

PC, SP + 2

SZP

* RET

Return from subroutine

– –

– –

TOS

PC, SP + 2

SP

* RLA[.W];RLA.B

dst

Rotate left arithmetically

*

*

*

*

* RLC[.W];RLC.B

dst

Rotate left through carry

*

*

*

*

RRA[.W];RRA.B

dst

MSB

MSB

....LSB

C

0 *

*

*

RRC[.W];RRC.B

dst

C

MSB

.........LSB

C

*

*

*

*

* SBC[.W];SBC.B

dst

Subtract carry from destination *

*

*

*

* SETC

Set carry bit

– –

– 1

* SETN

Set negative bit

– 1

– –

* SETZ

Set zero bit

– –

1 –

SUB[.W];SUB.B

src,dst dst + .not.src + 1

dst

*

*

*

*

SUBC[.W];SUBC.B

src,dst dst + .not.src + C

dst

*

*

*

*

SWPB

dst

swap bytes

– –

– –

SXT

dst

Bit7

Bit8 ........ Bit15

0 *

*

*

* TST[.W];TST.B

dst

Test destination

0 *

* 1

XOR[.W];XOR.B

src,dst src .xor. dst

dst

*

*

*

*

Note:

Asterisked Instructions

Asterisked (*) instructions are emulated. They are replaced with core
instructions by the assembler.