Purpose: | To perform arithmetic bit shifts on Integers | ||||||
Format: | opcode cnt.rb, src.rx, dst.wx | ||||||
Operation: | dst <- src shifted cnt bits; | ||||||
Condition Codes: |
N <- dst LSS 0; Z <- dst EQL 0; V <- Integer Overflow; C <- 0; |
||||||
Exceptions: | Integer Overflow | ||||||
Opcodes: |
|
||||||
Description: | The source operand is arithmetically shifted by the number of bits specified by the count operand. The destination is replaced by the result. The source and count operands are unaffected. A positive count shifts to the left, bringing in 0's into the least significant bit. A negative count shifts right, bringing in copies of the original sign bit into the most significant bit. A 0 count copies the source to the destination. ie ASHx #0, R0, R2 becomes MOVx R0, R2 |
||||||
Notes: |
|