X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_head.h;h=8c5d5381699677454c15d591c9aa703c2d271600;hb=e646dd0bd9df6a064b2c7192eb675c2a4191c3b8;hp=6f6f788573fbaaaeef213316bb97f6c06dcc0775;hpb=34ee293d7681967f7852b26a89e38908333e7479;p=16.git diff --git a/src/lib/16_head.h b/src/lib/16_head.h index 6f6f7885..8c5d5381 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(); @@ -207,6 +196,7 @@ void printmeminfoline(byte *strc, const byte *pee, size_t h_total, size_t h_used int US_CheckParm(char *parm,char **strings); byte dirchar(byte in); void print_mem(void const *vp, size_t n); +void hres (void); #define PRINT_OPAQUE_STRUCT(p) print_mem((p), sizeof(*(p)))