
BASIC INSTRUCTION SET
Direct JMP outside of the current code segment. Direct JMP instructions that specify a target location outside the current code segment contain a full
Example: JMP FAR_NEWCODE_FOO. Places the selector contained in the instruction into CS and the offset into IP. The program resumes execution at this location in the new code segment.
Indirect JMP outside of the current code segment. Indirect JMP instructions that specify a target location outside the current code segment use a
Example: JMP NEWCODE. NEWCODE the first word of two consecutive words in memory which represent the new pointer. NEWCODE contains the new offset for IP and the word follow- ing NEWCODE contains the selector for CS. The program resumes execution at this location in the new code segment. (Protected mode programs treat this differently. See Chapters 6 and 7).
Direct JMP outside of the current code segment to a call gate. If the selector included with the instruc- tion refers to a call gate, then the processor ignores the offset in the instruction and takes the pointer of the routine being entered from the call gate.
JMP outside of current code segment may only go to the same level.
Example: JMP CALL_GATE_FOO. The selector in the instruction refers to the call gate CALL_GATE]OO, and the call gate actually provides the new contents of CS and IP to specify the address of the next instructions.
Indirect JMP outside the current code segment to a call gate. If the selector specified by the instruc- tion refers to a call gate, the processor ignores the offset in the
Example: JMP CASE_TABLE [BX1. The instruction refers to the
3.6.1.2 CALL INSTRUCTION
CALL (Call Procedure) activates an
A long CALL instruction that invokes a