Motorola CPU32 Reference Manual page 181

Hide thumbs Also See for CPU32:
Table of Contents

Advertisement

ROXL, ROXR
Operation:
Assembler
Syntax:
Attributes:
Description: Rotates the bits of the operand in the direction specified (L or R). The ex-
tend bit is included in the rotation. For register rotation, the rotation count can be spec-
ified in either of two ways:
1. Immediate — The count (1–8) is specified by the instruction.
2. Register — The count is the value in the data register specified by the instruc-
tion, 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 restrict-
ed to a word.
The ROXL instruction rotates the bits of the operand to the left; the rotate count deter-
mines the number of bit positions rotated. Bits rotated out of the high-order bit go to
the carry bit and the extend bit; the previous value of the extend bit rotates into the low-
order bit.
The ROXR instruction rotates the bits of the operand to the right; the rotate count de-
termines 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.
CPU32
REFERENCE MANUAL
Rotate with Extend
Destination Rotated with X by 〈count〉 → Destination
ROXd Dx, Dy
ROXd #〈data〉, Dy
ROXd 〈ea〉
where d is direction, L or R
Size = (Byte, Word, Long)
ROXL
C
ROXR
X
INSTRUCTION SET
ROXL, ROXR
X
C
MOTOROLA
4-133

Advertisement

Table of Contents
loading

Table of Contents