Figure 3-31 Conditional branches based on the ZF flag.

(a) Branch on ZF = 1
(b) Branch on ZF = 0

3-4-2 Unconditional Branch Instructions

There are five unconditional branch instructions.

Figure 3-33 Machine code formats for unconditional branch instructions.

Figure 3-34 Unconditional branch instructions.

NameMnemonic and FormatDescription
Intrasegment direct short branch
JMP    SHORT OPR
(IP)(IP)+sign extended D8 determined by OPR
Intrasegment direct near branch
JMP    NEAR PTR OPR
(IP)(IP)+16-bit displacement determined by OPR
Intrasegment indirect branch
JMP    OPR*
(IP)(EA) where EA is determined by OPR
Intersegment direct (far) branch
JMP    FAR PTR OPR
(IP)Offset of OPR within segment
(CS)Segment address of segment containing OPR
Intersegment indirect branch
JMP    OPR*
(IP)(EA) where EA is determined by OPR
(CS)(EA+2) where EA is determined by OPR

*Type of branch determined by type of operand.

Flags: No flags are affected.

Addressing modes: For intrasegment direct branches the mode is relative and for intersegment direct branches the mode is direct. Indirect branches cannot involve immediate modes and a memory addressing mode must be used in intersegment indirect branches.


Table of Contents | Next page | Previous page

This is page 34.