Table of Contents
Previous topic Next topic
MICROPROCESSOR INSTRUCTION REFERENCE->ASR
ASR Arithmetic Shift Right
Destination shifted by <count> -> Destination
sign bit -> OPERAND -> C
-> X
Assembler Syntax: | ASR.L Dx,Dy |
| ASR.L #<data>,Dy |
Dx contains shift count
Immediate shift data may be 1 - 8
Size: Long
Arithmetically shifts the bits of the operand right. The carry bit receives the last bit shifted out of the operand.
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 Set according to last bit shifted out of operand, unaffected by a shift count of zero