Intel 80C186XL, 80C188XL ROL destination, count, ROR destination, count, RCL destination, count

Models: 80C186XL 80C188XL

1 405
Download 405 pages 42.62 Kb
Page 317
Image 317
A.2.3.2 Rotate Instructions

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 ROL destination, count, ROR destination, count, RCL destination, count, RCR destination, count