Texas Instruments MSP430x4xx Family User Manual page 251

Hide thumbs Also See for MSP430x4xx Family:
Table of Contents

Advertisement

* RLAX.A
* RLAX[.W]
* RLAX.B
Syntax
Operation
Emulation
Description
Figure 4−45. Destination Operand—Arithmetic Shift Left
Status Bits
Mode Bits
Example
Rotate left arithmetically address-word
Rotate left arithmetically word
Rotate left arithmetically byte
RLAX.B
dst
RLAX
dst
or
RLAX.B
dst
C <− MSB <− MSB−1 .... LSB+1 <− LSB <− 0
ADDX.A
dst,dst
ADDX
dst,dst
ADDX.B
dst,dst
The destination operand is shifted left one position as shown in Figure 4−45.
The MSB is shifted into the carry bit (C) and the LSB is filled with 0. The RLAX
instruction acts as a signed multiplication by 2.
MSB
C
N: Set if result is negative, reset if positive
Z: Set if result is zero, reset otherwise
C: Loaded from the MSB
V: Set if an arithmetic overflow occurs:
the initial value is 040000h ≤ dst < 0C0000h; reset otherwise
Set if an arithmetic overflow occurs:
the initial value is 04000h ≤ dst < 0C000h; reset otherwise
Set if an arithmetic overflow occurs:
the initial value is 040h ≤ dst < 0C0h; reset otherwise
OSCOFF, CPUOFF, and GIE are not affected.
The 20-bit value in R7 is multiplied by 2.
RLAX.A
R7
RLAX.W
dst
; Shift left R7 (20-bit)
16-Bit MSP430X CPU
Extended Instructions
0
0
4-137

Advertisement

Table of Contents
loading

Table of Contents