Table of Contents
Previous topic Next topic
MICROPROCESSOR INSTRUCTION REFERENCE->ROXR
ROXR Rotate Right with Extend
Compatibility: 68000, 68010, 68020 and CPU32 families.
Destination rotated by <count> -> Destination
C <- OPERAND <- high order bit
X <-
Assembler Syntax: | ROXR Dx,Dy |
| ROXR #<data>,Dy |
| ROXR <ea> |
Dx contains shift count; Immediate shift data may be 1 - 8
Memory can be shifted only 1 bit
Size: Byte, Word, Long except if Memory Shift when only Word Allowed
Rotates the bits of the operand right. The extend bit is included in the rotation.
Condition Codes:
N Set if most significant bit of result is set, else cleared
Z Set if result zero, else cleared
V Always cleared
C Set to last bit shifted out of operand, cleared for a shift count of zero
X Set to last bit shifted out of operand, unaffected by a shift count of zero
| Allowable Addressing Modes |
|
| ROXR | Dx,Dy |
| ROXR | #(data),Dy |
| ROXR | (An) |
| ROXR | (An)+ |
| ROXR | -(An) |
| ROXR | (d16,An) |
| ROXR | (d8,An,Xn) |
| ROXR | (bd,An,Xn) 2 |
| ROXR | ([bd,An,Xn],od) 1 |
| ROXR | ([bd,An],Xn,od) 1 |
| ROXR | (xxx).W |
| ROXR | (xxx).L |
1 68020 only
2 68020 and CPU32 only