X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Flib_head.h;h=ca5d2de60f6919bb350d755b7c6a438538deda02;hb=e0822f1d126fdc00b5fb8e1de1b84ef0f8f75a4a;hp=dcd854704dfa9fa488758b8331bac59cf14bca77;hpb=9da109784b07c519b919cb0def22009ba796e727;p=16.git diff --git a/src/lib/lib_head.h b/src/lib/lib_head.h index dcd85470..ca5d2de6 100644 --- a/src/lib/lib_head.h +++ b/src/lib/lib_head.h @@ -4,6 +4,7 @@ #include #include // just for wait #include // just for wait +#include #include "src/lib/types.h" /* Control codes for all keys on the keyboard */ @@ -98,11 +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);