Texas Instruments MSP430x1xx User Manual

Page 399

Advertising
background image

Instruction Set Overview

B-49

Instruction Set Description

RRA[.W]

Rotate right arithmetically

RRA.B

Rotate right arithmetically

Syntax

RRA

dst or

RRA.W

dst

RRA.B

dst

Operation

MSB –> MSB, MSB –> MSB–1, ... LSB+1 –> LSB,

LSB –> C

Description

The destination operand is shifted right one position as shown in Figure B–8.
The MSB is shifted into the MSB, the MSB is shifted into the MSB–1, and the
LSB+1 is shifted into the LSB.

Figure B–8.Destination Operand—Arithmetic Right Shift

15

0

15

0

C

Byte

Word

Status Bits

N: Set if result is negative, reset if positive
Z: Set if result is zero, reset otherwise
C: Loaded from the LSB
V: Reset

Mode Bits

OscOff, CPUOff, and GIE are not affected.

Advertising