--- np2/i286x/i286x.cpp 2003/12/04 06:41:23 1.6 +++ np2/i286x/i286x.cpp 2003/12/09 15:49:14 1.8 @@ -1,5 +1,5 @@ #include "compiler.h" -#include "i286.h" +#include "cpucore.h" #include "i286x.h" #include "i286xadr.h" #include "i286xs.h" @@ -52,13 +52,13 @@ const BYTE iflags[256] = { // Z_FLAG 0x80, 0x84, 0x84, 0x80, 0x84, 0x80, 0x80, 0x84}; -void i286_initialize(void) { +void i286x_initialize(void) { i286xadr_init(); - v30init(); + v30xinit(); } -void i286_reset(void) { +void i286x_reset(void) { ZeroMemory(&i286core.s, sizeof(i286core.s)); I286_CS = 0x1fc0; @@ -67,7 +67,7 @@ void i286_reset(void) { } -LABEL void i286_resetprefetch(void) { +LABEL void i286x_resetprefetch(void) { __asm { pushad @@ -79,7 +79,7 @@ LABEL void i286_resetprefetch(void) { } } -LABEL void __fastcall i286_interrupt(BYTE vect) { +LABEL void __fastcall i286x_interrupt(BYTE vect) { __asm { pushad @@ -169,7 +169,7 @@ LABEL void __fastcall i286x_localint(voi -LABEL void i286(void) { +LABEL void i286x(void) { __asm { pushad @@ -217,7 +217,7 @@ i286notrap: mov dword ptr (i286core.s. -LABEL void i286_step(void) { +LABEL void i286x_step(void) { __asm { pushad @@ -2668,7 +2668,8 @@ I286 _popf(void) { // 9D: popf cmp ah, 3 sete I286_TRAP - test ah, 2 // fast_intr + je irqcheck // fast_intr + test ah, 2 je nextop cmp pic.ext_irq, 0 jne nextop @@ -3596,7 +3597,9 @@ I286 _iret(void) { // CF: iret sete I286_TRAP RESET_XPREFETCH - test I286_FLAG, I_FLAG // fast_intr + cmp I286_TRAP, 0 // fast_intr + jne irqcheck + test I286_FLAG, I_FLAG je nextop cmp pic.ext_irq, 0 jne nextop @@ -4201,7 +4204,8 @@ I286 _sti(void) { // FB: sti test I286_FLAG, T_FLAG setne I286_TRAP - cmp pic.ext_irq, 0 // fast_intr + jne nextopandexit // fast_intr + cmp pic.ext_irq, 0 jne jmp_nextop mov al, pic.pi[0].imr mov ah, pic.pi[1].imr