26.10.2012 Views

Statement List (STL) - DCE FEL ČVUT v Praze

Statement List (STL) - DCE FEL ČVUT v Praze

Statement List (STL) - DCE FEL ČVUT v Praze

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Shift and Rotate Instructions<br />

11.2 Rotate Instructions<br />

11.2.1 Overview of Rotate Instructions<br />

Description<br />

You can use the Rotate instructions to rotate the entire contents of accumulator 1 bit<br />

by bit to the left or to the right (see also CPU Registers). The Rotate instructions<br />

trigger functions that are similar to the shift functions described in Section 14.1.<br />

However, the vacated bit places are filled with the signal states of the bits that are<br />

shifted out of the accumulator.<br />

The number that follows the rotate instruction or a value in the low byte of the low<br />

word of accumulator 2 indicates the number of bits by which to rotate. Depending on<br />

the instruction, rotation takes place via the CC 1 bit of the status word. The CC 0 bit<br />

of the status word is reset to 0.<br />

The following Rotate instructions are available:<br />

• RLD Rotate Left Double Word (32-Bit)<br />

• RRD Rotate Right Double Word (32-Bit)<br />

• RLDA Rotate ACCU 1 Left via CC 1 (32-Bit)<br />

• RRDA Rotate ACCU 1 Right via CC 1 (32-Bit)<br />

<strong>Statement</strong> <strong>List</strong> (<strong>STL</strong>) for S7-300 and S7-400 Programming<br />

11-14 A5E00706960-01

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!