--- np2/i286x/i286x.cpp 2003/12/12 01:04:40 1.9 +++ np2/i286x/i286x.cpp 2003/12/25 19:26:55 1.11 @@ -60,11 +60,20 @@ void i286x_initialize(void) { void i286x_reset(void) { ZeroMemory(&i286core.s, sizeof(i286core.s)); - I286_CS = 0x1fc0; - CS_BASE = 0x1fc00; + I286_CS = 0xffff; + CS_BASE = 0xffff0; i286core.s.adrsmask = 0xfffff; } +void i286x_shut(void) { + + CPU_CS = 0xffff; + CS_BASE = 0xffff0; + CPU_IP = 0; + CPU_ADRSMASK = 0xfffff; + i286x_resetprefetch(); +} + LABEL void i286x_resetprefetch(void) { @@ -2677,7 +2686,7 @@ I286 _popf(void) { // 9D: popf not ax test al, pic.pi[0].irr jne irqcheck - test al, pic.pi[1].irr + test ah, pic.pi[1].irr jne irqcheck nextop: ret @@ -3607,7 +3616,7 @@ I286 _iret(void) { // CF: iret not ax test al, pic.pi[0].irr jne irqcheck - test al, pic.pi[1].irr + test ah, pic.pi[1].irr jne irqcheck nextop: ret @@ -4211,7 +4220,7 @@ I286 _sti(void) { // FB: sti not ax test al, pic.pi[0].irr jne nextopandexit - test al, pic.pi[1].irr + test ah, pic.pi[1].irr jne nextopandexit jmp_nextop: jmp i286op[ebp*4]