division - CSE 380 Division Shifting & Rotating The...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
CSE 380 Division ± The second operand of a move, add, or subtract instruction can be a shifted or rotated value ± Logical Left Shift rm, LSL, #5-Bit-Immediate Left shift contents of rm Shift count represented as a 5 bit immediate rm , LSL, rs Left shift contents of rm Shift count stored in rs ± Logical Right Shift rm, LSR, #5-Bit-Immediate Right shift contents of rm Shift count represented as a 5 bit immediate rm , LSR, rs Right shift contents of rm Shift count stored in rs ± Arithmetic Right Shift rm, ASR, #5-Bit-Immediate Right shift contents of rm Retain sign bit to preserve sign Shift count represented as a 5 bit immediate rm , ASR, rs Right shift contents of rm Retain sign bit to preserve sign Shift count stored in rs ± Rotate Right rm, ROR, #5-Bit-Immediate Rotate right contents of rm Shift count represented as a 5 bit immediate rm , ROR, rs Rotate right contents of rm Shift count stored in rs
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
± Examples MOV r3, r3, LSL #4 Shift Left r3 by 4 places Shift in zeros Store result in
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This document was uploaded on 11/03/2011 for the course CSE 380 at SUNY Buffalo.

Page1 / 5

division - CSE 380 Division Shifting & Rotating The...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online