© 2000 Scenix Semiconductor, Inc. All rights reserved.
99
SX Users Manual Rev. 3.1
www.scenix.com
Chapter 3 Instruction Set
3.6.29 MOV W,>>fr
Rotate fr Right through Carry and Move to W
Operation:
W = >> fr
Bits affected:
C
Opcode:
0011 000f ffff
Description:
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.
Cycles:
1
Example 1:
mov
W,>>$0F
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
File Register
Carry Bit
W