1 /* Project 16 Source Code~
\r
2 * Copyright (C) 2012-2022 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover
\r
4 * This file is part of Project 16.
\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
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
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
25 #ifndef __EXMMTEST_H__
\r
26 #define __EXMMTEST_H__
\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
41 //file load or read definition
\r
42 #define FILEREADLOAD
\r
44 //#define EXMMVERBOSE
\r
45 #define BUFFDUMPPAUSE
\r
46 //#define EXMMVERBOSE__
\r
47 // #define PRINTBBDUMP
\r
55 //#define SCROLLLOAD
\r
58 #define KEYP IN_Shutdown(&gvar); printf("\n\npress any key to continue!\n"); getch(); IN_Startup(&gvar);
\r
60 #define BBUFNAME gvar.mm.bufferseg
\r
61 //#define INITBBUF static memptr BBUFNAME;
\r
62 #define BBUFPTR MEMPTRCONV BBUFNAME
\r
65 #define BBUF (memptr *)BBUFPTR
\r
66 #define BBUFSTRING (memptr *)BBUFNAME
\r
69 #define BBUF BBUFNAME
\r
70 #define BBUFSTRING BBUF
\r
74 //printf("* %Fp\t", *BBUF);
\r
75 //printf("* %04x\t", *BBUF);
\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
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
92 #endif /*__EXMMTEST_H__*/
\r