#include <stdio.h>
#include <conio.h> // just for wait
#include <time.h> // just for wait
+#include <stdlib.h>
#include "src/lib/types.h"
/* Control codes for all keys on the keyboard */
#define KEY_MENU (0x75)
*/
-//typedef unsigned char byte;
-//typedef unsigned int word;
-//typedef unsigned short syte;
+//#define FARPTR(S, O) MK_FP(S, O)\r
+\r
+//#define inportb(P) inp(P)\r
+//#define outportb(P,V) outp(P,V)\r
+//#define outportw(P,V) outpw(P,V)\r
+\r
+//#define R_AX w.ax\r
+//#define R_BX w.bx\r
+//#define R_BP w.bp\r
+//#define R_ES w.es\r
+\r
+/* WARNING: for 32-bit code, unused fields of regs_t\r
+must be zeroed before using this macro */\r
+//#define trap(N,R) intr(N,R)\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 */\r
//int long ptr2long(char *p);