X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Flib_head.h;h=ca5d2de60f6919bb350d755b7c6a438538deda02;hb=e0822f1d126fdc00b5fb8e1de1b84ef0f8f75a4a;hp=34fcb3a0fbd2ef7271e8d0786a7b18ccabe6b147;hpb=56bb29bded61d906400612e14b81f2d5f34b7600;p=16.git diff --git a/src/lib/lib_head.h b/src/lib/lib_head.h index 34fcb3a0..ca5d2de6 100644 --- a/src/lib/lib_head.h +++ b/src/lib/lib_head.h @@ -99,13 +99,27 @@ #define KEY_MENU (0x75) */ -//typedef unsigned char byte; -//typedef unsigned int word; -//typedef unsigned short syte; +//#define FARPTR(S, O) MK_FP(S, O) + +//#define inportb(P) inp(P) +//#define outportb(P,V) outp(P,V) +//#define outportw(P,V) outpw(P,V) + +//#define R_AX w.ax +//#define R_BX w.bx +//#define R_BP w.bp +//#define R_ES w.es + +/* WARNING: for 32-bit code, unused fields of regs_t +must be zeroed before using this macro */ +//#define trap(N,R) intr(N,R) + +typedef union REGPACK regs_t; void wait(clock_t wait); void* AllocateLargestFreeBlock(size_t* Size); size_t GetFreeSize(void); +long int filesize(FILE *fp); /* THIS FUNCTION CONVERTS A POINTER TO AN INTEL LONG */ //int long ptr2long(char *p);