Calling a Procedure in the Current Task
This section describes how to transfer control to another procedure in the currently executing task. Table 8-2 on page 142 contains a list of the possible scenarios and the method to be used.
To Jump to or Call | Use |
---|---|
Procedure in the same code segment. | The programmer uses a near jump or near CALL instruction. |
Procedure in another, non-conforming code segment with the same privilege level (CPL = DPL). | The programmer uses a far jump or far CALL instruction. A Call Gate (described in the next section) could be used, but isn't necessary. |
Procedure in another, conforming code segment that has the same privilege level (CPL = DPL) or that is more privileged ... |
Get The Unabridged Pentium 4 IA32 Processor Genealogy now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.