Integer Instructions
4-164 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLA
ROXL, ROXR Rotate with Extend ROXL, ROXR
(M68000 Family)
Condition Codes:
X — Set to the value of the last bit rotated out of the operand; unaffected 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; when the rotate count is
zero, set to the value of the extend bit.
Instruction Format:
REGISTER ROTATE
Instruction Fields:
Count/Register field:
If i/r = 0, this field contains the rotate count. The values 1 – 7 represent counts of 1
– 7, and zero specifies a count of eight.
If i/r = 1, this field specifies a data register that contains the rotate count (modulo 64).
dr field—Specifies the direction of the rotate.
0 — Rotate right
1 — Rotate left
XNZVC
∗∗∗0∗
1514131211109876543210
1110
COUNT/
REGISTER
dr SIZE i/r 1 0 REGISTER
Commentaires sur ces manuels