Extended Instructions
4-137
16-Bit MSP430X CPU
* RLAX.A
Rotate left arithmetically address-word
* RLAX[.W]
Rotate left arithmetically word
* RLAX.B
Rotate left arithmetically byte
Syntax
RLAX.B
dst
RLAX
dst
or
RLAX.W
dst
RLAX.B
dst
Operation
C <− MSB <− MSB−1 .... LSB+1 <− LSB <− 0
Emulation
ADDX.A
dst,dst
ADDX
dst,dst
ADDX.B
dst,dst
Description
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.
Figure 4−45. Destination Operand—Arithmetic Shift Left
MSB
0
C
0
Status Bits
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
Mode Bits
OSCOFF, CPUOFF, and GIE are not affected.
Example
The 20-bit value in R7 is multiplied by 2.
RLAX.A
R7
; Shift left R7 (20-bit)
Содержание MSP430x4xx Family
Страница 1: ...MSP430x4xx Family 2007 Mixed Signal Products User s Guide SLAU056G ...
Страница 2: ......
Страница 6: ...vi ...
Страница 114: ...3 76 RISC 16 Bit CPU ...
Страница 304: ...5 20 FLL Clock Module ...
Страница 340: ...7 8 Supply Voltage Supervisor ...
Страница 348: ...8 8 16 Bit Hardware Multiplier ...
Страница 372: ...9 24 32 Bit Hardware Multiplier ...
Страница 400: ...10 28 DMA Controller ...
Страница 428: ...13 10 Basic Timer1 ...
Страница 466: ...15 24 Timer_A ...
Страница 522: ...17 30 USART Peripheral Interface UART Mode ...
Страница 544: ...18 22 USART Peripheral Interface SPI Mode ...
Страница 672: ...23 12 Comparator_A ...
Страница 692: ...24 20 LCD Controller ...
Страница 746: ...26 28 ADC12 ...