Decision Table

The following decision table indicates which action in the lower portion of the table is taken given the conditions in the upper portion of the table. Each Y in the lower section of the decision table represents a procedure defined above in the Operation section for this instruction (except #GP(0)) and the number following the Y indicates the order in which the procedure is run.

┌────────────────────────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┬──────┐
│PE                      │0     │1     │1     │1     │1     │1     │1     │1     │
├────────────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
│VM                      │-     │-     │-     │-     │-     │0     │1     │1     │
├────────────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
│IOPL                    │-     │-     │-     │-     │-     │-     │<3    │=3    │
├────────────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
│DPL/CPL RELATIONSHIP    │-     │DPL < │-     │DPL > │DPL = │DPL < │-     │-     │
│                        │      │CPL   │      │CPL   │CPL or│CPL & │      │      │
│                        │      │      │      │      │C     │NC    │      │      │
├────────────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
│INTERRUPT TYPE          │-     │S/W   │-     │-     │-     │-     │-     │-     │
├────────────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
│GATE TYPE               │-     │-     │Task  │Trap  │Trap  │Trap  │Trap  │Trap  │
│                        │      │      │      │or Int│or Int│or Int│or Int│or Int│
├────────────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
│REAL-ADDRESS-MODE       │Y     │      │      │      │      │      │      │      │
├────────────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
│PROTECTED-MODE          │      │Y1    │Y1    │Y1    │Y1    │Y1    │Y1    │Y1    │
├────────────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
│TRAP-OR-INT-GATE        │      │      │      │Y2    │Y2    │Y2    │Y2    │Y2    │
├────────────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
│INT-TO-INNER-PRIV       │      │      │      │      │      │Y3    │      │      │
├────────────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
│INT-TO-SAME-PRIV        │      │      │      │      │Y3    │      │      │      │
├────────────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
│INT-FROM-V86-MODE       │      │      │      │      │      │      │      │Y3    │
├────────────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
│TASK-GATE               │      │      │Y2    │      │      │      │      │      │
├────────────────────────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┼──────┤
│#GP                     │      │Y2    │      │Y3    │      │      │Y3    │      │
└────────────────────────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┴──────┘

Notes: