Crossware

Table of Contents        Previous topic       Next topic       

MICROPROCESSOR INSTRUCTION REFERENCE->ROXL

ROXL  Rotate Left with Extend

Compatibility: 68000, 68010, 68020 and CPU32 families.


Destination rotated by <count> -> Destination

C <- OPERAND <- high order bit
X <-

Assembler Syntax:ROXL Dx,Dy
ROXL #<data>,Dy
ROXL <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 left.  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
    
<ea>
    
ROXLDx,Dy
ROXL#(data),Dy
ROXL(An)
ROXL(An)+
ROXL-(An)
ROXL(d16,An)
ROXL(d8,An,Xn)
ROXL(bd,An,Xn) 2
ROXL([bd,An,Xn],od) 1
ROXL([bd,An],Xn,od) 1
ROXL(xxx).W
ROXL(xxx).L
1   68020 only
2   68020 and CPU32 only