JCXZ

JUMP IF ex

JCXZ

 

REGISTER ZERO

 

Operation:

Flags Affected:

 

if (CX) = 0 then

None

 

(lP) - (IP) + disp (sign-extended to 16-bits)

Description:

JCXZ short-label

JeXZ (Jump if ex Zero) transfers control to the target operand if ex is O. This instruction is useful at the beginning of a loop to bypass the loop if ex has a zero value, i.e., to execute the loop zero times.

Encoding:

1111 00011 disp

JCXZ Operands

Clocks

Transfers

Bytes JCXZ Coding Example

short-label

18 or 6

-

2 JCXZ COUNT_DONE

2-91

Page 126
Image 126
Intel 210200-002 manual Jcxz short-label