\r
#ifndef _LIB_HEAD_H_\r
#define _LIB_HEAD_H_\r
+#include <i86.h>\r
#include <dos.h>\r
-#include <malloc.h>\r
#include <conio.h>\r
-//#include ""\r
-//#include ""\r
-//#include "ID_CA.H"\r
-//#include "AUDIOARM.H"\r
-#include "types.h"\r
+#include <stdio.h>\r
+#include <stdlib.h>\r
+#include <malloc.h>\r
+#include <strings.h>\r
+//#include <time.h>\r
+#include "../../src/lib/types.h"\r
+\r
+dword far* clockdw= (dword far*) 0x046C; /* 18.2hz clock */\r
\r
-#ifndef REGS\r
-struct REGS CPURegs;\r
-#endif\r
+#define peekb(segm,ofs) (*(byte far*)MK_FP((segm),(ofs)))\r
+#define peekw(segm,ofs) (*(word far*)MK_FP((segm),(ofs)))\r
+#define pokeb(segm,ofs,value) (peekb((segm),(ofs)) = (byte)(value))\r
+#define pokew(segm,ofs,value) (peekw((segm),(ofs)) = (word)(value))\r
\r
#endif/*_LIB_HEAD_H_*/\r