]> 4ch.mooo.com Git - 16.git/blobdiff - 16/cawat/lib_head.h
mm testing~
[16.git] / 16 / cawat / lib_head.h
index d77af4da7e69efd6b3d01c65cf52a4c97d7ffc11..0887d0c240a15fc34f27be20922a0dca7c9e41a8 100644 (file)
 \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