Besides the Test PLA, the 386 has another PLA called the Entry PLA that maps opcodes to microcode entry points. One of its input bits is a "protected mode" flag. Many instructions have both a real-mode and a protected-mode entry point -- for instance, MOV ES, reg maps to address 009 (a single microcode line) in real mode, but to 580 (which initiates a full descriptor load with protection tests) in protected mode. The trick that makes V86 work is to define this flag as:
if (right - left <= 1) return; // 只有一个元素,无需排序
,更多细节参见夫子
Barycentric Coordinates
His company has built a three-fingered hand which he says is "pretty good".