Subscribe:
infolinks

Rotate Instructions


Overview of Rotate Instructions 



You can use the Rotate instructions to rotate the entire contents of input IN bit by bit to the left or to the right (see also CPU Registers). The vacated bit positions are filled with the signal states of the bits that are shifted out of input IN.



The number that you specify for input parameter N is the number of bits by which the value will be rotated.



Depending on the instruction, rotation uses the CC 1 bit of the status word. The

CC 0 bit of the status word is reset to 0.



The following Rotate instructions are available:



·      ROL_DW : Rotate Left Double Word



·      ROR_DW : Rotate Right Double Word


1 comments:

Tony Stark said...

Great article. Each and every point is explained in an extremely detailed way.

PLC Training in Chennai | PLC Training Institute in Chennai

Post a Comment