Motorola CPU32 Reference Manual page 191

M68300 series central processor unit
Hide thumbs Also See for CPU32:
Table of Contents

Advertisement

III
ROXL,
Operation:
Assembler
Syntax:
Attributes:
ROXR
Rotate with Extend
ROXL,
Destination Rotated with X by (count) => Destination
ROXd Ox, Dy
ROXd #(data), Dy
ROXd (ea)
where d is direction, Lor R
Size
=
(Byte, Word, Long)
ROXR
Description:
Rotates the bits of the operand in the direction specified (L or R). The extend bit is
included in the rotation. For register rotation, the rotation count can be specified 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 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 ROXL instruction rotates the bits of the operand to the left; the rotate count determines 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.
~~<~-'---I----O-PE-R-A-ND--~~
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.
MOTOROLA
4-138
~----O-P-E-RA-N-D---.~-*l--~~~~
INSTRUCTION SET
CPU32 REFERENCE MANUAL

Advertisement

Table of Contents
loading

Table of Contents