Crossware

Table of Contents        Previous topic       Next topic       

MICROPROCESSOR INSTRUCTION REFERENCE->ROR

ROR   Rotate Right (without Extend)

Compatibility: 68000, 68010, 68020 and CPU32 families.


Destination rotated by <count> -> Destination

high order bit -> OPERAND -> C

Assembler Syntax:ROR Dx,Dy
ROR #<data>,Dy
ROR <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 not 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 according to last bit shifted out of operand, cleared for a shift
    count of zero
X    Not affected

    
Allowable Addressing Modes
    
<ea>
    
RORDx,Dy
ROR#(data),Dy
ROR(An)
ROR(An)+
ROR-(An)
ROR(d16,An)
ROR(d8,An,Xn)
ROR(bd,An,Xn) 2
ROR([bd,An,Xn],od) 1
ROR([bd,An],Xn,od) 1
ROR(xxx).W
ROR(xxx).L
1   68020 only
2   68020 and CPU32 only