OSDN Git Service

added a file which explains something important
[proj16/16.git] / src / exmmtest.h
1 /* Project 16 Source Code~\r
2  * Copyright (C) 2012-2021 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover\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         exmm test\r
24 */\r
25 #ifndef __EXMMTEST_H__\r
26 #define __EXMMTEST_H__\r
27 \r
28 #include "src/lib/16_head.h"\r
29 #include "src/lib/16_tail.h"\r
30 #include "src/lib/16_pm.h"\r
31 #include "src/lib/16_ca.h"\r
32 #include "src/lib/16_mm.h"\r
33 #include "src/lib/16_hc.h"\r
34 #include "src/lib/16_dbg.h"\r
35 \r
36 #pragma hdrstop\r
37 \r
38 #pragma warn -pro\r
39 #pragma warn -use\r
40 \r
41 //file load or read definition\r
42 #define FILEREADLOAD\r
43 #define FILEREAD\r
44 //#define EXMMVERBOSE\r
45 #define BUFFDUMPPAUSE\r
46 //#define EXMMVERBOSE__\r
47 //      #define PRINTBBDUMP\r
48 #define BUFFDUMP\r
49 \r
50 #ifdef __BORLANDC__\r
51 #define NOVID\r
52 #endif\r
53 #ifdef __WATCOMC__\r
54 #define NOVID\r
55 //#define                       SCROLLLOAD\r
56 #endif\r
57 \r
58 #define KEYP IN_Shutdown(&gvar); printf("\n\npress any key to continue!\n"); getch(); IN_Startup(&gvar);\r
59 \r
60 #define BBUFNAME gvar.mm.bufferseg\r
61 //#define INITBBUF static memptr BBUFNAME;\r
62 #define BBUFPTR MEMPTRCONV BBUFNAME\r
63 \r
64 #ifdef __BORLANDC__\r
65 #define BBUF            (memptr *)BBUFPTR\r
66 #define BBUFSTRING      (memptr *)BBUFNAME\r
67 #endif\r
68 #ifdef __WATCOMC__\r
69 #define BBUF            BBUFNAME\r
70 #define BBUFSTRING      BBUF\r
71 #endif\r
72 \r
73 \r
74 //printf("*     %Fp\t", *BBUF);\r
75 //printf("*          %04x\t", *BBUF);\r
76 #define PRINTBB {\\r
77         printf("-------------------------------------------------------------------------------\n");\\r
78         printf("&main()=        %Fp\n", argv[0]);\\r
79         printf("buffer:\n");\\r
80         printf("        %Fp\t", BBUF);\\r
81         printf("&%Fp\n", BBUFPTR);\\r
82         printf("             %04x\t", BBUF);\\r
83         printf("&     %04x\n", BBUFPTR);\\r
84         printf("-------------------------------------------------------------------------------\n");\\r
85 }\r
86         //printf("&main()=      %Fp\n", *argv[0]);\r
87         //printf("bigbuffer=    %Fp\n", bigbuffer);\r
88         //printf("&bigbuffer=   %Fp\n", &bigbuffer);\r
89         //printf("bigbuffer=    %04x\n", bigbuffer);\r
90         //printf("&bigbuffer=   %04x\n", &bigbuffer);\r
91 \r
92 #endif /*__EXMMTEST_H__*/\r