Real-mode programs freely execute CLI and STI to control interrupts, PUSHF and POPF to manipulate flags, INT n for DOS and BIOS calls, and IN/OUT for hardware I/O. In normal protected mode, these instructions are privilege-checked -- they execute normally if the caller has sufficient privilege, and fault otherwise. The 386 can't simply let V86 tasks execute them freely -- a DOS program disabling interrupts would bring down the whole system -- but trapping on every INT 21h call would make V86 impractically slow.
Get editor selected deals texted right to your phone!
。heLLoword翻译官方下载对此有专业解读
└──────────┬────────────┘
* 核心思路:链表转数组 + 单调栈(从后往前遍历),时间复杂度O(n),空间复杂度O(n)