--- np2/i286x/i286x.cpp 2003/12/24 14:01:41 1.10 +++ np2/i286x/i286x.cpp 2003/12/25 20:30:22 1.13 @@ -60,11 +60,33 @@ void i286x_initialize(void) { void i286x_reset(void) { ZeroMemory(&i286core.s, sizeof(i286core.s)); - I286_CS = 0x1fc0; - CS_BASE = 0x1fc00; + I286_CS = 0xf000; + CS_BASE = 0xf0000; + I286_IP = 0xfff0; i286core.s.adrsmask = 0xfffff; } +void i286x_shut(void) { + + I286_MSW = 0; + + I286_ES = 0; + I286_CS = 0xf000; + I286_SS = 0; + I286_DS = 0; + + ES_BASE = 0; + CS_BASE = 0xf0000; + SS_BASE = 0; + DS_BASE = 0; + SS_FIX = 0; + DS_FIX = 0; + + I286_IP = 0xfff0; + I286_ADRSMASK = 0xfffff; + i286x_resetprefetch(); +} + LABEL void i286x_resetprefetch(void) {