INSTRUCTION SET DESCRIPTIONS

Table C-4. Instruction Set (Continued)

Name

Description

Operation

Flags

Affected

 

 

 

 

 

 

 

JCXZ

Jump if CX Zero:

if

AF –

 

JCXZ disp8

(CX) = 0

CF –

 

then

DF –

 

Transfers control to the target location

 

(IP) (IP) + disp8 (sign-ext to 16 bits)

IF –

 

if CX is 0. Useful at the beginning of a

 

 

OF –

 

loop to bypass the loop if CX has a

 

 

 

PF –

 

zero value, i.e., to execute the loop

 

 

 

SF –

 

zero times.

 

 

 

TF –

 

Instruction Operands:

 

 

 

ZF –

 

JCXZ short-label

 

 

 

 

 

 

JE

Jump on Equal:

if

AF –

JZ

Jump on Zero:

(ZF) = 1

CF –

 

JE disp8

then

DF –

 

(IP) (IP) + disp8 (sign-ext to 16 bits)

IF –

 

JZ disp8

 

 

OF –

 

Transfers control to the target location

 

 

 

PF –

 

if the condition tested (ZF = 1) is true.

 

 

 

SF –

 

Instruction Operands:

 

 

 

TF –

 

JE short-label

 

ZF –

 

JZ short-label

 

 

 

 

 

 

JG

Jump on Greater Than:

if

AF –

JNLE

Jump on Not Less Than or Equal:

((SF) = (OF)) and ((ZF) = 0)

CF –

 

JG disp8

then

DF –

 

(IP) (IP) + disp8 (sign-ext to 16 bits)

IF –

 

JNLE disp8

 

 

OF –

 

Transfers control to the target location

 

 

 

PF –

 

if the condition tested (SF = OF) and

 

 

 

SF –

 

(ZF=0) is true.

 

 

 

TF –

 

Instruction Operands:

 

 

 

ZF –

 

JG short-label

 

 

 

JNLE short-label

 

 

 

 

 

 

JGE

Jump on Greater Than or Equal:

if

AF –

JNL

Jump on Not Less Than:

(SF) = (OF)

CF –

 

JGE disp8

then

DF –

 

(IP) (IP) + disp8 (sign-ext to 16 bits)

IF –

 

JNL disp8

 

 

OF –

 

Transfers control to the target location

 

 

 

PF –

 

if the condition tested (SF=OF) is true.

 

 

 

SF –

 

Instruction Operands:

 

 

 

TF –

 

JGE short-label

 

ZF –

 

JNL short-label

 

 

 

 

 

 

NOTE: The three symbols used in the Flags Affected column are defined as follows:

the contents of the flag remain unchanged after the instruction is executed ¸? the contents of the flag is undefined after the instruction is executed

the flag is updated after the instruction is executed

C-22

Page 345
Image 345
Intel 80C186XL, 80C188XL Jump if CX Zero, Jump on Equal Jump on Zero, Jump on Greater Than, Jump on Not Less Than or Equal