Crossware

Table of Contents        Previous topic       Next topic       

MICROPROCESSOR INSTRUCTION REFERENCE->LSR

LSR    Logical Shift Right

Destination shifted right by <count> -> Destination


0 -> OPERAND -> C
            -> X

    
Assembler Syntax:LSR.L Dx,Dy
LSR.L #<data>,Dy

Dx contains shift count
Immediate shift data may be 1 - 8

Size: Long


Condition Codes:

N    Set if result negative, 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    Set according to last bit shifted out of operand, unaffected by a shift count of zero