03.01.2015 Views

80C186EC/80C188EC Microprocessor User's Manual

80C186EC/80C188EC Microprocessor User's Manual

80C186EC/80C188EC Microprocessor User's Manual

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.

80C186 INSTRUCTION SET ADDITIONS AND EXTENSIONS<br />

A.2.3.2<br />

Rotate Instructions<br />

ROL destination, count<br />

ROL (immediate rotate left) rotates the destination byte or word left by an immediate value. ROL<br />

has two operands. The first, destination, is the effective address to be rotated. The second, count,<br />

is an immediate byte value representing the number of rotations to be made. The most-significant<br />

bit of destination rotates into the least-significant bit.<br />

ROR destination, count<br />

ROR (immediate rotate right) rotates the destination byte or word right by an immediate value.<br />

ROR has two operands. The first, destination, is the effective address to be rotated. The second,<br />

count, is an immediate byte value representing the number of rotations to be made. The least-significant<br />

bit of destination rotates into the most-significant bit.<br />

RCL destination, count<br />

RCL (immediate rotate through carry left) rotates the destination byte or word left by an immediate<br />

value. RCL has two operands. The first, destination, is the effective address to be rotated.<br />

The second, count, is an immediate byte value representing the number of rotations to be made.<br />

The Carry Flag (CF) rotates into the least-significant bit of destination. The most-significant bit<br />

of destination rotates into the Carry Flag.<br />

RCR destination, count<br />

RCR (immediate rotate through carry right) rotates the destination byte or word right by an immediate<br />

value. RCR has two operands. The first, destination, is the effective address to be rotated.<br />

The second, count, is an immediate byte value representing the number of rotations to be made.<br />

The Carry Flag (CF) rotates into the most-significant bit of destination. The least-significant bit<br />

of destination rotates into the Carry Flag.<br />

A-10

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

Saved successfully!

Ooh no, something went wrong!