X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_head.h;h=a92a21b5d38e2767b8dc885d1193876a77dc246e;hb=033a884c3a161367f6820dbcc959111403ecd497;hp=6f6f788573fbaaaeef213316bb97f6c06dcc0775;hpb=34ee293d7681967f7852b26a89e38908333e7479;p=16.git diff --git a/src/lib/16_head.h b/src/lib/16_head.h index 6f6f7885..a92a21b5 100755 --- a/src/lib/16_head.h +++ b/src/lib/16_head.h @@ -33,7 +33,7 @@ #include #include #include -#include // just for wait +#include // this is where Open Watcom hides the outp() etc. functions // just for wait #include // just for wait #include #include @@ -58,7 +58,6 @@ #include "src/lib/16_t.h" #include "src/lib/16_tdef.h" #include "src/lib/nyan/kitten.h" -#include "src/lib/16_dbg.h" #define VERSION __DATE__ " " __TIME__ @@ -160,14 +159,9 @@ extern int profilehandle,debughandle; //make it into game global //#define OLD16_VL #define nil ((void *)0) -#ifdef __BORLANDC__ -//#define _FCORELEFT 0x90000UL-16UL -#define _FCORELEFT HC_farcoreleft() -#define sprite -#endif + #ifdef __WATCOMC__ //#define _FCORELEFT 0x90000UL+16UL -#define _FCORELEFT HC_farcoreleft() /*static union REGS CPURegs; #define _AX CPURegs.x.ax @@ -187,16 +181,11 @@ extern int profilehandle,debughandle; //make it into game global #define _DL CPURegs.h.dl #define geninterrupt(n) int86(n,&CPURegs,&CPURegs);*/ -#define peekb(segm,ofs) (*(byte far*)MK_FP((segm),(ofs))) -#define peekw(segm,ofs) (*(word far*)MK_FP((segm),(ofs))) -#define pokeb(segm,ofs,value) (peekb((segm),(ofs)) = (byte)(value)) -#define pokew(segm,ofs,value) (peekw((segm),(ofs)) = (word)(value)) + typedef union REGPACK regs_t; #endif -#define INPUT_STATUS_1 0x03da - // local function // long int filesize(FILE *fp); void clrstdin();