]> 4ch.mooo.com Git - 16.git/blob - 16/cawat/lib_head.h
modified: 16.LIB
[16.git] / 16 / cawat / lib_head.h
1 /*\r
2  * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669\r
3  *\r
4  * This file is part of Project 16.\r
5  *\r
6  * Project 16 is free software; you can redistribute it and/or modify\r
7  * it under the terms of the GNU General Public License as published by\r
8  * the Free Software Foundation; either version 3 of the License, or\r
9  * (at your option) any later version.\r
10  *\r
11  * Project 16 is distributed in the hope that it will be useful,\r
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
14  * GNU General Public License for more details.\r
15  *\r
16  * You should have received a copy of the GNU General Public License\r
17  * along with this program.  If not, see <http://www.gnu.org/licenses/>, or\r
18  * write to the Free Software Foundation, Inc., 51 Franklin Street,\r
19  * Fifth Floor, Boston, MA 02110-1301 USA.\r
20  *\r
21  */\r
22 /*\r
23  * Just some handy typedefs that make it easier to think about the low\r
24  * level code\r
25  */\r
26 \r
27 #ifndef _LIB_HEAD_H_\r
28 #define _LIB_HEAD_H_\r
29 #include <i86.h>
30 #include <dos.h>\r
31 #include <conio.h>
32 #include <stdio.h>
33 #include <stdlib.h>
34 #include <malloc.h>\r
35 #include "types.h"\r
36
37 dword far* clockdw= (dword far*) 0x046C; /* 18.2hz clock */
38
39 #define peekb(segm,ofs) (*(byte far*)MK_FP((segm),(ofs)))\r
40 #define peekw(segm,ofs) (*(word far*)MK_FP((segm),(ofs)))\r
41 #define pokeb(segm,ofs,value) (peekb((segm),(ofs)) = (byte)(value))\r
42 #define pokew(segm,ofs,value) (peekw((segm),(ofs)) = (word)(value))\r
43 \r
44 #endif/*_LIB_HEAD_H_*/\r