Shr-sar-logical instruction-microprocessor, Assembly Language

SHR : Shift Logical Right: This instruction performs bit-wise right shifts on the operand word or byte that might be reside in  a memory location or a register, by the specified count in the instruction and inserts zeros in the shifted positions. The result is in the destination operand. Given figure describe execution of this instruction. This instruction shifts operand through the carry flag.

918_SHR.jpg

                                             Figure: Execution SHR Instruction

SAR : Shift Arithmetic Right: This instruction performs right shifts on the operand byte or word that might be memory location or register by the particular count in the instruction and inserts the most significant bit of the operand in the new inserted positions. The result is in the destination operand. Given figure described execution of the instruction. All of the condition code flags are affected from this. This shift operation shifts the operand through the carry flag.

508_SAR.jpg


                                                      Figure : Execution of SAR Instruction

Posted Date: 10/12/2012 2:52:49 AM | Location : United States







Related Discussions:- Shr-sar-logical instruction-microprocessor, Assignment Help, Ask Question on Shr-sar-logical instruction-microprocessor, Get Answer, Expert's Help, Shr-sar-logical instruction-microprocessor Discussions

Write discussion on Shr-sar-logical instruction-microprocessor
Your posts are moderated
Related Questions
8088  Timing System Diagram The 8088 address/data  bus is divided  in 3 parts (a) the lower 8 address/data  bits, (b) the middle 8 address bits, and (c) the upper 4 status/

write a programme the addition two 3*3 matrix and stored in from list

External Hardware-Interrupts External hardware-interrupts are generated by controllers of external devices or coprocessors and are connected to the processor pin for Non Mask a

I have two homework assignments due in 10 hours for the x86 processor assembly language

Project Overview In this series of projects you will write a compiler for a small subset of Pascal.  In this assignment, you will start writing the syntax analysis and code gen

how to add 111 and 333 in assembly language

Write a program to solve problem 9, Summation Program, on page 179 of chapter 5 in the textbook (book:kip Irvine Assembly Language sixth edition)

DMA DMA stands for Direct Memory Access It is uses same Address/Data lines on ISA bus It controls the ISA bus instead of the processor ("bus master") Floppy

Opcode : The opcode generally appear in the first byte.but in a few instructions, a register objective is in the first byte and few other instructions may have their 3-bits of

Assembly Code for Reading Flow & Generating Serial Output The timer is timer 1 is set for the baud rate 9600, as the crystal used is of 11.0592 Hz.  Then the timer 1 is starte