X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_head.h;h=a92a21b5d38e2767b8dc885d1193876a77dc246e;hb=033a884c3a161367f6820dbcc959111403ecd497;hp=81af81c5f04fcf1ed80ddba48840afc9e720896f;hpb=504952db812eb43b41636db1da125be946cfd35f;p=16.git diff --git a/src/lib/16_head.h b/src/lib/16_head.h index 81af81c5..a92a21b5 100755 --- a/src/lib/16_head.h +++ b/src/lib/16_head.h @@ -20,9 +20,9 @@ * */ -#if !defined(__LARGE__) && !defined(__COMPACT__) && !defined(__HUGE__) -#error Invalid memory model for compiling project 16 -#endif +//#if !defined(__LARGE__) && !defined(__COMPACT__) && !defined(__HUGE__) +//#error Invalid memory model for compiling project 16 +//#endif #if !defined(__i86__) && defined(__i386__) #error i8088 only @@ -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,23 +181,22 @@ 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 */ +// local function // long int filesize(FILE *fp); +void clrstdin(); char *remove_ext(char* mystr, char dot, char sep); void rotateR(byte arr[], byte n); void rotateL(byte arr[], byte n); void printmeminfoline(byte *strc, const byte *pee, size_t h_total, size_t h_used, size_t h_free); int US_CheckParm(char *parm,char **strings); byte dirchar(byte in); +void print_mem(void const *vp, size_t n); + +#define PRINT_OPAQUE_STRUCT(p) print_mem((p), sizeof(*(p))) #endif/*__16_HEAD_H__*/