LOOP LOOPLOOP

Operation:

Flags Affected:

(ex) +- (CX) -1

None

if (CX) =F 0 then

 

(lP) +- (IP) + disp (sign-extended

 

to 16-bits)

 

Description:

LOOP short-label

LOOP decrements ex by 1 and transfers con- trol to the target operand if ex is not 0; otherwise the instruction following LOOP is executed.

Encoding:

1111 0001 0 1

disp

 

 

 

 

 

-

LOOP Operands

Clocks

Transfers Bytes LOOP Coding Example

short-label

17/5

-

2 LOOP AGAIN

2-113

Page 148
Image 148
Intel 210200-002 manual Loop Looploop, Loop short-label