80C186 INSTRUCTION SET ADDITIONS AND EXTENSIONS

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.

A-10

Page 317
Image 317
Intel 80C186XL, 80C188XL user manual ROL destination, count, Rotate Instructions