--- np2/i286c/cpucore.h 2003/12/08 00:55:31 1.1 +++ np2/i286c/cpucore.h 2003/12/21 16:05:25 1.5 @@ -6,6 +6,12 @@ // //---------------------------------------------------------------------------- +#include "memory.h" + +#if defined(CPUCORE_IA32) +#error : not support CPUCORE_IA32 +#endif + #if !defined(CPUDEBUG) enum { I286_MEMREADMAX = 0xa4000, @@ -162,6 +168,12 @@ typedef struct { typedef struct { // for ver0.73 BYTE *ext; UINT32 extsize; +#if defined(CPUSTRUC_MEMWAIT) + UINT8 tramwait; + UINT8 vramwait; + UINT8 grcgwait; + UINT8 padding; +#endif } I286EXT; typedef struct { @@ -241,6 +253,13 @@ void v30c_step(void); #define CPU_TYPE i286core.s.cpu_type +#if defined(CPUSTRUC_MEMWAIT) +#define MEMWAIT_TRAM i286core.e.tramwait +#define MEMWAIT_VRAM i286core.e.vramwait +#define MEMWAIT_GRCG i286core.e.grcgwait +#endif + + #define CPU_isDI (!(i286core.s.r.w.flag & I_FLAG)) #define CPU_isEI (i286core.s.r.w.flag & I_FLAG) #define CPU_CLI i286core.s.r.w.flag &= ~I_FLAG; \