A SERVICE OF

logo

LOOP
LOOP
LOOP
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
short-label
17/5
-
2-113
-
Bytes
2
LOOP Coding Example
LOOP AGAIN