| version 1.6, 2003/11/03 00:49:55 | version 1.18, 2004/04/14 16:35:53 | 
| Line 4 | Line 4 | 
 | #include        <windows.h> | #include        <windows.h> | 
 | #include        <stdio.h> | #include        <stdio.h> | 
 | #include        <stddef.h> | #include        <stddef.h> | 
 |  | #include        <setjmp.h> | 
 |  |  | 
 | #define BYTESEX_LITTLE | #define BYTESEX_LITTLE | 
 |  | #define OSLANG_SJIS | 
 |  | #define OSLINEBREAK_CRLF | 
 |  |  | 
 | #ifndef __GNUC__ |  | 
 |  |  | 
 | typedef short                   SINT16; |  | 
 | typedef unsigned short  UINT16; |  | 
 | typedef int                             SINT32; |  | 
 | typedef unsigned int    UINT32; |  | 
 |  |  | 
 |  | #ifndef __GNUC__ | 
 |  | typedef signed char                     SINT8; | 
 |  | typedef unsigned char           UINT8; | 
 |  | typedef signed short            SINT16; | 
 |  | typedef unsigned short          UINT16; | 
 |  | typedef signed int                      SINT32; | 
 |  | typedef unsigned int            UINT32; | 
 |  | typedef signed __int64          SINT64; | 
 |  | typedef unsigned __int64        UINT64; | 
 |  | #define INLINE                          __inline | 
 |  | #define QWORD_CONST(v)          ((UINT64)(v)) | 
 |  | #define SQWORD_CONST(v)         ((SINT64)(v)) | 
 |  | #define snprintf                        _snprintf | 
 |  | #define vsnprintf                       _vsnprintf | 
 | #else | #else | 
 |  |  | 
 | #include        <stdlib.h> | #include        <stdlib.h> | 
| typedef short                   SINT16; | typedef signed char                     SINT8; | 
| typedef unsigned short  UINT16; | typedef unsigned char           UINT8; | 
| typedef int                             SINT32; | typedef short                           SINT16; | 
|  | typedef unsigned short          UINT16; | 
|  | typedef int                                     SINT32; | 
|  | typedef signed __int64          SINT64; | 
|  | #define INLINE                          inline | 
 | #endif | #endif | 
|  | #define FASTCALL                        __fastcall | 
 |  |  | 
 | #define LOADINTELDWORD(a)               (*((UINT32 *)(a))) | #define LOADINTELDWORD(a)               (*((UINT32 *)(a))) | 
 | #define LOADINTELWORD(a)                (*((UINT16 *)(a))) | #define LOADINTELWORD(a)                (*((UINT16 *)(a))) | 
| Line 30  typedef int    SINT32; | Line 43  typedef int    SINT32; | 
 | #define STOREINTELWORD(a, b)    *(UINT16 *)(a) = (b) | #define STOREINTELWORD(a, b)    *(UINT16 *)(a) = (b) | 
 |  |  | 
 |  |  | 
 |  | #define sigjmp_buf                              jmp_buf | 
 |  | #define sigsetjmp(env, mask)    setjmp(env) | 
 |  | #define siglongjmp(env, val)    longjmp(env, val) | 
 |  | #define msgbox(title, msg)              MessageBox(NULL, msg, title, MB_OK) | 
 |  |  | 
 |  |  | 
 | #include        "common.h" | #include        "common.h" | 
 | #include        "milstr.h" | #include        "milstr.h" | 
 | #include        "_memory.h" | #include        "_memory.h" | 
| Line 37  typedef int    SINT32; | Line 56  typedef int    SINT32; | 
 | #include        "lstarray.h" | #include        "lstarray.h" | 
 | #include        "trace.h" | #include        "trace.h" | 
 |  |  | 
 |  |  | 
 | #define GETTICK()                       GetTickCount() | #define GETTICK()                       GetTickCount() | 
 | #define GETRAND()                       rand() |  | 
 | #define SPRINTF                         wsprintf | #define SPRINTF                         wsprintf | 
 |  | #define __ASSERT(s) | 
 |  |  | 
| #define LABEL           __declspec(naked) | #define LABEL                           __declspec(naked) | 
| #define RELEASE(x)      if (x) {(x)->Release(); (x) = NULL;} | #define RELEASE(x)                      if (x) {(x)->Release(); (x) = NULL;} | 
 |  |  | 
 | #define OPNGENX86 | #define OPNGENX86 | 
 | #define VERMOUTH_LIB | #define VERMOUTH_LIB | 
| Line 56  typedef int    SINT32; | Line 76  typedef int    SINT32; | 
 | #define VRAMCALL        __fastcall | #define VRAMCALL        __fastcall | 
 | #define SCRNCALL        __fastcall | #define SCRNCALL        __fastcall | 
 |  |  | 
 |  | #define SUPPORT_SJIS | 
 |  |  | 
 | #define SUPPORT_8BPP | #define SUPPORT_8BPP | 
 | #define SUPPORT_16BPP | #define SUPPORT_16BPP | 
 | #define SUPPORT_24BPP | #define SUPPORT_24BPP | 
 | #define SUPPORT_32BPP | #define SUPPORT_32BPP | 
 | #define SUPPORT_NORMALDISP | #define SUPPORT_NORMALDISP | 
 |  |  | 
 |  | #if defined(SUPPORT_PC9821) | 
 |  | #define CPUCORE_IA32 | 
 |  | #define IA32_PAGING_EACHSIZE | 
 |  | #define SUPPORT_CRT31KHZ | 
 |  | #define SUPPORT_PC9801_119 | 
 |  | #endif | 
 |  | #define SUPPORT_CRT15KHZ | 
 |  | #define SUPPORT_PC9861K | 
 |  | #define SUPPORT_SOFTKBD         0 | 
 |  | #define SUPPORT_S98 | 
 |  | #define SUPPORT_KEYDISP | 
 |  | #define SUPPORT_MEMDBG32 | 
 |  | #define SUPPORT_HOSTDRV | 
 |  | #define SUPPORT_SASI | 
 |  | #define SUPPORT_SCSI | 
 |  |  | 
 |  | #define SUPPORT_RESUME | 
 |  | #define SUPPORT_STATSAVE        10 | 
 |  | #define SUPPORT_ROMEO | 
 |  |  | 
 | #define SOUNDRESERVE    20 | #define SOUNDRESERVE    20 | 
 |  |  |