X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_head.h;h=aab4c0334e7a74c9e958b816d1bc5cfb4c12501d;hb=ff67fe588fddfa1c10cab13a5ca8dfaa4589bec7;hp=e804410f4ea99ab50628bcb2c32cc7d3edda65b5;hpb=0c47a862860b6ae769429092860ecd9ae1591ba9;p=16.git diff --git a/src/lib/16_head.h b/src/lib/16_head.h index e804410f..aab4c033 100755 --- a/src/lib/16_head.h +++ b/src/lib/16_head.h @@ -42,6 +42,7 @@ #include #include #include +#include #ifdef __WATCOMC__ #include #include @@ -151,6 +152,8 @@ static word far* clockw= (word far*) 0x046C; /* 18.2hz clock */ extern int profilehandle,debughandle; //make it into game global #define __DEBUG__ +//#define __DEBUG_PM__ +//#define __DEBUG_MM__ #define nil ((void *)0) #ifdef __BORLANDC__ @@ -159,7 +162,25 @@ extern int profilehandle,debughandle; //make it into game global #endif #ifdef __WATCOMC__ #define _FCORELEFT 0x90000UL+16UL +static union REGS CPURegs; +#define _AX CPURegs.x.ax +#define _BX CPURegs.x.bx +#define _CX CPURegs.x.cx +#define _DX CPURegs.x.dx + +#define _SI CPURegs.x.si + +#define _AH CPURegs.h.ah +#define _AL CPURegs.h.al +#define _BH CPURegs.h.bh +#define _BL CPURegs.h.bl +#define _CH CPURegs.h.ch +#define _CL CPURegs.h.cl +#define _DH CPURegs.h.dh +#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)) @@ -176,7 +197,9 @@ void wait(clock_t wait); long int filesize(FILE *fp); 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); +#ifdef __BORLANDC__ void Quit (char *error); +#endif byte dirchar(byte in); #endif/*_LIBHEAD_H_*/