]> 4ch.mooo.com Git - 16.git/blobdiff - 16/cawat/lib_head.h
wwww
[16.git] / 16 / cawat / lib_head.h
index 90f69d1471a7504122c93e48aab620fd8264998b..0887d0c240a15fc34f27be20922a0dca7c9e41a8 100644 (file)
@@ -1,38 +1,46 @@
-/*
- * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669
- *
- * This file is part of Project 16.
- *
- * Project 16 is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 3 of the License, or
- * (at your option) any later version.
- *
- * Project 16 is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>, or
- * write to the Free Software Foundation, Inc., 51 Franklin Street,
- * Fifth Floor, Boston, MA 02110-1301 USA.
- *
- */
+/*\r
+ * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669\r
+ *\r
+ * This file is part of Project 16.\r
+ *\r
+ * Project 16 is free software; you can redistribute it and/or modify\r
+ * it under the terms of the GNU General Public License as published by\r
+ * the Free Software Foundation; either version 3 of the License, or\r
+ * (at your option) any later version.\r
+ *\r
+ * Project 16 is distributed in the hope that it will be useful,\r
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+ * GNU General Public License for more details.\r
+ *\r
+ * You should have received a copy of the GNU General Public License\r
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>, or\r
+ * write to the Free Software Foundation, Inc., 51 Franklin Street,\r
+ * Fifth Floor, Boston, MA 02110-1301 USA.\r
+ *\r
+ */\r
 /*\r
  * Just some handy typedefs that make it easier to think about the low\r
  * level code\r
- */
-
-#ifndef _LIB_HEAD_H_
-#define _LIB_HEAD_H_
-
-#include <malloc.h>
-#include <dos.h>
-//#include ""
-//#include ""
-//#include "ID_CA.H"
-//#include "AUDIOARM.H"
-#include "types.h"\r
-
-#endif/*_LIB_HEAD_H_*/
+ */\r
+\r
+#ifndef _LIB_HEAD_H_\r
+#define _LIB_HEAD_H_\r
+#include <i86.h>\r
+#include <dos.h>\r
+#include <conio.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
+#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