A.2.3.2 rotate instructions – Intel 80C188XL User Manual

Page 317

Advertising
background image

80C186 INSTRUCTION SET ADDITIONS AND EXTENSIONS

A-10

A.2.3.2

Rotate Instructions

ROL destination, count

ROL (immediate rotate left) rotates the destination byte or word left by an immediate value. ROL
has two operands. The first, destination, is the effective address to be rotated. The second, count,
is an immediate byte value representing the number of rotations to be made. The most-significant
bit of destination rotates into the least-significant bit.

ROR destination, count

ROR (immediate rotate right) rotates the destination byte or word right by an immediate value.
ROR has two operands. The first, destination, is the effective address to be rotated. The second,
count, is an immediate byte value representing the number of rotations to be made. The least-sig-
nificant bit of destination rotates into the most-significant bit.

RCL destination, count

RCL (immediate rotate through carry left) rotates the destination byte or word left by an imme-
diate value. RCL has two operands. The first, destination, is the effective address to be rotated.
The second, count, is an immediate byte value representing the number of rotations to be made.
The Carry Flag (CF) rotates into the least-significant bit of destination. The most-significant bit
of destination rotates into the Carry Flag.

RCR destination, count

RCR (immediate rotate through carry right) rotates the destination byte or word right by an im-
mediate value. RCR has two operands. The first, destination, is the effective address to be rotated.
The second, count, is an immediate byte value representing the number of rotations to be made.
The Carry Flag (CF) rotates into the most-significant bit of destination. The least-significant bit
of destination rotates into the Carry Flag.

Advertising
This manual is related to the following products: