--- np2/win9xc/compiler.h 2004/03/04 16:58:58 1.19 +++ np2/win9xc/compiler.h 2004/04/08 13:08:23 1.27 @@ -32,12 +32,20 @@ typedef int SINT32; typedef signed __int64 SINT64; #define INLINE inline #endif +#define FASTCALL __fastcall // for RISC test #define REG8 UINT #define REG16 UINT +// for x86 +#define LOADINTELDWORD(a) (*((UINT32 *)(a))) +#define LOADINTELWORD(a) (*((UINT16 *)(a))) +#define STOREINTELDWORD(a, b) *(UINT32 *)(a) = (b) +#define STOREINTELWORD(a, b) *(UINT16 *)(a) = (b) + + #include "common.h" #include "milstr.h" #include "_memory.h" @@ -45,12 +53,13 @@ typedef signed __int64 SINT64; #include "lstarray.h" #include "trace.h" -#define GETTICK() GetTickCount() -#define SPRINTF wsprintf + +#define GETTICK() GetTickCount() +#define SPRINTF wsprintf #define __ASSERT(s) -#define LABEL __declspec(naked) -#define RELEASE(x) if (x) {(x)->Release(); (x) = NULL;} +#define LABEL __declspec(naked) +#define RELEASE(x) if (x) {(x)->Release(); (x) = NULL;} #define VERMOUTH_LIB #define PARTSCALL __fastcall @@ -77,12 +86,13 @@ typedef signed __int64 SINT64; #if defined(CPUCORE_IA32) #define SUPPORT_CRT31KHZ #define SUPPORT_PC9821 +#define SUPPORT_PC9801_119 +#define SUPPORT_SOFTKBD 0 +#define IA32_PAGING_EACHSIZE #endif #define SUPPORT_HOSTDRV #define SUPPORT_SWSEEKSND -#define FASTCALL __fastcall - #if defined(CPUCORE_IA32) #define sigjmp_buf jmp_buf