Web Development
ud598.txt
Associated article: Undocumented Corner
Tags: Web Development Parallel
Published source code accompanying the column by Robert R. Collins in which he wraps up his discussion of Intel's Virtual Mode Extensions (VME).
Undocumented Corner
by Robert R. Collins
Listing One
CLI { /* v86 mode */
if (EFLAGS.IOPL == 3) {
then EFLAGS.IF = 0;
else if (CR4.VME == 0) { /* IOPL < 3 */
then #GP(0); /* ERROR CODE = 0 */
else EFLAGS.VIF = 0;
}
}
}
STI { /* v86 mode */
if (EFLAGS.IOPL == 3) {
then EFLAGS.IF = 1;
else ...


