RCL ROTATE THROUGH RCL

CARRY LEFT

Operation:

Flags Affected:

(temp) +- COUNT

CF,OF

do while (temp) *0

 

(tmpcf) +- (CF)

 

(CF) +- high-order bit of (EA)

 

(EA) +- (EA) * 2 + (tmpcf)

 

(temp) +- (temp)-1

 

if COU NT = 1 then

 

if high-order bit of (EA) *(CF)

 

then (OF) +-1

 

else (OF) +- 0

 

else (OF) undefined

 

Description:

 

RCL destination, count

ReL (Rotate through Carry Left) rotates the bits in the byte or word destination operand to the left by the number of bits specified in the count operand. The carry flag (CF) is treated as "part of" the destination operand; that is, its value is rotated into the low-order bit of the destination, and itself is replaced by the high- order bit of the destination.

2-132

Page 167
Image 167
Intel 210200-002 manual RCL Rotate Through RCL Carry Left, RCL destination, count