Rcr-rcl-logic instruction-microprocessor, Assembly Language

RCR: Rotate Right through Carry:- This instruction rotates the contents  bit-wise of the destination operand right by the specified count through carry flag (CF). For each operation, the carry flag is pushed into the MSB of the operand and the LSB is pushed into carry flag.  Remaining bits are shifted right by the specified count positions. The PF, SF, ZF are not changed. The operand can be or memory location or a register. Given figure explains this operation.

1974_RCR.jpg

                                                Figure: Execution of RCR Instruction

 

RCL: Rotate Left through Carry:- This instruction rotates bit-wise the contents of the destination operand left by the specified count through the carry flag (CF). For each operation, the carry flag is pushed into LSB, and the MSB is pushed into the carry flag. Remaining bits are shifted left by the mention positions. The PF, SF, ZF are left operation. The operand can be memory location or a register. Given figure explains the operation.

1112_RCL.jpg

                                              Figure: Execution of RCL Instruction

The count for shifting or rotation is either 1 or is specified by using register CL, in case of all of the rotate and shift instructions.

 

Posted Date: 10/12/2012 3:12:40 AM | Location : United States







Related Discussions:- Rcr-rcl-logic instruction-microprocessor, Assignment Help, Ask Question on Rcr-rcl-logic instruction-microprocessor, Get Answer, Expert's Help, Rcr-rcl-logic instruction-microprocessor Discussions

Write discussion on Rcr-rcl-logic instruction-microprocessor
Your posts are moderated
Related Questions
Description Write a MIPS program that reads a string from user input, reverse each word (defined as a sequence of English alphabetic letters or numeric digits without any punctu

Project Description: Write an 80x86 assembly program that performs the following functions: Reads a set of integers from a file into an array. The data file name is to be


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

) What is the difference between re-locatable program and re-locatable data?

CMPS : Compare String Byte or String Word:-The CMPS instruction may be utilized to compare two strings of Words or byte. The length of the string ought to be stored in the CX. If

Write Policy A write policy determines how the cache deals with a write cycle. The 2 common write policies areWrite-Throughand Write-Back. In Write-Back policy, the cache behav

LODS : Load String Byte or String Word:- The LODS instruction loads AL/AX register by the content of a string pointed to by DS:SI register pair. The SI is automatically modifie

I need a division subroutine. Asks for two inputs, then displays the inputs and shows the answer with a remainder. Mine isnt displaying the inputs correctly.