]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/16_head.h
====PM WORKS! XMS PORTING IS NEXT!====
[16.git] / src / lib / 16_head.h
index b840043d4fd149606472f7f4ae2d00d84c585642..aab4c0334e7a74c9e958b816d1bc5cfb4c12501d 100755 (executable)
@@ -42,6 +42,7 @@
 #include <sys/stat.h>\r
 #include <mem.h>\r
 #include <string.h>\r
+#include <limits.h>\r
 #ifdef __WATCOMC__\r
 #include <i86.h>\r
 #include <unistd.h>\r
@@ -151,6 +152,8 @@ static word far* clockw= (word far*) 0x046C; /* 18.2hz clock */
 extern int                     profilehandle,debughandle;      //make it into game global\r
 \r
 #define __DEBUG__\r
+//#define __DEBUG_PM__\r
+//#define __DEBUG_MM__\r
 \r
 #define        nil     ((void *)0)\r
 #ifdef __BORLANDC__\r
@@ -159,13 +162,15 @@ extern    int                     profilehandle,debughandle;      //make it into game global
 #endif\r
 #ifdef __WATCOMC__\r
 #define _FCORELEFT 0x90000UL+16UL\r
-extern union REGS CPURegs;\r
+static union REGS CPURegs;\r
 \r
 #define _AX CPURegs.x.ax\r
 #define _BX CPURegs.x.bx\r
 #define _CX CPURegs.x.cx\r
 #define _DX CPURegs.x.dx\r
 \r
+#define _SI CPURegs.x.si\r
+\r
 #define _AH CPURegs.h.ah\r
 #define _AL CPURegs.h.al\r
 #define _BH CPURegs.h.bh\r