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
check the al-register for palindromic number

Read Architecture: Look Through Main memory that located is conflicting the system interface. The least concerning feature of this cache unit is that it remain between the proc

hey ,, I need to know how to let a symbol moves with mouse ??

Memory Mapped I/O Memory I/O devices are mapped into the system memory map with ROM and RAM. To access a hardware  device, simply write or  read  to  those  'special'  addresse

take an integer and its base and the base in which you want to convert the number from user and perform conversion.

As an instance of the normal priority mode, imagine that initially AEOI is equal to 0 and all the ISR and IMR bits are clear. Also consider that, as shown in given figure, requests

MOVSW/MOVSB : Move String Word or String Byte: Imagine a string of bytes, stored in a set  of consecutive memory locations is to be moved to another set of  the destination locati

Interrupt System Based on Multiple 8259As A multiple 8259A interrupt system is diagrammed in given figure in this figure data bus drivers are not indicated, but they could be i

You are to create an assembly program for the MSP430 that correctly measures the wind direction, to a precision of 45° (N, NW, W, SW, S, SE, E, NE), using the MSP430's ADC. Your

1 st Generation Microprocessor : At the end of the 70s a group of engineers developed a chip is able to processing data. This chip was called processor chip. Big processors w