ROXR

ROXR

Operation: Destination Rotated with X by <count> -->;
Destination

Assembler Syntax:
ROXR Dx, Dy
ROXR #<data>, Dy
ROXR* <ea>

Attributes: Size = (Byte, Word, Long)
* Only word size operation is allowed.

Description: Rotates the bits of the operand to the right. The
extend bit is included in the rotation. The rotate count
for the rotation of a register is specified in either of two
ways:
1. Immediate -- The rotate count (1-8) is specified
in the instruction.
2. Register -- The rotate count is the value in the
data register specified in the instruction,
modulo 64.

The size of the operation for register destinations is
specified as byte, word, or long. The contents of memory,
<ea>, can be rotated one bit only, and operand size is
restricted to a word.

The ROXR instruction rotates the bits of the operand to the
right; the rotate count determines the number of bit positions
rotated. Bits rotated out of the low order bit go to the carry
bit and the extend bit; the previous value of the extend bit
rotates into the high-order bit.

Condition Codes:

X Set according to the last bit rotated out of the operand.
Cleared when the rotate count is zero.
N Set if the most significant bit of the result is set.
Cleared otherwise.
Z Set if the result is zero. Cleared otherwise.
V Always cleared.
C Set according to the last bit rotated out of the operand.
Cleared when the rotate count is zero.