Intel 80C196NU manual Mnemonic Operation Instruction Format, JGE Jump if Signed Greater than or

Models: Microcontroller 80C196NU 8XC196NP

1 471
Download 471 pages 22.3 Kb
Page 327
Image 327

8XC196NP, 80C196NU USER’S MANUAL

Table A-6. Instruction Set (Continued)

Mnemonic

 

 

 

 

Operation

 

 

 

 

Instruction Format

 

 

 

 

 

JC

JUMP IF CARRY FLAG IS SET. Tests the

 

 

 

carry flag. If the carry flag is clear, control

JC

cadd

 

passes to the next sequential instruction. If

 

(11011011) (disp)

 

the carry flag is set, this instruction adds to

 

 

 

 

the program counter the offset between the

 

 

 

end of this instruction and the target label,

NOTE: The displacement (disp) is sign-

 

effecting the jump. The offset must be in the

 

 

extended to 24 bits.

 

range of –128 to +127.

 

 

 

 

 

 

 

 

 

 

 

 

 

if C = 1 then

 

 

 

 

 

 

 

 

 

 

PC PC + 8-bit disp

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

Z

 

N

C

 

V

VT

ST

 

 

 

 

 

— —

 

 

 

 

 

 

 

 

JE

JUMP IF EQUAL. Tests the zero flag. If the

 

 

 

flag is clear, control passes to the next

JE

cadd

 

sequential instruction. If the zero flag is set,

 

(11011111) (disp)

 

this instruction adds to the program counter

 

 

 

 

the offset between the end of this instruction

 

 

 

and the target label, effecting the jump. The

NOTE: The displacement (disp) is sign-

 

offset must be in the range of –128 to +127.

 

 

extended to 24 bits.

 

if Z = 1 then

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PC PC + 8-bit disp

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

Z

 

N

C

 

V

VT

ST

 

 

 

 

 

— —

 

 

 

 

 

 

 

 

JGE

JUMP IF SIGNED GREATER THAN OR

 

 

 

EQUAL. Tests the negative flag. If the

JGE

cadd

 

negative flag is set, control passes to the next

 

(11010110) (disp)

 

sequential instruction. If the negative flag is

 

 

 

 

clear, this instruction adds to the program

 

 

 

counter the offset between the end of this

NOTE: The displacement (disp) is sign-

 

instruction and the target label, effecting the

 

 

extended to 24 bits.

 

jump. The offset must be in the range of –128

 

 

 

 

 

to +127.

 

 

 

 

 

 

 

 

 

 

if N = 0 then

 

 

 

 

 

 

 

 

 

 

PC PC + 8-bit disp

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

Z

 

N

C

 

V

VT

ST

 

 

 

 

 

 

— —

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A-22

Page 327
Image 327
Intel 80C196NU, 8XC196NP, Microcontroller manual Mnemonic Operation Instruction Format, JGE Jump if Signed Greater than or