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
Multiply two numbers by using shift and rotate instruction

Assembly Language: Inside the 8085, instructions are really stored like binary numbers, not a very good manner to look at them and very difficult to decipher. An assembler is

How to design 4 bit signed 2s complement multiplier?

Cache controller The cache controller is the mind of the cache.  Its responsibilities include:  performing the  snarfs and snoops, updating the  TRAM  and SRAM and implementing


Flowchart for the sequence of 8251 Whether the control, mode or sync character register is selected depends on the accessing sequence.  A flowchart of the sequencing is given i

The real time System (RTS) : Calling the clock real-time is somewhat of a misnomer because it only shows the time setting it has been given. The RTC is the other half of chip

AAM: ASCII Adjust for Multiplication after execution. This instruction converts the product available in the AL into unpacked BCD format.  This follows a multiplication   instruct

Your assignment for this project is to write an assembly language program that checks if the user's input is a valid ISBN number. A sample run of your program might look like: