11.07.2015 Views

section 7 - Index of

section 7 - Index of

section 7 - Index of

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ASR Arithmetic Shift Accumulator Right ASROperation:d 7 I-----tl~~ I----.....55 47 23 0~~ I C (parallel move)Assembler Syntax:ASR 0 (parallel move)Description: Arithmetically shift the destination operand 0 one bit to the right and storethe result in the destination accumulator. The LS bit <strong>of</strong> 0 prior to instruction execution isshifted into the carry bit C, and the MS bit <strong>of</strong> 0 is held constant.Example:ASRB X:-(R3),R3 ;divide B by 2, update R3, load R3B L-IBefore Execution_--=$_A8_:A_8_64_20_:A_864_21_---lAfter ExecutionBI ......__$_D4_:5_43_2_10_:54_3_21_0_----'SRI ......_____$0_30_0_---' SR I ......_______ $_0_32_9_----'Explanation <strong>of</strong> Example: Prior to execution, the 56-bit B accumulator contains thevalue $A8:A86420:A86421. The execution <strong>of</strong> the ASR B instruction shifts the 56-bit valuein the B accumulator one bit to the right and stores the result back in the B accumulator.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!