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
Problem (a) Prepare the assembly code sequence for each of the four styles (accumulator, memory-memory, stack, load/store) of machine for the code fragment: A = B + C;

Maximim and Minimum mode 8088 system : In the maximum mode, the pin 880 is lastingly high. The functions and timings of other pins of 8088 are exactly similar to 8086. Due to t

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

Example : Add the contents of the 2000H: 0500H memory location to contents of 3000H: 0600H and store the result in 5000H: 0700H. Solution : Unlike the past example progra

I am assigned to implement dijkstra algorithm in assembly language. I am not a novice in assembly. I need help implementing it.Kindly if anyone then please.

Ask question #MinimuWHAT ARE CONSTANTS AND WHAT DO THEY DO?m 100 words accepted#

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

move a byte string ,16 bytes long from the offset 0200H to 0300H in the segment 7000H..


DEC : A powerful new Alpha 64 bit RISC computer chip was introduced in the year 1977, as new VAX (Virtual Address Extension) Computer. The VAX was 32 bit computer line based on