--- np2/i286c/i286c_0f.c 2003/12/08 00:55:31 1.11 +++ np2/i286c/i286c_0f.c 2003/12/25 19:26:55 1.14 @@ -1,7 +1,6 @@ #include "compiler.h" #include "cpucore.h" #include "i286c.h" -#include "memory.h" #include "i286c.mcr" @@ -52,7 +51,7 @@ I286_0F _lgdt(UINT op) { I286_GDTR.limit = i286_memoryread_w(seg + ad); I286_GDTR.base = i286_memoryread_w(seg + LOW16(ad + 2)); I286_GDTR.base24 = i286_memoryread(seg + LOW16(ad + 4)); - I286_GDTR.reserved = i286_memoryread(seg + LOW16(ad + 5)); +// I286_GDTR.reserved = i286_memoryread(seg + LOW16(ad + 5)); } else { INT_NUM(6, I286_IP - 2); @@ -70,7 +69,8 @@ I286_0F _lidt(UINT op) { I286_IDTR.limit = i286_memoryread_w(seg + ad); I286_IDTR.base = i286_memoryread_w(seg + LOW16(ad + 2)); I286_IDTR.base24 = i286_memoryread(seg + LOW16(ad + 4)); - I286_IDTR.reserved = i286_memoryread(seg + LOW16(ad + 5)); +// I286_IDTR.reserved = i286_memoryread(seg + LOW16(ad + 5)); + TRACEOUT(("IDT:%.2x%.4x", I286_IDTR.base24, I286_IDTR.base)); } else { INT_NUM(6, I286_IP - 2); @@ -99,6 +99,9 @@ I286_0F _lmsw(UINT op) { I286_WORKCLOCK(3); I286_MSW = i286_memoryread_w(CALC_EA(op)); } + if (I286_MSW & 1) { + TRACEOUT(("enable PE %.4x:%.4x", I286_CS, I286_IP)); + } } static const I286OP_0F cts1_table[] = { @@ -157,7 +160,6 @@ I286EXT i286c_cts(void) { _loadall286(); } else { - I286_WORKCLOCK(20); INT_NUM(6, ip - 1); } }