Datasheet

MSB
0
C
LSB
Instruction Set Description
www.ti.com
4.6.3.24 RLCX
* RLCX.A Rotate left through carry address-word
* RLCX.[W] Rotate left through carry word
* RLCX.B Rotate left through carry byte
RLCX.A dst
Syntax
RLCX dst or RLCX.W dst
RLCX.B dst
Operation C MSB MSB-1 .... LSB+1 LSB C
ADDCX.A dst,dst
Emulation
ADDCX dst,dst
ADDCX.B dst,dst
Description The destination operand is shifted left one position as shown in Figure 4-45. The carry
bit (C) is shifted into the LSB and the MSB is shifted into the carry bit (C).
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 R5 is shifted left one position.
RLCX.A R5 ; (R5 x 2) + C -> R5
Example The RAM byte LEO is shifted left one position. PC is pointing to upper memory.
RLCX.B LEO ; RAM(LEO) x 2 + C -> RAM(LEO)
Figure 4-45. Destination Operand-Carry Left Shift
240
CPUX SLAU144JDecember 2004Revised July 2013
Submit Documentation Feedback
Copyright © 2004–2013, Texas Instruments Incorporated