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