--- np2/i286c/i286c.h 2003/10/17 11:10:02 1.3 +++ np2/i286c/i286c.h 2003/11/21 06:51:11 1.6 @@ -1,6 +1,5 @@ #define I286FN static void -#define I286_P static void #define I286EXT void typedef void (*I286OP)(void); @@ -9,16 +8,25 @@ typedef UINT16 (*CALCLEA)(void); typedef UINT16 (*GETLEA)(void); extern UINT32 EA_FIX; -extern BYTE *reg8_b53[256]; -extern BYTE *reg8_b20[256]; -extern UINT16 *reg16_b53[256]; -extern UINT16 *reg16_b20[256]; extern BYTE szpcflag[0x200]; -extern BYTE szpflag_w[0x10000]; extern CALCEA c_calc_ea_dst[]; extern CALCLEA c_calc_lea[]; extern GETLEA c_get_ea[]; +#if !defined(MEMOPTIMIZE) +extern BYTE szpflag_w[0x10000]; +#endif + +#if !defined(MEMOPTIMIZE) || (MEMOPTIMIZE < 2) +extern BYTE *_reg8_b53[256]; +extern BYTE *_reg8_b20[256]; +#endif +#if !defined(MEMOPTIMIZE) || (MEMOPTIMIZE < 2) +extern UINT16 *_reg16_b53[256]; +extern UINT16 *_reg16_b20[256]; +#endif + + extern void CPUCALL i286_intnum(UINT vect, UINT16 IP);