SX Users Manual Rev. 3.1
© 2000 Scenix Semiconductor, Inc. All rights reserved.
Chapter 3 Instruction Set
3.6.28 MOV W,<<fr
Rotate fr Left through Carry and Move to W
W = << fr
0011 010f ffff
This instruction rotates the bits of the specified file register left using the C bit and
moves the 8-bit result into W. The file register is left unchanged.
The bits obtained from the register are shifted left by one bit position. C is shifted
into the least significant bit position and the most significant bit is shifted out into
C, as shown in the diagram below.
This example rotates the bits of file register 18h left through the C bit and moves
the result into W. If the file register contains 14h and the C bit is set to 1, after this
instruction is executed, W will contain 29h and the C bit will be cleared to 0. The
file register will still contain 14h after execution of the instruction.
Figure 3-2 Rotate fr Left Through Carry into W